Interface SampleTrainingSessionWithResponseStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SampleTrainingSessionWithResponseStreamRequest.Builder,,SampleTrainingSessionWithResponseStreamRequest> SageMakerTrainingSessionRuntimeRequest.Builder,SdkBuilder<SampleTrainingSessionWithResponseStreamRequest.Builder,,SampleTrainingSessionWithResponseStreamRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SampleTrainingSessionWithResponseStreamRequest
@Mutable
@NotThreadSafe
public static interface SampleTrainingSessionWithResponseStreamRequest.Builder
extends SageMakerTrainingSessionRuntimeRequest.Builder, SdkPojo, CopyableBuilder<SampleTrainingSessionWithResponseStreamRequest.Builder,SampleTrainingSessionWithResponseStreamRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe desired MIME type of the inference body in the response.The raw inference request body.contentType(String contentType) The MIME type of the input data in the request body.modelPackageArn(String modelPackageArn) The ARN of the model package whose checkpoint to invoke.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.trainingSessionName(String trainingSessionName) The name of the training session whose model to invoke.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.sagemakertrainingsessionruntime.model.SageMakerTrainingSessionRuntimeRequest.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
-
trainingSessionName
SampleTrainingSessionWithResponseStreamRequest.Builder trainingSessionName(String trainingSessionName) The name of the training session whose model to invoke.
- Parameters:
trainingSessionName- The name of the training session whose model to invoke.- 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 body.
- Parameters:
contentType- The MIME type of the input data in the request body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accept
The desired MIME type of the inference body in the response.
- Parameters:
accept- The desired MIME type of the inference body in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelPackageArn
The ARN of the model package whose checkpoint to invoke.
- Parameters:
modelPackageArn- The ARN of the model package whose checkpoint to invoke.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The raw inference request body.
- Parameters:
body- The raw inference request body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SampleTrainingSessionWithResponseStreamRequest.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
SampleTrainingSessionWithResponseStreamRequest.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.
-