Struct aws_sdk_sagemaker::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder
source · pub struct StopInferenceExperimentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StopInferenceExperiment
.
Stops an inference experiment.
Implementations§
source§impl StopInferenceExperimentFluentBuilder
impl StopInferenceExperimentFluentBuilder
sourcepub fn as_input(&self) -> &StopInferenceExperimentInputBuilder
pub fn as_input(&self) -> &StopInferenceExperimentInputBuilder
Access the StopInferenceExperiment as a reference.
sourcepub async fn send(
self
) -> Result<StopInferenceExperimentOutput, SdkError<StopInferenceExperimentError, HttpResponse>>
pub async fn send( self ) -> Result<StopInferenceExperimentOutput, SdkError<StopInferenceExperimentError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<StopInferenceExperimentOutput, StopInferenceExperimentError, Self>
pub fn customize( self ) -> CustomizableOperation<StopInferenceExperimentOutput, StopInferenceExperimentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the inference experiment to stop.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the inference experiment to stop.
sourcepub fn model_variant_actions(
self,
k: impl Into<String>,
v: ModelVariantAction
) -> Self
pub fn model_variant_actions( self, k: impl Into<String>, v: ModelVariantAction ) -> Self
Adds a key-value pair to ModelVariantActions
.
To override the contents of this collection use set_model_variant_actions
.
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
sourcepub fn set_model_variant_actions(
self,
input: Option<HashMap<String, ModelVariantAction>>
) -> Self
pub fn set_model_variant_actions( self, input: Option<HashMap<String, ModelVariantAction>> ) -> Self
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
sourcepub fn get_model_variant_actions(
&self
) -> &Option<HashMap<String, ModelVariantAction>>
pub fn get_model_variant_actions( &self ) -> &Option<HashMap<String, ModelVariantAction>>
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
sourcepub fn desired_model_variants(self, input: ModelVariantConfig) -> Self
pub fn desired_model_variants(self, input: ModelVariantConfig) -> Self
Appends an item to DesiredModelVariants
.
To override the contents of this collection use set_desired_model_variants
.
An array of ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. Each ModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.
sourcepub fn set_desired_model_variants(
self,
input: Option<Vec<ModelVariantConfig>>
) -> Self
pub fn set_desired_model_variants( self, input: Option<Vec<ModelVariantConfig>> ) -> Self
An array of ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. Each ModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.
sourcepub fn get_desired_model_variants(&self) -> &Option<Vec<ModelVariantConfig>>
pub fn get_desired_model_variants(&self) -> &Option<Vec<ModelVariantConfig>>
An array of ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. Each ModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.
sourcepub fn desired_state(self, input: InferenceExperimentStopDesiredState) -> Self
pub fn desired_state(self, input: InferenceExperimentStopDesiredState) -> Self
The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
sourcepub fn set_desired_state(
self,
input: Option<InferenceExperimentStopDesiredState>
) -> Self
pub fn set_desired_state( self, input: Option<InferenceExperimentStopDesiredState> ) -> Self
The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
sourcepub fn get_desired_state(&self) -> &Option<InferenceExperimentStopDesiredState>
pub fn get_desired_state(&self) -> &Option<InferenceExperimentStopDesiredState>
The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason for stopping the experiment.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
The reason for stopping the experiment.
Trait Implementations§
source§impl Clone for StopInferenceExperimentFluentBuilder
impl Clone for StopInferenceExperimentFluentBuilder
source§fn clone(&self) -> StopInferenceExperimentFluentBuilder
fn clone(&self) -> StopInferenceExperimentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more