Interface InferenceOperationConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InferenceOperationConfiguration.Builder,,InferenceOperationConfiguration> SdkBuilder<InferenceOperationConfiguration.Builder,,InferenceOperationConfiguration> SdkPojo
- Enclosing class:
InferenceOperationConfiguration
@Mutable
@NotThreadSafe
public static interface InferenceOperationConfiguration.Builder
extends SdkPojo, CopyableBuilder<InferenceOperationConfiguration.Builder,InferenceOperationConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionmodels(Collection<ModelEntry> models) The list of models supported for this operation.models(Consumer<ModelEntry.Builder>... models) The list of models supported for this operation.models(ModelEntry... models) The list of models supported for this operation.The request path for this operation (for example,/v1/messagesor/v1/responses).providerPath(String providerPath) The provider path to forward requests to, if it differs from the request path.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
-
path
The request path for this operation (for example,
/v1/messagesor/v1/responses).- Parameters:
path- The request path for this operation (for example,/v1/messagesor/v1/responses).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
providerPath
The provider path to forward requests to, if it differs from the request path. For example,
/anthropic/v1/messageswhen the provider expects a different path than the client-facing/v1/messages.- Parameters:
providerPath- The provider path to forward requests to, if it differs from the request path. For example,/anthropic/v1/messageswhen the provider expects a different path than the client-facing/v1/messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
The list of models supported for this operation.
- Parameters:
models- The list of models supported for this operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
The list of models supported for this operation.
- Parameters:
models- The list of models supported for this operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
The list of models supported for this operation.
This is a convenience method that creates an instance of theModelEntry.Builderavoiding the need to create one manually viaModelEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodels(List<ModelEntry>).- Parameters:
models- a consumer that will call methods onModelEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-