All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.model.UpdateModelCardRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker Service

The newest version!
/*
 * Copyright 2019-2024 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 or Amazon Resource Name (ARN) 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. *

    *
  • *
*/ private String modelCardStatus; /** *

* The name or Amazon Resource Name (ARN) of the model card to update. *

* * @param modelCardName * The name or Amazon Resource Name (ARN) of the model card to update. */ public void setModelCardName(String modelCardName) { this.modelCardName = modelCardName; } /** *

* The name or Amazon Resource Name (ARN) of the model card to update. *

* * @return The name or Amazon Resource Name (ARN) of the model card to update. */ public String getModelCardName() { return this.modelCardName; } /** *

* The name or Amazon Resource Name (ARN) of the model card to update. *

* * @param modelCardName * The name or Amazon Resource Name (ARN) 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. *

    *
  • *
* * @param 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. *

    *
  • * @see ModelCardStatus */ public void setModelCardStatus(String modelCardStatus) { this.modelCardStatus = 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. *

      *
    • *
    * * @return 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. *

      *
    • * @see ModelCardStatus */ public String getModelCardStatus() { return this.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. *

        *
      • *
      * * @param 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardStatus */ public UpdateModelCardRequest withModelCardStatus(String modelCardStatus) { setModelCardStatus(modelCardStatus); 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. *

          *
        • *
        * * @param 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardStatus */ public UpdateModelCardRequest withModelCardStatus(ModelCardStatus modelCardStatus) { this.modelCardStatus = modelCardStatus.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getModelCardName() != null) sb.append("ModelCardName: ").append(getModelCardName()).append(","); if (getContent() != null) sb.append("Content: ").append("***Sensitive Data Redacted***").append(","); if (getModelCardStatus() != null) sb.append("ModelCardStatus: ").append(getModelCardStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateModelCardRequest == false) return false; UpdateModelCardRequest other = (UpdateModelCardRequest) obj; if (other.getModelCardName() == null ^ this.getModelCardName() == null) return false; if (other.getModelCardName() != null && other.getModelCardName().equals(this.getModelCardName()) == false) return false; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; if (other.getModelCardStatus() == null ^ this.getModelCardStatus() == null) return false; if (other.getModelCardStatus() != null && other.getModelCardStatus().equals(this.getModelCardStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getModelCardName() == null) ? 0 : getModelCardName().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); hashCode = prime * hashCode + ((getModelCardStatus() == null) ? 0 : getModelCardStatus().hashCode()); return hashCode; } @Override public UpdateModelCardRequest clone() { return (UpdateModelCardRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy