Interface UpdateInferenceExperimentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateInferenceExperimentRequest.Builder,,UpdateInferenceExperimentRequest> SageMakerRequest.Builder,SdkBuilder<UpdateInferenceExperimentRequest.Builder,,UpdateInferenceExperimentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateInferenceExperimentRequest
-
Method Summary
Modifier and TypeMethodDescriptiondataStorageConfig(Consumer<InferenceExperimentDataStorageConfig.Builder> dataStorageConfig) The Amazon S3 location and configuration for storing inference request and response data.dataStorageConfig(InferenceExperimentDataStorageConfig dataStorageConfig) The Amazon S3 location and configuration for storing inference request and response data.description(String description) The description of the inference experiment.modelVariants(Collection<ModelVariantConfig> modelVariants) An array ofModelVariantConfigobjects.modelVariants(Consumer<ModelVariantConfig.Builder>... modelVariants) An array ofModelVariantConfigobjects.modelVariants(ModelVariantConfig... modelVariants) An array ofModelVariantConfigobjects.The name of the inference experiment to be updated.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.schedule(Consumer<InferenceExperimentSchedule.Builder> schedule) The duration for which the inference experiment will run.schedule(InferenceExperimentSchedule schedule) The duration for which the inference experiment will run.shadowModeConfig(Consumer<ShadowModeConfig.Builder> shadowModeConfig) The configuration ofShadowModeinference experiment type.shadowModeConfig(ShadowModeConfig shadowModeConfig) The configuration ofShadowModeinference experiment type.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.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the inference experiment to be updated.
- Parameters:
name- The name of the inference experiment to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The duration for which the inference experiment will run. If the status of the inference experiment is
Created, then you can update both the start and end dates. If the status of the inference experiment isRunning, then you can update only the end date.- Parameters:
schedule- The duration for which the inference experiment will run. If the status of the inference experiment isCreated, then you can update both the start and end dates. If the status of the inference experiment isRunning, then you can update only the end date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
default UpdateInferenceExperimentRequest.Builder schedule(Consumer<InferenceExperimentSchedule.Builder> schedule) The duration for which the inference experiment will run. If the status of the inference experiment is
This is a convenience method that creates an instance of theCreated, then you can update both the start and end dates. If the status of the inference experiment isRunning, then you can update only the end date.InferenceExperimentSchedule.Builderavoiding the need to create one manually viaInferenceExperimentSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschedule(InferenceExperimentSchedule).- Parameters:
schedule- a consumer that will call methods onInferenceExperimentSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the inference experiment.
- Parameters:
description- The description of the inference experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVariants
UpdateInferenceExperimentRequest.Builder modelVariants(Collection<ModelVariantConfig> modelVariants) An array of
ModelVariantConfigobjects. There is one for each variant, whose infrastructure configuration you want to update.- Parameters:
modelVariants- An array ofModelVariantConfigobjects. There is one for each variant, whose infrastructure configuration you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVariants
An array of
ModelVariantConfigobjects. There is one for each variant, whose infrastructure configuration you want to update.- Parameters:
modelVariants- An array ofModelVariantConfigobjects. There is one for each variant, whose infrastructure configuration you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVariants
UpdateInferenceExperimentRequest.Builder modelVariants(Consumer<ModelVariantConfig.Builder>... modelVariants) An array of
This is a convenience method that creates an instance of theModelVariantConfigobjects. There is one for each variant, whose infrastructure configuration you want to update.ModelVariantConfig.Builderavoiding the need to create one manually viaModelVariantConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelVariants(List<ModelVariantConfig>).- Parameters:
modelVariants- a consumer that will call methods onModelVariantConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataStorageConfig
UpdateInferenceExperimentRequest.Builder dataStorageConfig(InferenceExperimentDataStorageConfig dataStorageConfig) The Amazon S3 location and configuration for storing inference request and response data.
- Parameters:
dataStorageConfig- The Amazon S3 location and configuration for storing inference request and response data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataStorageConfig
default UpdateInferenceExperimentRequest.Builder dataStorageConfig(Consumer<InferenceExperimentDataStorageConfig.Builder> dataStorageConfig) The Amazon S3 location and configuration for storing inference request and response data.
This is a convenience method that creates an instance of theInferenceExperimentDataStorageConfig.Builderavoiding the need to create one manually viaInferenceExperimentDataStorageConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataStorageConfig(InferenceExperimentDataStorageConfig).- Parameters:
dataStorageConfig- a consumer that will call methods onInferenceExperimentDataStorageConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
shadowModeConfig
The configuration of
ShadowModeinference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.- Parameters:
shadowModeConfig- The configuration ofShadowModeinference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shadowModeConfig
default UpdateInferenceExperimentRequest.Builder shadowModeConfig(Consumer<ShadowModeConfig.Builder> shadowModeConfig) The configuration of
This is a convenience method that creates an instance of theShadowModeinference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.ShadowModeConfig.Builderavoiding the need to create one manually viaShadowModeConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toshadowModeConfig(ShadowModeConfig).- Parameters:
shadowModeConfig- a consumer that will call methods onShadowModeConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateInferenceExperimentRequest.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
UpdateInferenceExperimentRequest.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.
-