Interface InvokeGlobalInferenceGatewayWithResponseStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<InvokeGlobalInferenceGatewayWithResponseStreamRequest.Builder,,InvokeGlobalInferenceGatewayWithResponseStreamRequest> SageMakerGatewayRuntimeRequest.Builder,SdkBuilder<InvokeGlobalInferenceGatewayWithResponseStreamRequest.Builder,,InvokeGlobalInferenceGatewayWithResponseStreamRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
InvokeGlobalInferenceGatewayWithResponseStreamRequest
@Mutable
@NotThreadSafe
public static interface InvokeGlobalInferenceGatewayWithResponseStreamRequest.Builder
extends SageMakerGatewayRuntimeRequest.Builder, SdkPojo, CopyableBuilder<InvokeGlobalInferenceGatewayWithResponseStreamRequest.Builder,InvokeGlobalInferenceGatewayWithResponseStreamRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe MIME type you want for the response.The inference request body, as for InvokeGlobalInferenceGateway, except that the request is always sent with"stream": true: this operation returns an event stream, so a"stream": falsein the body (or nostreamkey) is overridden.contentType(String contentType) The MIME type of the request body, as for InvokeGlobalInferenceGateway.customerIdentityToken(String customerIdentityToken) The customer identity token (a JWT), as for InvokeGlobalInferenceGateway.The ID of the Global Inference Gateway to invoke, as for InvokeGlobalInferenceGateway.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.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemakergatewayruntime.model.SageMakerGatewayRuntimeRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
gatewayId
The ID of the Global Inference Gateway to invoke, as for InvokeGlobalInferenceGateway.
- Parameters:
gatewayId- The ID of the Global Inference Gateway to invoke, as for InvokeGlobalInferenceGateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accept
The MIME type you want for the response. It is passed to the model server.
- Parameters:
accept- The MIME type you want for the response. It is passed to the model server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
The MIME type of the request body, as for InvokeGlobalInferenceGateway. Pass
application/json.- Parameters:
contentType- The MIME type of the request body, as for InvokeGlobalInferenceGateway. Passapplication/json.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerIdentityToken
InvokeGlobalInferenceGatewayWithResponseStreamRequest.Builder customerIdentityToken(String customerIdentityToken) The customer identity token (a JWT), as for InvokeGlobalInferenceGateway. It is passed unchanged to the inference gateway, which validates it.
- Parameters:
customerIdentityToken- The customer identity token (a JWT), as for InvokeGlobalInferenceGateway. It is passed unchanged to the inference gateway, which validates it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The inference request body, as for InvokeGlobalInferenceGateway, except that the request is always sent with
"stream": true: this operation returns an event stream, so a"stream": falsein the body (or nostreamkey) is overridden. A body larger than 10 MiB is rejected with PayloadTooLargeException (413).- Parameters:
body- The inference request body, as for InvokeGlobalInferenceGateway, except that the request is always sent with"stream": true: this operation returns an event stream, so a"stream": falsein the body (or nostreamkey) is overridden. A body larger than 10 MiB is rejected with PayloadTooLargeException (413).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
InvokeGlobalInferenceGatewayWithResponseStreamRequest.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
InvokeGlobalInferenceGatewayWithResponseStreamRequest.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.
-