Class CfnModelCardProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCardProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCardProps>
- Enclosing interface:
CfnModelCardProps
@Stability(Stable)
public static final class CfnModelCardProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCardProps>
A builder for
CfnModelCardProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.content(IResolvable content) Sets the value ofCfnModelCardProps.getContent()content(CfnModelCard.ContentProperty content) Sets the value ofCfnModelCardProps.getContent()createdBy(IResolvable createdBy) Sets the value ofCfnModelCardProps.getCreatedBy()createdBy(CfnModelCard.UserContextProperty createdBy) Sets the value ofCfnModelCardProps.getCreatedBy()lastModifiedBy(IResolvable lastModifiedBy) Sets the value ofCfnModelCardProps.getLastModifiedBy()lastModifiedBy(CfnModelCard.UserContextProperty lastModifiedBy) Sets the value ofCfnModelCardProps.getLastModifiedBy()modelCardName(String modelCardName) Sets the value ofCfnModelCardProps.getModelCardName()modelCardStatus(String modelCardStatus) Sets the value ofCfnModelCardProps.getModelCardStatus()securityConfig(IResolvable securityConfig) Sets the value ofCfnModelCardProps.getSecurityConfig()securityConfig(CfnModelCard.SecurityConfigProperty securityConfig) Sets the value ofCfnModelCardProps.getSecurityConfig()Sets the value ofCfnModelCardProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnModelCardProps.getContent()- Parameters:
content- The content of the model card. This parameter is required. Content uses the model card JSON schema .- Returns:
this
-
content
Sets the value ofCfnModelCardProps.getContent()- Parameters:
content- The content of the model card. This parameter is required. Content uses the model card JSON schema .- Returns:
this
-
modelCardName
Sets the value ofCfnModelCardProps.getModelCardName()- Parameters:
modelCardName- The unique name of the model card. This parameter is required.- Returns:
this
-
modelCardStatus
Sets the value ofCfnModelCardProps.getModelCardStatus()- Parameters:
modelCardStatus- The approval status of the model card within your organization. This parameter is required. 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.
- Returns:
this
-
createdBy
Sets the value ofCfnModelCardProps.getCreatedBy()- Parameters:
createdBy- Information about the user who created or modified one or more of the following:.- Experiment
- Trial
- Trial component
- Lineage group
- Project
- Model Card
- Returns:
this
-
createdBy
@Stability(Stable) public CfnModelCardProps.Builder createdBy(CfnModelCard.UserContextProperty createdBy) Sets the value ofCfnModelCardProps.getCreatedBy()- Parameters:
createdBy- Information about the user who created or modified one or more of the following:.- Experiment
- Trial
- Trial component
- Lineage group
- Project
- Model Card
- Returns:
this
-
lastModifiedBy
Sets the value ofCfnModelCardProps.getLastModifiedBy()- Parameters:
lastModifiedBy- Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.- Returns:
this
-
lastModifiedBy
@Stability(Stable) public CfnModelCardProps.Builder lastModifiedBy(CfnModelCard.UserContextProperty lastModifiedBy) Sets the value ofCfnModelCardProps.getLastModifiedBy()- Parameters:
lastModifiedBy- Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.- Returns:
this
-
securityConfig
Sets the value ofCfnModelCardProps.getSecurityConfig()- Parameters:
securityConfig- The security configuration used to protect model card data.- Returns:
this
-
securityConfig
@Stability(Stable) public CfnModelCardProps.Builder securityConfig(CfnModelCard.SecurityConfigProperty securityConfig) Sets the value ofCfnModelCardProps.getSecurityConfig()- Parameters:
securityConfig- The security configuration used to protect model card data.- Returns:
this
-
tags
Sets the value ofCfnModelCardProps.getTags()- Parameters:
tags- Key-value pairs used to manage metadata for the model card.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelCardProps>- Returns:
- a new instance of
CfnModelCardProps - Throws:
NullPointerException- if any required attribute was not provided
-