public static interface InvokeModelRequest.Builder extends BedrockRuntimeRequest.Builder, SdkPojo, CopyableBuilder<InvokeModelRequest.Builder,InvokeModelRequest>
| Modifier and Type | Method and Description |
|---|---|
InvokeModelRequest.Builder |
accept(String accept)
The desired MIME type of the inference body in the response.
|
InvokeModelRequest.Builder |
body(SdkBytes body)
Input data in the format specified in the content-type request header.
|
InvokeModelRequest.Builder |
contentType(String contentType)
The MIME type of the input data in the request.
|
InvokeModelRequest.Builder |
modelId(String modelId)
Identifier of the model.
|
InvokeModelRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
InvokeModelRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildInvokeModelRequest.Builder accept(String accept)
The desired MIME type of the inference body in the response. The default value is
application/json.
accept - The desired MIME type of the inference body in the response. The default value is
application/json.InvokeModelRequest.Builder body(SdkBytes 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.
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.InvokeModelRequest.Builder contentType(String contentType)
The MIME type of the input data in the request. The default value is application/json.
contentType - The MIME type of the input data in the request. The default value is application/json.InvokeModelRequest.Builder modelId(String modelId)
Identifier of the model.
modelId - Identifier of the model.InvokeModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderInvokeModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.