Struct aws_sdk_sagemaker::operation::update_model_card::builders::UpdateModelCardInputBuilder
source · #[non_exhaustive]pub struct UpdateModelCardInputBuilder { /* private fields */ }
Expand description
A builder for UpdateModelCardInput
.
Implementations§
source§impl UpdateModelCardInputBuilder
impl UpdateModelCardInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<UpdateModelCardInput, BuildError>
pub fn build(self) -> Result<UpdateModelCardInput, BuildError>
Consumes the builder and constructs a UpdateModelCardInput
.
source§impl UpdateModelCardInputBuilder
impl UpdateModelCardInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateModelCardOutput, SdkError<UpdateModelCardError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateModelCardOutput, SdkError<UpdateModelCardError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateModelCardInputBuilder
impl Clone for UpdateModelCardInputBuilder
source§fn clone(&self) -> UpdateModelCardInputBuilder
fn clone(&self) -> UpdateModelCardInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateModelCardInputBuilder
impl Debug for UpdateModelCardInputBuilder
source§impl Default for UpdateModelCardInputBuilder
impl Default for UpdateModelCardInputBuilder
source§fn default() -> UpdateModelCardInputBuilder
fn default() -> UpdateModelCardInputBuilder
source§impl PartialEq for UpdateModelCardInputBuilder
impl PartialEq for UpdateModelCardInputBuilder
source§fn eq(&self, other: &UpdateModelCardInputBuilder) -> bool
fn eq(&self, other: &UpdateModelCardInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.