Struct aws_sdk_sagemaker::operation::stop_inference_experiment::builders::StopInferenceExperimentInputBuilder
source · #[non_exhaustive]pub struct StopInferenceExperimentInputBuilder { /* private fields */ }
Expand description
A builder for StopInferenceExperimentInput
.
Implementations§
source§impl StopInferenceExperimentInputBuilder
impl StopInferenceExperimentInputBuilder
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 model_variant_actions
.
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 desired_model_variants(self, input: ModelVariantConfig) -> Self
pub fn desired_model_variants(self, input: ModelVariantConfig) -> Self
Appends an item to desired_model_variants
.
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 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 set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason for stopping the experiment.
sourcepub fn build(self) -> Result<StopInferenceExperimentInput, BuildError>
pub fn build(self) -> Result<StopInferenceExperimentInput, BuildError>
Consumes the builder and constructs a StopInferenceExperimentInput
.
Trait Implementations§
source§impl Clone for StopInferenceExperimentInputBuilder
impl Clone for StopInferenceExperimentInputBuilder
source§fn clone(&self) -> StopInferenceExperimentInputBuilder
fn clone(&self) -> StopInferenceExperimentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StopInferenceExperimentInputBuilder
impl Default for StopInferenceExperimentInputBuilder
source§fn default() -> StopInferenceExperimentInputBuilder
fn default() -> StopInferenceExperimentInputBuilder
source§impl PartialEq<StopInferenceExperimentInputBuilder> for StopInferenceExperimentInputBuilder
impl PartialEq<StopInferenceExperimentInputBuilder> for StopInferenceExperimentInputBuilder
source§fn eq(&self, other: &StopInferenceExperimentInputBuilder) -> bool
fn eq(&self, other: &StopInferenceExperimentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.