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

com.amazonaws.services.panorama.model.PackageImportJob Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.panorama.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A job to import a package version. *

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

* When the job was created. *

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

* The job's ID. *

*/ private String jobId; /** *

* The job's type. *

*/ private String jobType; /** *

* When the job was updated. *

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

* The job's status. *

*/ private String status; /** *

* The job's status message. *

*/ private String statusMessage; /** *

* When the job was created. *

* * @param createdTime * When the job was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* When the job was created. *

* * @return When the job was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* When the job was created. *

* * @param createdTime * When the job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageImportJob withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

* The job's ID. *

* * @param jobId * The job's ID. */ public void setJobId(String jobId) { this.jobId = jobId; } /** *

* The job's ID. *

* * @return The job's ID. */ public String getJobId() { return this.jobId; } /** *

* The job's ID. *

* * @param jobId * The job's ID. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageImportJob withJobId(String jobId) { setJobId(jobId); return this; } /** *

* The job's type. *

* * @param jobType * The job's type. * @see PackageImportJobType */ public void setJobType(String jobType) { this.jobType = jobType; } /** *

* The job's type. *

* * @return The job's type. * @see PackageImportJobType */ public String getJobType() { return this.jobType; } /** *

* The job's type. *

* * @param jobType * The job's type. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageImportJobType */ public PackageImportJob withJobType(String jobType) { setJobType(jobType); return this; } /** *

* The job's type. *

* * @param jobType * The job's type. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageImportJobType */ public PackageImportJob withJobType(PackageImportJobType jobType) { this.jobType = jobType.toString(); return this; } /** *

* When the job was updated. *

* * @param lastUpdatedTime * When the job was updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* When the job was updated. *

* * @return When the job was updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* When the job was updated. *

* * @param lastUpdatedTime * When the job was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageImportJob withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* The job's status. *

* * @param status * The job's status. * @see PackageImportJobStatus */ public void setStatus(String status) { this.status = status; } /** *

* The job's status. *

* * @return The job's status. * @see PackageImportJobStatus */ public String getStatus() { return this.status; } /** *

* The job's status. *

* * @param status * The job's status. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageImportJobStatus */ public PackageImportJob withStatus(String status) { setStatus(status); return this; } /** *

* The job's status. *

* * @param status * The job's status. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageImportJobStatus */ public PackageImportJob withStatus(PackageImportJobStatus status) { this.status = status.toString(); return this; } /** *

* The job's status message. *

* * @param statusMessage * The job's status message. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* The job's status message. *

* * @return The job's status message. */ public String getStatusMessage() { return this.statusMessage; } /** *

* The job's status message. *

* * @param statusMessage * The job's status message. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageImportJob withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); 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 (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getJobId() != null) sb.append("JobId: ").append(getJobId()).append(","); if (getJobType() != null) sb.append("JobType: ").append(getJobType()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PackageImportJob == false) return false; PackageImportJob other = (PackageImportJob) obj; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getJobId() == null ^ this.getJobId() == null) return false; if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == 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.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getJobType() == null) ? 0 : getJobType().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); return hashCode; } @Override public PackageImportJob clone() { try { return (PackageImportJob) 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.panorama.model.transform.PackageImportJobMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy