/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A summary of the model card. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModelCardSummary implements Serializable, Cloneable, StructuredPojo { /** ** The name of the model card. *
*/ private String modelCardName; /** ** The Amazon Resource Name (ARN) of the model card. *
*/ private String modelCardArn; /** ** 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 date and time that the model card was created. *
*/ private java.util.Date creationTime; /** ** The date and time that the model card was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** The name of the model card. *
* * @param modelCardName * The name of the model card. */ public void setModelCardName(String modelCardName) { this.modelCardName = modelCardName; } /** ** The name of the model card. *
* * @return The name of the model card. */ public String getModelCardName() { return this.modelCardName; } /** ** The name of the model card. *
* * @param modelCardName * The name of the model card. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelCardSummary withModelCardName(String modelCardName) { setModelCardName(modelCardName); return this; } /** ** The Amazon Resource Name (ARN) of the model card. *
* * @param modelCardArn * The Amazon Resource Name (ARN) of the model card. */ public void setModelCardArn(String modelCardArn) { this.modelCardArn = modelCardArn; } /** ** The Amazon Resource Name (ARN) of the model card. *
* * @return The Amazon Resource Name (ARN) of the model card. */ public String getModelCardArn() { return this.modelCardArn; } /** ** The Amazon Resource Name (ARN) of the model card. *
* * @param modelCardArn * The Amazon Resource Name (ARN) of the model card. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelCardSummary withModelCardArn(String modelCardArn) { setModelCardArn(modelCardArn); 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.
*
* The date and time that the model card was created. *
* * @param creationTime * The date and time that the model card was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The date and time that the model card was created. *
* * @return The date and time that the model card was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The date and time that the model card was created. *
* * @param creationTime * The date and time that the model card was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelCardSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The date and time that the model card was last modified. *
* * @param lastModifiedTime * The date and time that the model card was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The date and time that the model card was last modified. *
* * @return The date and time that the model card was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The date and time that the model card was last modified. *
* * @param lastModifiedTime * The date and time that the model card was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelCardSummary withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 (getModelCardArn() != null) sb.append("ModelCardArn: ").append(getModelCardArn()).append(","); if (getModelCardStatus() != null) sb.append("ModelCardStatus: ").append(getModelCardStatus()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModelCardSummary == false) return false; ModelCardSummary other = (ModelCardSummary) obj; if (other.getModelCardName() == null ^ this.getModelCardName() == null) return false; if (other.getModelCardName() != null && other.getModelCardName().equals(this.getModelCardName()) == false) return false; if (other.getModelCardArn() == null ^ this.getModelCardArn() == null) return false; if (other.getModelCardArn() != null && other.getModelCardArn().equals(this.getModelCardArn()) == false) return false; if (other.getModelCardStatus() == null ^ this.getModelCardStatus() == null) return false; if (other.getModelCardStatus() != null && other.getModelCardStatus().equals(this.getModelCardStatus()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == 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 + ((getModelCardArn() == null) ? 0 : getModelCardArn().hashCode()); hashCode = prime * hashCode + ((getModelCardStatus() == null) ? 0 : getModelCardStatus().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public ModelCardSummary clone() { try { return (ModelCardSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.ModelCardSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }