com.amazonaws.services.sagemaker.model.DescribeImageVersionResult Maven / Gradle / Ivy
/*
* 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeImageVersionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The registry path of the container image on which this image version is based.
*
*/
private String baseImage;
/**
*
* The registry path of the container image that contains this image version.
*
*/
private String containerImage;
/**
*
* When the version was created.
*
*/
private java.util.Date creationTime;
/**
*
* When a create or delete operation fails, the reason for the failure.
*
*/
private String failureReason;
/**
*
* The ARN of the image the version is based on.
*
*/
private String imageArn;
/**
*
* The ARN of the version.
*
*/
private String imageVersionArn;
/**
*
* The status of the version.
*
*/
private String imageVersionStatus;
/**
*
* When the version was last modified.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* The version number.
*
*/
private Integer version;
/**
*
* The stability of the image version specified by the maintainer.
*
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set to be
* archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are no
* longer actively supported.
*
*
*
*/
private String vendorGuidance;
/**
*
* Indicates SageMaker job type compatibility.
*
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
*
*/
private String jobType;
/**
*
* The machine learning framework vended in the image version.
*
*/
private String mLFramework;
/**
*
* The supported programming language and its version.
*
*/
private String programmingLang;
/**
*
* Indicates CPU or GPU compatibility.
*
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
*
*/
private String processor;
/**
*
* Indicates Horovod compatibility.
*
*/
private Boolean horovod;
/**
*
* The maintainer description of the image version.
*
*/
private String releaseNotes;
/**
*
* The registry path of the container image on which this image version is based.
*
*
* @param baseImage
* The registry path of the container image on which this image version is based.
*/
public void setBaseImage(String baseImage) {
this.baseImage = baseImage;
}
/**
*
* The registry path of the container image on which this image version is based.
*
*
* @return The registry path of the container image on which this image version is based.
*/
public String getBaseImage() {
return this.baseImage;
}
/**
*
* The registry path of the container image on which this image version is based.
*
*
* @param baseImage
* The registry path of the container image on which this image version is based.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withBaseImage(String baseImage) {
setBaseImage(baseImage);
return this;
}
/**
*
* The registry path of the container image that contains this image version.
*
*
* @param containerImage
* The registry path of the container image that contains this image version.
*/
public void setContainerImage(String containerImage) {
this.containerImage = containerImage;
}
/**
*
* The registry path of the container image that contains this image version.
*
*
* @return The registry path of the container image that contains this image version.
*/
public String getContainerImage() {
return this.containerImage;
}
/**
*
* The registry path of the container image that contains this image version.
*
*
* @param containerImage
* The registry path of the container image that contains this image version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withContainerImage(String containerImage) {
setContainerImage(containerImage);
return this;
}
/**
*
* When the version was created.
*
*
* @param creationTime
* When the version was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* When the version was created.
*
*
* @return When the version was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* When the version was created.
*
*
* @param creationTime
* When the version was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* When a create or delete operation fails, the reason for the failure.
*
*
* @param failureReason
* When a create or delete operation fails, the reason for the failure.
*/
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
*
* When a create or delete operation fails, the reason for the failure.
*
*
* @return When a create or delete operation fails, the reason for the failure.
*/
public String getFailureReason() {
return this.failureReason;
}
/**
*
* When a create or delete operation fails, the reason for the failure.
*
*
* @param failureReason
* When a create or delete operation fails, the reason for the failure.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* The ARN of the image the version is based on.
*
*
* @param imageArn
* The ARN of the image the version is based on.
*/
public void setImageArn(String imageArn) {
this.imageArn = imageArn;
}
/**
*
* The ARN of the image the version is based on.
*
*
* @return The ARN of the image the version is based on.
*/
public String getImageArn() {
return this.imageArn;
}
/**
*
* The ARN of the image the version is based on.
*
*
* @param imageArn
* The ARN of the image the version is based on.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withImageArn(String imageArn) {
setImageArn(imageArn);
return this;
}
/**
*
* The ARN of the version.
*
*
* @param imageVersionArn
* The ARN of the version.
*/
public void setImageVersionArn(String imageVersionArn) {
this.imageVersionArn = imageVersionArn;
}
/**
*
* The ARN of the version.
*
*
* @return The ARN of the version.
*/
public String getImageVersionArn() {
return this.imageVersionArn;
}
/**
*
* The ARN of the version.
*
*
* @param imageVersionArn
* The ARN of the version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withImageVersionArn(String imageVersionArn) {
setImageVersionArn(imageVersionArn);
return this;
}
/**
*
* The status of the version.
*
*
* @param imageVersionStatus
* The status of the version.
* @see ImageVersionStatus
*/
public void setImageVersionStatus(String imageVersionStatus) {
this.imageVersionStatus = imageVersionStatus;
}
/**
*
* The status of the version.
*
*
* @return The status of the version.
* @see ImageVersionStatus
*/
public String getImageVersionStatus() {
return this.imageVersionStatus;
}
/**
*
* The status of the version.
*
*
* @param imageVersionStatus
* The status of the version.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ImageVersionStatus
*/
public DescribeImageVersionResult withImageVersionStatus(String imageVersionStatus) {
setImageVersionStatus(imageVersionStatus);
return this;
}
/**
*
* The status of the version.
*
*
* @param imageVersionStatus
* The status of the version.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ImageVersionStatus
*/
public DescribeImageVersionResult withImageVersionStatus(ImageVersionStatus imageVersionStatus) {
this.imageVersionStatus = imageVersionStatus.toString();
return this;
}
/**
*
* When the version was last modified.
*
*
* @param lastModifiedTime
* When the version was last modified.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* When the version was last modified.
*
*
* @return When the version was last modified.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* When the version was last modified.
*
*
* @param lastModifiedTime
* When the version was last modified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
return this;
}
/**
*
* The version number.
*
*
* @param version
* The version number.
*/
public void setVersion(Integer version) {
this.version = version;
}
/**
*
* The version number.
*
*
* @return The version number.
*/
public Integer getVersion() {
return this.version;
}
/**
*
* The version number.
*
*
* @param version
* The version number.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withVersion(Integer version) {
setVersion(version);
return this;
}
/**
*
* The stability of the image version specified by the maintainer.
*
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set to be
* archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are no
* longer actively supported.
*
*
*
*
* @param vendorGuidance
* The stability of the image version specified by the maintainer.
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set
* to be archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are
* no longer actively supported.
*
*
* @see VendorGuidance
*/
public void setVendorGuidance(String vendorGuidance) {
this.vendorGuidance = vendorGuidance;
}
/**
*
* The stability of the image version specified by the maintainer.
*
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set to be
* archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are no
* longer actively supported.
*
*
*
*
* @return The stability of the image version specified by the maintainer.
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set
* to be archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are
* no longer actively supported.
*
*
* @see VendorGuidance
*/
public String getVendorGuidance() {
return this.vendorGuidance;
}
/**
*
* The stability of the image version specified by the maintainer.
*
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set to be
* archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are no
* longer actively supported.
*
*
*
*
* @param vendorGuidance
* The stability of the image version specified by the maintainer.
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set
* to be archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are
* no longer actively supported.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see VendorGuidance
*/
public DescribeImageVersionResult withVendorGuidance(String vendorGuidance) {
setVendorGuidance(vendorGuidance);
return this;
}
/**
*
* The stability of the image version specified by the maintainer.
*
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set to be
* archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are no
* longer actively supported.
*
*
*
*
* @param vendorGuidance
* The stability of the image version specified by the maintainer.
*
* -
*
* NOT_PROVIDED
: The maintainers did not provide a status for image version stability.
*
*
* -
*
* STABLE
: The image version is stable.
*
*
* -
*
* TO_BE_ARCHIVED
: The image version is set to be archived. Custom image versions that are set
* to be archived are automatically archived after three months.
*
*
* -
*
* ARCHIVED
: The image version is archived. Archived image versions are not searchable and are
* no longer actively supported.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see VendorGuidance
*/
public DescribeImageVersionResult withVendorGuidance(VendorGuidance vendorGuidance) {
this.vendorGuidance = vendorGuidance.toString();
return this;
}
/**
*
* Indicates SageMaker job type compatibility.
*
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
*
*
* @param jobType
* Indicates SageMaker job type compatibility.
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
* @see JobType
*/
public void setJobType(String jobType) {
this.jobType = jobType;
}
/**
*
* Indicates SageMaker job type compatibility.
*
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
*
*
* @return Indicates SageMaker job type compatibility.
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
* @see JobType
*/
public String getJobType() {
return this.jobType;
}
/**
*
* Indicates SageMaker job type compatibility.
*
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
*
*
* @param jobType
* Indicates SageMaker job type compatibility.
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobType
*/
public DescribeImageVersionResult withJobType(String jobType) {
setJobType(jobType);
return this;
}
/**
*
* Indicates SageMaker job type compatibility.
*
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
*
*
* @param jobType
* Indicates SageMaker job type compatibility.
*
* -
*
* TRAINING
: The image version is compatible with SageMaker training jobs.
*
*
* -
*
* INFERENCE
: The image version is compatible with SageMaker inference jobs.
*
*
* -
*
* NOTEBOOK_KERNEL
: The image version is compatible with SageMaker notebook kernels.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobType
*/
public DescribeImageVersionResult withJobType(JobType jobType) {
this.jobType = jobType.toString();
return this;
}
/**
*
* The machine learning framework vended in the image version.
*
*
* @param mLFramework
* The machine learning framework vended in the image version.
*/
public void setMLFramework(String mLFramework) {
this.mLFramework = mLFramework;
}
/**
*
* The machine learning framework vended in the image version.
*
*
* @return The machine learning framework vended in the image version.
*/
public String getMLFramework() {
return this.mLFramework;
}
/**
*
* The machine learning framework vended in the image version.
*
*
* @param mLFramework
* The machine learning framework vended in the image version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withMLFramework(String mLFramework) {
setMLFramework(mLFramework);
return this;
}
/**
*
* The supported programming language and its version.
*
*
* @param programmingLang
* The supported programming language and its version.
*/
public void setProgrammingLang(String programmingLang) {
this.programmingLang = programmingLang;
}
/**
*
* The supported programming language and its version.
*
*
* @return The supported programming language and its version.
*/
public String getProgrammingLang() {
return this.programmingLang;
}
/**
*
* The supported programming language and its version.
*
*
* @param programmingLang
* The supported programming language and its version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withProgrammingLang(String programmingLang) {
setProgrammingLang(programmingLang);
return this;
}
/**
*
* Indicates CPU or GPU compatibility.
*
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
*
*
* @param processor
* Indicates CPU or GPU compatibility.
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
* @see Processor
*/
public void setProcessor(String processor) {
this.processor = processor;
}
/**
*
* Indicates CPU or GPU compatibility.
*
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
*
*
* @return Indicates CPU or GPU compatibility.
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
* @see Processor
*/
public String getProcessor() {
return this.processor;
}
/**
*
* Indicates CPU or GPU compatibility.
*
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
*
*
* @param processor
* Indicates CPU or GPU compatibility.
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see Processor
*/
public DescribeImageVersionResult withProcessor(String processor) {
setProcessor(processor);
return this;
}
/**
*
* Indicates CPU or GPU compatibility.
*
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
*
*
* @param processor
* Indicates CPU or GPU compatibility.
*
* -
*
* CPU
: The image version is compatible with CPU.
*
*
* -
*
* GPU
: The image version is compatible with GPU.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see Processor
*/
public DescribeImageVersionResult withProcessor(Processor processor) {
this.processor = processor.toString();
return this;
}
/**
*
* Indicates Horovod compatibility.
*
*
* @param horovod
* Indicates Horovod compatibility.
*/
public void setHorovod(Boolean horovod) {
this.horovod = horovod;
}
/**
*
* Indicates Horovod compatibility.
*
*
* @return Indicates Horovod compatibility.
*/
public Boolean getHorovod() {
return this.horovod;
}
/**
*
* Indicates Horovod compatibility.
*
*
* @param horovod
* Indicates Horovod compatibility.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withHorovod(Boolean horovod) {
setHorovod(horovod);
return this;
}
/**
*
* Indicates Horovod compatibility.
*
*
* @return Indicates Horovod compatibility.
*/
public Boolean isHorovod() {
return this.horovod;
}
/**
*
* The maintainer description of the image version.
*
*
* @param releaseNotes
* The maintainer description of the image version.
*/
public void setReleaseNotes(String releaseNotes) {
this.releaseNotes = releaseNotes;
}
/**
*
* The maintainer description of the image version.
*
*
* @return The maintainer description of the image version.
*/
public String getReleaseNotes() {
return this.releaseNotes;
}
/**
*
* The maintainer description of the image version.
*
*
* @param releaseNotes
* The maintainer description of the image version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeImageVersionResult withReleaseNotes(String releaseNotes) {
setReleaseNotes(releaseNotes);
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 (getBaseImage() != null)
sb.append("BaseImage: ").append(getBaseImage()).append(",");
if (getContainerImage() != null)
sb.append("ContainerImage: ").append(getContainerImage()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason()).append(",");
if (getImageArn() != null)
sb.append("ImageArn: ").append(getImageArn()).append(",");
if (getImageVersionArn() != null)
sb.append("ImageVersionArn: ").append(getImageVersionArn()).append(",");
if (getImageVersionStatus() != null)
sb.append("ImageVersionStatus: ").append(getImageVersionStatus()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getVersion() != null)
sb.append("Version: ").append(getVersion()).append(",");
if (getVendorGuidance() != null)
sb.append("VendorGuidance: ").append(getVendorGuidance()).append(",");
if (getJobType() != null)
sb.append("JobType: ").append(getJobType()).append(",");
if (getMLFramework() != null)
sb.append("MLFramework: ").append(getMLFramework()).append(",");
if (getProgrammingLang() != null)
sb.append("ProgrammingLang: ").append(getProgrammingLang()).append(",");
if (getProcessor() != null)
sb.append("Processor: ").append(getProcessor()).append(",");
if (getHorovod() != null)
sb.append("Horovod: ").append(getHorovod()).append(",");
if (getReleaseNotes() != null)
sb.append("ReleaseNotes: ").append(getReleaseNotes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeImageVersionResult == false)
return false;
DescribeImageVersionResult other = (DescribeImageVersionResult) obj;
if (other.getBaseImage() == null ^ this.getBaseImage() == null)
return false;
if (other.getBaseImage() != null && other.getBaseImage().equals(this.getBaseImage()) == false)
return false;
if (other.getContainerImage() == null ^ this.getContainerImage() == null)
return false;
if (other.getContainerImage() != null && other.getContainerImage().equals(this.getContainerImage()) == 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.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
if (other.getImageArn() == null ^ this.getImageArn() == null)
return false;
if (other.getImageArn() != null && other.getImageArn().equals(this.getImageArn()) == false)
return false;
if (other.getImageVersionArn() == null ^ this.getImageVersionArn() == null)
return false;
if (other.getImageVersionArn() != null && other.getImageVersionArn().equals(this.getImageVersionArn()) == false)
return false;
if (other.getImageVersionStatus() == null ^ this.getImageVersionStatus() == null)
return false;
if (other.getImageVersionStatus() != null && other.getImageVersionStatus().equals(this.getImageVersionStatus()) == false)
return false;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
if (other.getVersion() == null ^ this.getVersion() == null)
return false;
if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false)
return false;
if (other.getVendorGuidance() == null ^ this.getVendorGuidance() == null)
return false;
if (other.getVendorGuidance() != null && other.getVendorGuidance().equals(this.getVendorGuidance()) == false)
return false;
if (other.getJobType() == null ^ this.getJobType() == null)
return false;
if (other.getJobType() != null && other.getJobType().equals(this.getJobType()) == false)
return false;
if (other.getMLFramework() == null ^ this.getMLFramework() == null)
return false;
if (other.getMLFramework() != null && other.getMLFramework().equals(this.getMLFramework()) == false)
return false;
if (other.getProgrammingLang() == null ^ this.getProgrammingLang() == null)
return false;
if (other.getProgrammingLang() != null && other.getProgrammingLang().equals(this.getProgrammingLang()) == false)
return false;
if (other.getProcessor() == null ^ this.getProcessor() == null)
return false;
if (other.getProcessor() != null && other.getProcessor().equals(this.getProcessor()) == false)
return false;
if (other.getHorovod() == null ^ this.getHorovod() == null)
return false;
if (other.getHorovod() != null && other.getHorovod().equals(this.getHorovod()) == false)
return false;
if (other.getReleaseNotes() == null ^ this.getReleaseNotes() == null)
return false;
if (other.getReleaseNotes() != null && other.getReleaseNotes().equals(this.getReleaseNotes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBaseImage() == null) ? 0 : getBaseImage().hashCode());
hashCode = prime * hashCode + ((getContainerImage() == null) ? 0 : getContainerImage().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
hashCode = prime * hashCode + ((getImageArn() == null) ? 0 : getImageArn().hashCode());
hashCode = prime * hashCode + ((getImageVersionArn() == null) ? 0 : getImageVersionArn().hashCode());
hashCode = prime * hashCode + ((getImageVersionStatus() == null) ? 0 : getImageVersionStatus().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode());
hashCode = prime * hashCode + ((getVendorGuidance() == null) ? 0 : getVendorGuidance().hashCode());
hashCode = prime * hashCode + ((getJobType() == null) ? 0 : getJobType().hashCode());
hashCode = prime * hashCode + ((getMLFramework() == null) ? 0 : getMLFramework().hashCode());
hashCode = prime * hashCode + ((getProgrammingLang() == null) ? 0 : getProgrammingLang().hashCode());
hashCode = prime * hashCode + ((getProcessor() == null) ? 0 : getProcessor().hashCode());
hashCode = prime * hashCode + ((getHorovod() == null) ? 0 : getHorovod().hashCode());
hashCode = prime * hashCode + ((getReleaseNotes() == null) ? 0 : getReleaseNotes().hashCode());
return hashCode;
}
@Override
public DescribeImageVersionResult clone() {
try {
return (DescribeImageVersionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}