Struct aws_sdk_sagemaker::operation::update_model_card::builders::UpdateModelCardFluentBuilder
source · pub struct UpdateModelCardFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateModelCard
.
Update an Amazon SageMaker Model Card.
You cannot update both model card content and model card status in a single call.
Implementations§
source§impl UpdateModelCardFluentBuilder
impl UpdateModelCardFluentBuilder
sourcepub fn as_input(&self) -> &UpdateModelCardInputBuilder
pub fn as_input(&self) -> &UpdateModelCardInputBuilder
Access the UpdateModelCard as a reference.
sourcepub async fn send(
self
) -> Result<UpdateModelCardOutput, SdkError<UpdateModelCardError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateModelCardOutput, SdkError<UpdateModelCardError, 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 async fn customize(
self
) -> Result<CustomizableOperation<UpdateModelCardOutput, UpdateModelCardError>, SdkError<UpdateModelCardError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateModelCardOutput, UpdateModelCardError>, SdkError<UpdateModelCardError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn model_card_name(self, input: impl Into<String>) -> Self
pub fn model_card_name(self, input: impl Into<String>) -> Self
The name of the model card to update.
sourcepub fn set_model_card_name(self, input: Option<String>) -> Self
pub fn set_model_card_name(self, input: Option<String>) -> Self
The name of the model card to update.
sourcepub fn get_model_card_name(&self) -> &Option<String>
pub fn get_model_card_name(&self) -> &Option<String>
The name of the model card to update.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
sourcepub fn model_card_status(self, input: ModelCardStatus) -> Self
pub fn model_card_status(self, input: ModelCardStatus) -> Self
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
sourcepub fn set_model_card_status(self, input: Option<ModelCardStatus>) -> Self
pub fn set_model_card_status(self, input: Option<ModelCardStatus>) -> Self
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
sourcepub fn get_model_card_status(&self) -> &Option<ModelCardStatus>
pub fn get_model_card_status(&self) -> &Option<ModelCardStatus>
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
Trait Implementations§
source§impl Clone for UpdateModelCardFluentBuilder
impl Clone for UpdateModelCardFluentBuilder
source§fn clone(&self) -> UpdateModelCardFluentBuilder
fn clone(&self) -> UpdateModelCardFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more