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 fn customize(
self,
) -> CustomizableOperation<UpdateModelCardOutput, UpdateModelCardError, Self>
pub fn customize( self, ) -> CustomizableOperation<UpdateModelCardOutput, UpdateModelCardError, Self>
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 or Amazon Resource Name (ARN) 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 or Amazon Resource Name (ARN) 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 or Amazon Resource Name (ARN) 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 moreAuto Trait Implementations§
impl Freeze for UpdateModelCardFluentBuilder
impl !RefUnwindSafe for UpdateModelCardFluentBuilder
impl Send for UpdateModelCardFluentBuilder
impl Sync for UpdateModelCardFluentBuilder
impl Unpin for UpdateModelCardFluentBuilder
impl !UnwindSafe for UpdateModelCardFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more