Interface StopInferenceExperimentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StopInferenceExperimentRequest.Builder,
,StopInferenceExperimentRequest> SageMakerRequest.Builder
,SdkBuilder<StopInferenceExperimentRequest.Builder,
,StopInferenceExperimentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StopInferenceExperimentRequest
-
Method Summary
Modifier and TypeMethodDescriptiondesiredModelVariants
(Collection<ModelVariantConfig> desiredModelVariants) An array ofModelVariantConfig
objects.desiredModelVariants
(Consumer<ModelVariantConfig.Builder>... desiredModelVariants) An array ofModelVariantConfig
objects.desiredModelVariants
(ModelVariantConfig... desiredModelVariants) An array ofModelVariantConfig
objects.desiredState
(String desiredState) The desired state of the experiment after stopping.desiredState
(InferenceExperimentStopDesiredState desiredState) The desired state of the experiment after stopping.modelVariantActions
(Map<String, ModelVariantAction> modelVariantActions) Array of key-value pairs, with names of variants mapped to actions.modelVariantActionsWithStrings
(Map<String, String> modelVariantActions) Array of key-value pairs, with names of variants mapped to actions.The name of the inference experiment to stop.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The reason for stopping the experiment.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
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
-
name
The name of the inference experiment to stop.
- Parameters:
name
- The name of the inference experiment to stop.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVariantActionsWithStrings
StopInferenceExperimentRequest.Builder modelVariantActionsWithStrings(Map<String, String> modelVariantActions) Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:
-
Promote
- Promote the shadow variant to a production variant -
Remove
- Delete the variant -
Retain
- Keep the variant as it is
- Parameters:
modelVariantActions
- Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:-
Promote
- Promote the shadow variant to a production variant -
Remove
- Delete the variant -
Retain
- Keep the variant as it is
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
modelVariantActions
StopInferenceExperimentRequest.Builder modelVariantActions(Map<String, ModelVariantAction> modelVariantActions) Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:
-
Promote
- Promote the shadow variant to a production variant -
Remove
- Delete the variant -
Retain
- Keep the variant as it is
- Parameters:
modelVariantActions
- Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:-
Promote
- Promote the shadow variant to a production variant -
Remove
- Delete the variant -
Retain
- Keep the variant as it is
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
desiredModelVariants
StopInferenceExperimentRequest.Builder desiredModelVariants(Collection<ModelVariantConfig> desiredModelVariants) An array of
ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.- Parameters:
desiredModelVariants
- An array ofModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredModelVariants
StopInferenceExperimentRequest.Builder desiredModelVariants(ModelVariantConfig... desiredModelVariants) An array of
ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.- Parameters:
desiredModelVariants
- An array ofModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredModelVariants
StopInferenceExperimentRequest.Builder desiredModelVariants(Consumer<ModelVariantConfig.Builder>... desiredModelVariants) An array of
This is a convenience method that creates an instance of theModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.ModelVariantConfig.Builder
avoiding the need to create one manually viaModelVariantConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todesiredModelVariants(List<ModelVariantConfig>)
.- Parameters:
desiredModelVariants
- 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:
-
desiredState
The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
- Parameters:
desiredState
- The desired state of the experiment after stopping. The possible states are the following:-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
desiredState
StopInferenceExperimentRequest.Builder desiredState(InferenceExperimentStopDesiredState desiredState) The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
- Parameters:
desiredState
- The desired state of the experiment after stopping. The possible states are the following:-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
reason
The reason for stopping the experiment.
- Parameters:
reason
- The reason for stopping the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StopInferenceExperimentRequest.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
StopInferenceExperimentRequest.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.
-