Interface InvokeModelRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRuntimeRequest.Builder
,Buildable
,CopyableBuilder<InvokeModelRequest.Builder,
,InvokeModelRequest> SdkBuilder<InvokeModelRequest.Builder,
,InvokeModelRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
InvokeModelRequest
public static interface InvokeModelRequest.Builder
extends BedrockRuntimeRequest.Builder, SdkPojo, CopyableBuilder<InvokeModelRequest.Builder,InvokeModelRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe desired MIME type of the inference body in the response.Input data in the format specified in the content-type request header.contentType
(String contentType) The MIME type of the input data in the request.Identifier of the model.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
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 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
Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.
- Parameters:
body
- Input data in the format specified in the content-type request header. 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
Identifier of the model.
- Parameters:
modelId
- Identifier of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
InvokeModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
InvokeModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-