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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvokeModelWithResponseStreamRequest.Builderaccept(String accept)The desired MIME type of the inference body in the response.InvokeModelWithResponseStreamRequest.Builderbody(SdkBytes body)Inference input in the format specified by the content-type.InvokeModelWithResponseStreamRequest.BuildercontentType(String contentType)The MIME type of the input data in the request.InvokeModelWithResponseStreamRequest.BuildermodelId(String modelId)Id of the model to invoke using the streaming request.InvokeModelWithResponseStreamRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)InvokeModelWithResponseStreamRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
body
InvokeModelWithResponseStreamRequest.Builder body(SdkBytes 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
InvokeModelWithResponseStreamRequest.Builder contentType(String 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.
-
accept
InvokeModelWithResponseStreamRequest.Builder accept(String 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.
-
modelId
InvokeModelWithResponseStreamRequest.Builder modelId(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
InvokeModelWithResponseStreamRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-