Interface InferenceProviderTargetConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InferenceProviderTargetConfiguration.Builder,,InferenceProviderTargetConfiguration> SdkBuilder<InferenceProviderTargetConfiguration.Builder,,InferenceProviderTargetConfiguration> SdkPojo
- Enclosing class:
InferenceProviderTargetConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe HTTPS endpoint of the inference provider that the gateway forwards requests to.modelMapping(Consumer<ModelMapping.Builder> modelMapping) The configuration that translates client-facing model IDs to the model IDs expected by the provider.modelMapping(ModelMapping modelMapping) The configuration that translates client-facing model IDs to the model IDs expected by the provider.operations(Collection<InferenceOperationConfiguration> operations) A list of per-operation configurations that map request paths to the models supported for each operation.operations(Consumer<InferenceOperationConfiguration.Builder>... operations) A list of per-operation configurations that map request paths to the models supported for each operation.operations(InferenceOperationConfiguration... operations) A list of per-operation configurations that map request paths to the models supported for each operation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
endpoint
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
- Parameters:
endpoint- The HTTPS endpoint of the inference provider that the gateway forwards requests to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelMapping
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
- Parameters:
modelMapping- The configuration that translates client-facing model IDs to the model IDs expected by the provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelMapping
default InferenceProviderTargetConfiguration.Builder modelMapping(Consumer<ModelMapping.Builder> modelMapping) The configuration that translates client-facing model IDs to the model IDs expected by the provider.
This is a convenience method that creates an instance of theModelMapping.Builderavoiding the need to create one manually viaModelMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelMapping(ModelMapping).- Parameters:
modelMapping- a consumer that will call methods onModelMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operations
InferenceProviderTargetConfiguration.Builder operations(Collection<InferenceOperationConfiguration> operations) A list of per-operation configurations that map request paths to the models supported for each operation.
- Parameters:
operations- A list of per-operation configurations that map request paths to the models supported for each operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operations
InferenceProviderTargetConfiguration.Builder operations(InferenceOperationConfiguration... operations) A list of per-operation configurations that map request paths to the models supported for each operation.
- Parameters:
operations- A list of per-operation configurations that map request paths to the models supported for each operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operations
InferenceProviderTargetConfiguration.Builder operations(Consumer<InferenceOperationConfiguration.Builder>... operations) A list of per-operation configurations that map request paths to the models supported for each operation.
This is a convenience method that creates an instance of theInferenceOperationConfiguration.Builderavoiding the need to create one manually viaInferenceOperationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooperations(List<InferenceOperationConfiguration>).- Parameters:
operations- a consumer that will call methods onInferenceOperationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-