Interface StopInferenceExperimentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StopInferenceExperimentRequest.Builder,StopInferenceExperimentRequest>
,SageMakerRequest.Builder
,SdkBuilder<StopInferenceExperimentRequest.Builder,StopInferenceExperimentRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- StopInferenceExperimentRequest
public static interface StopInferenceExperimentRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<StopInferenceExperimentRequest.Builder,StopInferenceExperimentRequest>
-
-
Method Summary
-
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 Detail
-
name
StopInferenceExperimentRequest.Builder name(String 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 to#desiredModelVariants(List
.) - 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:
#desiredModelVariants(java.util.Collection
)
-
desiredState
StopInferenceExperimentRequest.Builder desiredState(String 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:
InferenceExperimentStopDesiredState
,InferenceExperimentStopDesiredState
-
-
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:
InferenceExperimentStopDesiredState
,InferenceExperimentStopDesiredState
-
-
reason
StopInferenceExperimentRequest.Builder reason(String 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
StopInferenceExperimentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-