Struct aws_sdk_sagemaker::operation::update_inference_experiment::builders::UpdateInferenceExperimentInputBuilder
source · #[non_exhaustive]pub struct UpdateInferenceExperimentInputBuilder { /* private fields */ }
Expand description
A builder for UpdateInferenceExperimentInput
.
Implementations§
source§impl UpdateInferenceExperimentInputBuilder
impl UpdateInferenceExperimentInputBuilder
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 be updated.
This field is required.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 be updated.
sourcepub fn schedule(self, input: InferenceExperimentSchedule) -> Self
pub fn schedule(self, input: InferenceExperimentSchedule) -> Self
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 is Running
, then you can update only the end date.
sourcepub fn set_schedule(self, input: Option<InferenceExperimentSchedule>) -> Self
pub fn set_schedule(self, input: Option<InferenceExperimentSchedule>) -> Self
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 is Running
, then you can update only the end date.
sourcepub fn get_schedule(&self) -> &Option<InferenceExperimentSchedule>
pub fn get_schedule(&self) -> &Option<InferenceExperimentSchedule>
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 is Running
, then you can update only the end date.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the inference experiment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the inference experiment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the inference experiment.
sourcepub fn model_variants(self, input: ModelVariantConfig) -> Self
pub fn model_variants(self, input: ModelVariantConfig) -> Self
Appends an item to model_variants
.
To override the contents of this collection use set_model_variants
.
An array of ModelVariantConfig
objects. There is one for each variant, whose infrastructure configuration you want to update.
sourcepub fn set_model_variants(self, input: Option<Vec<ModelVariantConfig>>) -> Self
pub fn set_model_variants(self, input: Option<Vec<ModelVariantConfig>>) -> Self
An array of ModelVariantConfig
objects. There is one for each variant, whose infrastructure configuration you want to update.
sourcepub fn get_model_variants(&self) -> &Option<Vec<ModelVariantConfig>>
pub fn get_model_variants(&self) -> &Option<Vec<ModelVariantConfig>>
An array of ModelVariantConfig
objects. There is one for each variant, whose infrastructure configuration you want to update.
sourcepub fn data_storage_config(
self,
input: InferenceExperimentDataStorageConfig
) -> Self
pub fn data_storage_config( self, input: InferenceExperimentDataStorageConfig ) -> Self
The Amazon S3 location and configuration for storing inference request and response data.
sourcepub fn set_data_storage_config(
self,
input: Option<InferenceExperimentDataStorageConfig>
) -> Self
pub fn set_data_storage_config( self, input: Option<InferenceExperimentDataStorageConfig> ) -> Self
The Amazon S3 location and configuration for storing inference request and response data.
sourcepub fn get_data_storage_config(
&self
) -> &Option<InferenceExperimentDataStorageConfig>
pub fn get_data_storage_config( &self ) -> &Option<InferenceExperimentDataStorageConfig>
The Amazon S3 location and configuration for storing inference request and response data.
sourcepub fn shadow_mode_config(self, input: ShadowModeConfig) -> Self
pub fn shadow_mode_config(self, input: ShadowModeConfig) -> Self
The configuration of ShadowMode
inference 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.
sourcepub fn set_shadow_mode_config(self, input: Option<ShadowModeConfig>) -> Self
pub fn set_shadow_mode_config(self, input: Option<ShadowModeConfig>) -> Self
The configuration of ShadowMode
inference 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.
sourcepub fn get_shadow_mode_config(&self) -> &Option<ShadowModeConfig>
pub fn get_shadow_mode_config(&self) -> &Option<ShadowModeConfig>
The configuration of ShadowMode
inference 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.
sourcepub fn build(self) -> Result<UpdateInferenceExperimentInput, BuildError>
pub fn build(self) -> Result<UpdateInferenceExperimentInput, BuildError>
Consumes the builder and constructs a UpdateInferenceExperimentInput
.
source§impl UpdateInferenceExperimentInputBuilder
impl UpdateInferenceExperimentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateInferenceExperimentOutput, SdkError<UpdateInferenceExperimentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateInferenceExperimentOutput, SdkError<UpdateInferenceExperimentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateInferenceExperimentInputBuilder
impl Clone for UpdateInferenceExperimentInputBuilder
source§fn clone(&self) -> UpdateInferenceExperimentInputBuilder
fn clone(&self) -> UpdateInferenceExperimentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateInferenceExperimentInputBuilder
impl Default for UpdateInferenceExperimentInputBuilder
source§fn default() -> UpdateInferenceExperimentInputBuilder
fn default() -> UpdateInferenceExperimentInputBuilder
source§impl PartialEq for UpdateInferenceExperimentInputBuilder
impl PartialEq for UpdateInferenceExperimentInputBuilder
source§fn eq(&self, other: &UpdateInferenceExperimentInputBuilder) -> bool
fn eq(&self, other: &UpdateInferenceExperimentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.