Struct aws_sdk_frauddetector::operation::update_model_version_status::builders::UpdateModelVersionStatusFluentBuilder
source · pub struct UpdateModelVersionStatusFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateModelVersionStatus
.
Updates the status of a model version.
You can perform the following status updates:
-
Change the
TRAINING_IN_PROGRESS
status toTRAINING_CANCELLED
. -
Change the
TRAINING_COMPLETE
status toACTIVE
. -
Change
ACTIVE
toINACTIVE
.
Implementations§
source§impl UpdateModelVersionStatusFluentBuilder
impl UpdateModelVersionStatusFluentBuilder
sourcepub fn as_input(&self) -> &UpdateModelVersionStatusInputBuilder
pub fn as_input(&self) -> &UpdateModelVersionStatusInputBuilder
Access the UpdateModelVersionStatus as a reference.
sourcepub async fn send(
self
) -> Result<UpdateModelVersionStatusOutput, SdkError<UpdateModelVersionStatusError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateModelVersionStatusOutput, SdkError<UpdateModelVersionStatusError, 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<UpdateModelVersionStatusOutput, UpdateModelVersionStatusError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateModelVersionStatusOutput, UpdateModelVersionStatusError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn model_id(self, input: impl Into<String>) -> Self
pub fn model_id(self, input: impl Into<String>) -> Self
The model ID of the model version to update.
sourcepub fn set_model_id(self, input: Option<String>) -> Self
pub fn set_model_id(self, input: Option<String>) -> Self
The model ID of the model version to update.
sourcepub fn get_model_id(&self) -> &Option<String>
pub fn get_model_id(&self) -> &Option<String>
The model ID of the model version to update.
sourcepub fn model_type(self, input: ModelTypeEnum) -> Self
pub fn model_type(self, input: ModelTypeEnum) -> Self
The model type.
sourcepub fn set_model_type(self, input: Option<ModelTypeEnum>) -> Self
pub fn set_model_type(self, input: Option<ModelTypeEnum>) -> Self
The model type.
sourcepub fn get_model_type(&self) -> &Option<ModelTypeEnum>
pub fn get_model_type(&self) -> &Option<ModelTypeEnum>
The model type.
sourcepub fn model_version_number(self, input: impl Into<String>) -> Self
pub fn model_version_number(self, input: impl Into<String>) -> Self
The model version number.
sourcepub fn set_model_version_number(self, input: Option<String>) -> Self
pub fn set_model_version_number(self, input: Option<String>) -> Self
The model version number.
sourcepub fn get_model_version_number(&self) -> &Option<String>
pub fn get_model_version_number(&self) -> &Option<String>
The model version number.
sourcepub fn status(self, input: ModelVersionStatus) -> Self
pub fn status(self, input: ModelVersionStatus) -> Self
The model version status.
sourcepub fn set_status(self, input: Option<ModelVersionStatus>) -> Self
pub fn set_status(self, input: Option<ModelVersionStatus>) -> Self
The model version status.
sourcepub fn get_status(&self) -> &Option<ModelVersionStatus>
pub fn get_status(&self) -> &Option<ModelVersionStatus>
The model version status.
Trait Implementations§
source§impl Clone for UpdateModelVersionStatusFluentBuilder
impl Clone for UpdateModelVersionStatusFluentBuilder
source§fn clone(&self) -> UpdateModelVersionStatusFluentBuilder
fn clone(&self) -> UpdateModelVersionStatusFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more