Interface InvokeModelWithResponseStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockRuntimeRequest.Builder,Buildable,CopyableBuilder<InvokeModelWithResponseStreamRequest.Builder,,InvokeModelWithResponseStreamRequest> SdkBuilder<InvokeModelWithResponseStreamRequest.Builder,,InvokeModelWithResponseStreamRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
InvokeModelWithResponseStreamRequest
public static interface InvokeModelWithResponseStreamRequest.Builder
extends BedrockRuntimeRequest.Builder, SdkPojo, CopyableBuilder<InvokeModelWithResponseStreamRequest.Builder,InvokeModelWithResponseStreamRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe desired MIME type of the inference body in the response.Inference input in the format specified by the content-type.contentType(String contentType) The MIME type of the input data in the request.Id of the model to invoke using the streaming request.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
accept
The desired MIME type of the inference body in the response. The default value is
application/json.- Parameters:
accept- The desired MIME type of the inference body in the response. The default value isapplication/json.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
- Parameters:
body- Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
The MIME type of the input data in the request. The default value is
application/json.- Parameters:
contentType- The MIME type of the input data in the request. The default value isapplication/json.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
Id of the model to invoke using the streaming request.
- Parameters:
modelId- Id of the model to invoke using the streaming request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
InvokeModelWithResponseStreamRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
InvokeModelWithResponseStreamRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-