/* * 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; /** *

* Provides summary information about a model package. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModelPackageSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the model package. *

*/ private String modelPackageName; /** *

* If the model package is a versioned model, the model group that the versioned model belongs to. *

*/ private String modelPackageGroupName; /** *

* If the model package is a versioned model, the version of the model. *

*/ private Integer modelPackageVersion; /** *

* The Amazon Resource Name (ARN) of the model package. *

*/ private String modelPackageArn; /** *

* A brief description of the model package. *

*/ private String modelPackageDescription; /** *

* A timestamp that shows when the model package was created. *

*/ private java.util.Date creationTime; /** *

* The overall status of the model package. *

*/ private String modelPackageStatus; /** *

* The approval status of the model. This can be one of the following values. *

* */ private String modelApprovalStatus; /** *

* The name of the model package. *

* * @param modelPackageName * The name of the model package. */ public void setModelPackageName(String modelPackageName) { this.modelPackageName = modelPackageName; } /** *

* The name of the model package. *

* * @return The name of the model package. */ public String getModelPackageName() { return this.modelPackageName; } /** *

* The name of the model package. *

* * @param modelPackageName * The name of the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageSummary withModelPackageName(String modelPackageName) { setModelPackageName(modelPackageName); return this; } /** *

* If the model package is a versioned model, the model group that the versioned model belongs to. *

* * @param modelPackageGroupName * If the model package is a versioned model, the model group that the versioned model belongs to. */ public void setModelPackageGroupName(String modelPackageGroupName) { this.modelPackageGroupName = modelPackageGroupName; } /** *

* If the model package is a versioned model, the model group that the versioned model belongs to. *

* * @return If the model package is a versioned model, the model group that the versioned model belongs to. */ public String getModelPackageGroupName() { return this.modelPackageGroupName; } /** *

* If the model package is a versioned model, the model group that the versioned model belongs to. *

* * @param modelPackageGroupName * If the model package is a versioned model, the model group that the versioned model belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageSummary withModelPackageGroupName(String modelPackageGroupName) { setModelPackageGroupName(modelPackageGroupName); return this; } /** *

* If the model package is a versioned model, the version of the model. *

* * @param modelPackageVersion * If the model package is a versioned model, the version of the model. */ public void setModelPackageVersion(Integer modelPackageVersion) { this.modelPackageVersion = modelPackageVersion; } /** *

* If the model package is a versioned model, the version of the model. *

* * @return If the model package is a versioned model, the version of the model. */ public Integer getModelPackageVersion() { return this.modelPackageVersion; } /** *

* If the model package is a versioned model, the version of the model. *

* * @param modelPackageVersion * If the model package is a versioned model, the version of the model. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageSummary withModelPackageVersion(Integer modelPackageVersion) { setModelPackageVersion(modelPackageVersion); return this; } /** *

* The Amazon Resource Name (ARN) of the model package. *

* * @param modelPackageArn * The Amazon Resource Name (ARN) of the model package. */ public void setModelPackageArn(String modelPackageArn) { this.modelPackageArn = modelPackageArn; } /** *

* The Amazon Resource Name (ARN) of the model package. *

* * @return The Amazon Resource Name (ARN) of the model package. */ public String getModelPackageArn() { return this.modelPackageArn; } /** *

* The Amazon Resource Name (ARN) of the model package. *

* * @param modelPackageArn * The Amazon Resource Name (ARN) of the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageSummary withModelPackageArn(String modelPackageArn) { setModelPackageArn(modelPackageArn); return this; } /** *

* A brief description of the model package. *

* * @param modelPackageDescription * A brief description of the model package. */ public void setModelPackageDescription(String modelPackageDescription) { this.modelPackageDescription = modelPackageDescription; } /** *

* A brief description of the model package. *

* * @return A brief description of the model package. */ public String getModelPackageDescription() { return this.modelPackageDescription; } /** *

* A brief description of the model package. *

* * @param modelPackageDescription * A brief description of the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageSummary withModelPackageDescription(String modelPackageDescription) { setModelPackageDescription(modelPackageDescription); return this; } /** *

* A timestamp that shows when the model package was created. *

* * @param creationTime * A timestamp that shows when the model package was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* A timestamp that shows when the model package was created. *

* * @return A timestamp that shows when the model package was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* A timestamp that shows when the model package was created. *

* * @param creationTime * A timestamp that shows when the model package was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The overall status of the model package. *

* * @param modelPackageStatus * The overall status of the model package. * @see ModelPackageStatus */ public void setModelPackageStatus(String modelPackageStatus) { this.modelPackageStatus = modelPackageStatus; } /** *

* The overall status of the model package. *

* * @return The overall status of the model package. * @see ModelPackageStatus */ public String getModelPackageStatus() { return this.modelPackageStatus; } /** *

* The overall status of the model package. *

* * @param modelPackageStatus * The overall status of the model package. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelPackageStatus */ public ModelPackageSummary withModelPackageStatus(String modelPackageStatus) { setModelPackageStatus(modelPackageStatus); return this; } /** *

* The overall status of the model package. *

* * @param modelPackageStatus * The overall status of the model package. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelPackageStatus */ public ModelPackageSummary withModelPackageStatus(ModelPackageStatus modelPackageStatus) { this.modelPackageStatus = modelPackageStatus.toString(); return this; } /** *

* The approval status of the model. This can be one of the following values. *

* * * @param modelApprovalStatus * The approval status of the model. This can be one of the following values.

*