Struct aws_sdk_sagemaker::operation::create_model_card::builders::CreateModelCardInputBuilder
source · #[non_exhaustive]pub struct CreateModelCardInputBuilder { /* private fields */ }
Expand description
A builder for CreateModelCardInput
.
Implementations§
source§impl CreateModelCardInputBuilder
impl CreateModelCardInputBuilder
sourcepub fn model_card_name(self, input: impl Into<String>) -> Self
pub fn model_card_name(self, input: impl Into<String>) -> Self
The unique name of the model card.
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 unique name of the model card.
sourcepub fn get_model_card_name(&self) -> &Option<String>
pub fn get_model_card_name(&self) -> &Option<String>
The unique name of the model card.
sourcepub fn security_config(self, input: ModelCardSecurityConfig) -> Self
pub fn security_config(self, input: ModelCardSecurityConfig) -> Self
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn set_security_config(self, input: Option<ModelCardSecurityConfig>) -> Self
pub fn set_security_config(self, input: Option<ModelCardSecurityConfig>) -> Self
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn get_security_config(&self) -> &Option<ModelCardSecurityConfig>
pub fn get_security_config(&self) -> &Option<ModelCardSecurityConfig>
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The content of the model card. Content must be in model card JSON schema and provided as a string.
This field is required.sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The content of the model card. Content must be in model card JSON schema and provided as a string.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
The content of the model card. Content must be in model card JSON schema and provided as a string.
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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Key-value pairs used to manage metadata for model cards.
Key-value pairs used to manage metadata for model cards.
Key-value pairs used to manage metadata for model cards.
sourcepub fn build(self) -> Result<CreateModelCardInput, BuildError>
pub fn build(self) -> Result<CreateModelCardInput, BuildError>
Consumes the builder and constructs a CreateModelCardInput
.
source§impl CreateModelCardInputBuilder
impl CreateModelCardInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateModelCardOutput, SdkError<CreateModelCardError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateModelCardOutput, SdkError<CreateModelCardError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateModelCardInputBuilder
impl Clone for CreateModelCardInputBuilder
source§fn clone(&self) -> CreateModelCardInputBuilder
fn clone(&self) -> CreateModelCardInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateModelCardInputBuilder
impl Debug for CreateModelCardInputBuilder
source§impl Default for CreateModelCardInputBuilder
impl Default for CreateModelCardInputBuilder
source§fn default() -> CreateModelCardInputBuilder
fn default() -> CreateModelCardInputBuilder
impl StructuralPartialEq for CreateModelCardInputBuilder
Auto Trait Implementations§
impl Freeze for CreateModelCardInputBuilder
impl RefUnwindSafe for CreateModelCardInputBuilder
impl Send for CreateModelCardInputBuilder
impl Sync for CreateModelCardInputBuilder
impl Unpin for CreateModelCardInputBuilder
impl UnwindSafe for CreateModelCardInputBuilder
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