Interface ModelCard.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ModelCard.Builder,
,ModelCard> SdkBuilder<ModelCard.Builder,
,ModelCard> SdkPojo
- Enclosing class:
ModelCard
-
Method Summary
Modifier and TypeMethodDescriptionThe content of the model card.default ModelCard.Builder
createdBy
(Consumer<UserContext.Builder> createdBy) Sets the value of the CreatedBy property for this object.createdBy
(UserContext createdBy) Sets the value of the CreatedBy property for this object.creationTime
(Instant creationTime) The date and time that the model card was created.default ModelCard.Builder
lastModifiedBy
(Consumer<UserContext.Builder> lastModifiedBy) Sets the value of the LastModifiedBy property for this object.lastModifiedBy
(UserContext lastModifiedBy) Sets the value of the LastModifiedBy property for this object.lastModifiedTime
(Instant lastModifiedTime) The date and time that the model card was last modified.modelCardArn
(String modelCardArn) The Amazon Resource Name (ARN) of the model card.modelCardName
(String modelCardName) The unique name of the model card.modelCardStatus
(String modelCardStatus) The approval status of the model card within your organization.modelCardStatus
(ModelCardStatus modelCardStatus) The approval status of the model card within your organization.modelCardVersion
(Integer modelCardVersion) The version of the model card.The unique name (ID) of the model.modelPackageGroupName
(String modelPackageGroupName) The model package group that contains the model package.riskRating
(String riskRating) The risk rating of the model.default ModelCard.Builder
securityConfig
(Consumer<ModelCardSecurityConfig.Builder> securityConfig) The security configuration used to protect model card data.securityConfig
(ModelCardSecurityConfig securityConfig) The security configuration used to protect model card data.tags
(Collection<Tag> tags) Key-value pairs used to manage metadata for the model card.tags
(Consumer<Tag.Builder>... tags) Key-value pairs used to manage metadata for the model card.Key-value pairs used to manage metadata for the model card.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
modelCardArn
The Amazon Resource Name (ARN) of the model card.
- Parameters:
modelCardArn
- The Amazon Resource Name (ARN) of the model card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelCardName
The unique name of the model card.
- Parameters:
modelCardName
- The unique name of the model card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelCardVersion
The version of the model card.
- Parameters:
modelCardVersion
- The version of the model card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the model card. Content uses the model card JSON schema and provided as a string.
- Parameters:
content
- The content of the model card. Content uses the model card JSON schema and provided as a string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
securityConfig
The security configuration used to protect model card data.
- Parameters:
securityConfig
- The security configuration used to protect model card data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityConfig
The security configuration used to protect model card data.
This is a convenience method that creates an instance of theModelCardSecurityConfig.Builder
avoiding the need to create one manually viaModelCardSecurityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityConfig(ModelCardSecurityConfig)
.- Parameters:
securityConfig
- a consumer that will call methods onModelCardSecurityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationTime
The date and time that the model card was created.
- Parameters:
creationTime
- The date and time that the model card was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Sets the value of the CreatedBy property for this object.- Parameters:
createdBy
- The new value for the CreatedBy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Sets the value of the CreatedBy property for this object. This is a convenience method that creates an instance of theUserContext.Builder
avoiding the need to create one manually viaUserContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreatedBy(UserContext)
.- Parameters:
createdBy
- a consumer that will call methods onUserContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastModifiedTime
The date and time that the model card was last modified.
- Parameters:
lastModifiedTime
- The date and time that the model card was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedBy
Sets the value of the LastModifiedBy property for this object.- Parameters:
lastModifiedBy
- The new value for the LastModifiedBy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedBy
Sets the value of the LastModifiedBy property for this object. This is a convenience method that creates an instance of theUserContext.Builder
avoiding the need to create one manually viaUserContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolastModifiedBy(UserContext)
.- Parameters:
lastModifiedBy
- a consumer that will call methods onUserContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Key-value pairs used to manage metadata for the model card.
- Parameters:
tags
- Key-value pairs used to manage metadata for the model card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs used to manage metadata for the model card.
- Parameters:
tags
- Key-value pairs used to manage metadata for the model card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs used to manage metadata for the model card.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelId
The unique name (ID) of the model.
- Parameters:
modelId
- The unique name (ID) of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
riskRating
The risk rating of the model. Different organizations might have different criteria for model card risk ratings. For more information, see Risk ratings.
- Parameters:
riskRating
- The risk rating of the model. Different organizations might have different criteria for model card risk ratings. For more information, see Risk ratings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelPackageGroupName
The model package group that contains the model package. Only relevant for model cards created for model packages in the Amazon SageMaker Model Registry.
- Parameters:
modelPackageGroupName
- The model package group that contains the model package. Only relevant for model cards created for model packages in the Amazon SageMaker Model Registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-