/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateModelCardRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique name of the model card. *
*/ private String modelCardName; /** ** An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated * workloads with highly sensitive data. *
*/ private ModelCardSecurityConfig securityConfig; /** ** The content of the model card. Content must be in model card JSON * schema and provided as a string. *
*/ private String content; /** ** 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.
*
* Key-value pairs used to manage metadata for model cards. *
*/ private java.util.List* The unique name of the model card. *
* * @param modelCardName * The unique name of the model card. */ public void setModelCardName(String modelCardName) { this.modelCardName = modelCardName; } /** ** The unique name of the model card. *
* * @return The unique name of the model card. */ public String getModelCardName() { return this.modelCardName; } /** ** The unique name of the model card. *
* * @param modelCardName * The unique name of the model card. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelCardRequest withModelCardName(String modelCardName) { setModelCardName(modelCardName); return this; } /** ** An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated * workloads with highly sensitive data. *
* * @param securityConfig * An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for * regulated workloads with highly sensitive data. */ public void setSecurityConfig(ModelCardSecurityConfig securityConfig) { this.securityConfig = securityConfig; } /** ** An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated * workloads with highly sensitive data. *
* * @return An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for * regulated workloads with highly sensitive data. */ public ModelCardSecurityConfig getSecurityConfig() { return this.securityConfig; } /** ** An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated * workloads with highly sensitive data. *
* * @param securityConfig * An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for * regulated workloads with highly sensitive data. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelCardRequest withSecurityConfig(ModelCardSecurityConfig securityConfig) { setSecurityConfig(securityConfig); return this; } /** ** The content of the model card. Content must be in model card JSON * schema and provided as a string. *
* * @param content * The content of the model card. Content must be in model card * JSON schema and provided as a string. */ public void setContent(String content) { this.content = content; } /** ** The content of the model card. Content must be in model card JSON * schema and provided as a string. *
* * @return The content of the model card. Content must be in model * card JSON schema and provided as a string. */ public String getContent() { return this.content; } /** ** The content of the model card. Content must be in model card JSON * schema and provided as a string. *
* * @param content * The content of the model card. Content must be in model card * JSON schema and provided as a string. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelCardRequest withContent(String content) { setContent(content); return this; } /** ** 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Key-value pairs used to manage metadata for model cards. *
* * @return Key-value pairs used to manage metadata for model cards. */ public java.util.List* Key-value pairs used to manage metadata for model cards. *
* * @param tags * Key-value pairs used to manage metadata for model cards. */ public void setTags(java.util.Collection* Key-value pairs used to manage metadata for model cards. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Key-value pairs used to manage metadata for model cards. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelCardRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Key-value pairs used to manage metadata for model cards. *
* * @param tags * Key-value pairs used to manage metadata for model cards. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelCardRequest withTags(java.util.Collection