/* * 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 UpdateModelCardRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the model card to update. *
*/ private String modelCardName; /** ** 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. *
*/ 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.
*
* The name of the model card to update. *
* * @param modelCardName * The name of the model card to update. */ public void setModelCardName(String modelCardName) { this.modelCardName = modelCardName; } /** ** The name of the model card to update. *
* * @return The name of the model card to update. */ public String getModelCardName() { return this.modelCardName; } /** ** The name of the model card to update. *
* * @param modelCardName * The name of the model card to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelCardRequest withModelCardName(String modelCardName) { setModelCardName(modelCardName); return this; } /** ** 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. *
* * @param content * 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. */ public void setContent(String content) { this.content = content; } /** *
* 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. *
* * @return 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. */ public String getContent() { return this.content; } /** *
* 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. *
* * @param content * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelCardRequest 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.
*