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

com.amazonaws.services.importexport.model.GetStatusResult Maven / Gradle / Ivy

/*
 * Copyright 2010-2014 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.importexport.model;

import java.io.Serializable;

/**
 * 

* Output structure for the GetStatus operation. *

*/ public class GetStatusResult implements Serializable { /** * A unique identifier which refers to a particular job. */ private String jobId; /** * Specifies whether the job to initiate is an import or export job. *

* Constraints:
* Allowed Values: Import, Export */ private String jobType; /** * Address you ship your storage device to. */ private String awsShippingAddress; /** * A token representing the location of the storage device, such as * "AtAWS". */ private String locationCode; /** * A more human readable form of the physical location of the storage * device. */ private String locationMessage; /** * A token representing the state of the job, such as "Started". */ private String progressCode; /** * A more human readable form of the job status. */ private String progressMessage; /** * Name of the shipping company. This value is included when the * LocationCode is "Returned". */ private String carrier; /** * The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". */ private String trackingNumber; /** * Amazon S3 bucket for user logs. */ private String logBucket; /** * The key where the user logs were stored. */ private String logKey; /** * Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. */ private Integer errorCount; /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. */ private String signature; /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. */ private String signatureFileContents; /** * The last manifest submitted, which will be used to process the job. */ private String currentManifest; /** * Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". */ private java.util.Date creationDate; /** * A unique identifier which refers to a particular job. * * @return A unique identifier which refers to a particular job. */ public String getJobId() { return jobId; } /** * A unique identifier which refers to a particular job. * * @param jobId A unique identifier which refers to a particular job. */ public void setJobId(String jobId) { this.jobId = jobId; } /** * A unique identifier which refers to a particular job. *

* Returns a reference to this object so that method calls can be chained together. * * @param jobId A unique identifier which refers to a particular job. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withJobId(String jobId) { this.jobId = jobId; return this; } /** * Specifies whether the job to initiate is an import or export job. *

* Constraints:
* Allowed Values: Import, Export * * @return Specifies whether the job to initiate is an import or export job. * * @see JobType */ public String getJobType() { return jobType; } /** * Specifies whether the job to initiate is an import or export job. *

* Constraints:
* Allowed Values: Import, Export * * @param jobType Specifies whether the job to initiate is an import or export job. * * @see JobType */ public void setJobType(String jobType) { this.jobType = jobType; } /** * Specifies whether the job to initiate is an import or export job. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Allowed Values: Import, Export * * @param jobType Specifies whether the job to initiate is an import or export job. * * @return A reference to this updated object so that method calls can be chained * together. * * @see JobType */ public GetStatusResult withJobType(String jobType) { this.jobType = jobType; return this; } /** * Specifies whether the job to initiate is an import or export job. *

* Constraints:
* Allowed Values: Import, Export * * @param jobType Specifies whether the job to initiate is an import or export job. * * @see JobType */ public void setJobType(JobType jobType) { this.jobType = jobType.toString(); } /** * Specifies whether the job to initiate is an import or export job. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Allowed Values: Import, Export * * @param jobType Specifies whether the job to initiate is an import or export job. * * @return A reference to this updated object so that method calls can be chained * together. * * @see JobType */ public GetStatusResult withJobType(JobType jobType) { this.jobType = jobType.toString(); return this; } /** * Address you ship your storage device to. * * @return Address you ship your storage device to. */ public String getAwsShippingAddress() { return awsShippingAddress; } /** * Address you ship your storage device to. * * @param awsShippingAddress Address you ship your storage device to. */ public void setAwsShippingAddress(String awsShippingAddress) { this.awsShippingAddress = awsShippingAddress; } /** * Address you ship your storage device to. *

* Returns a reference to this object so that method calls can be chained together. * * @param awsShippingAddress Address you ship your storage device to. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withAwsShippingAddress(String awsShippingAddress) { this.awsShippingAddress = awsShippingAddress; return this; } /** * A token representing the location of the storage device, such as * "AtAWS". * * @return A token representing the location of the storage device, such as * "AtAWS". */ public String getLocationCode() { return locationCode; } /** * A token representing the location of the storage device, such as * "AtAWS". * * @param locationCode A token representing the location of the storage device, such as * "AtAWS". */ public void setLocationCode(String locationCode) { this.locationCode = locationCode; } /** * A token representing the location of the storage device, such as * "AtAWS". *

* Returns a reference to this object so that method calls can be chained together. * * @param locationCode A token representing the location of the storage device, such as * "AtAWS". * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withLocationCode(String locationCode) { this.locationCode = locationCode; return this; } /** * A more human readable form of the physical location of the storage * device. * * @return A more human readable form of the physical location of the storage * device. */ public String getLocationMessage() { return locationMessage; } /** * A more human readable form of the physical location of the storage * device. * * @param locationMessage A more human readable form of the physical location of the storage * device. */ public void setLocationMessage(String locationMessage) { this.locationMessage = locationMessage; } /** * A more human readable form of the physical location of the storage * device. *

* Returns a reference to this object so that method calls can be chained together. * * @param locationMessage A more human readable form of the physical location of the storage * device. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withLocationMessage(String locationMessage) { this.locationMessage = locationMessage; return this; } /** * A token representing the state of the job, such as "Started". * * @return A token representing the state of the job, such as "Started". */ public String getProgressCode() { return progressCode; } /** * A token representing the state of the job, such as "Started". * * @param progressCode A token representing the state of the job, such as "Started". */ public void setProgressCode(String progressCode) { this.progressCode = progressCode; } /** * A token representing the state of the job, such as "Started". *

* Returns a reference to this object so that method calls can be chained together. * * @param progressCode A token representing the state of the job, such as "Started". * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withProgressCode(String progressCode) { this.progressCode = progressCode; return this; } /** * A more human readable form of the job status. * * @return A more human readable form of the job status. */ public String getProgressMessage() { return progressMessage; } /** * A more human readable form of the job status. * * @param progressMessage A more human readable form of the job status. */ public void setProgressMessage(String progressMessage) { this.progressMessage = progressMessage; } /** * A more human readable form of the job status. *

* Returns a reference to this object so that method calls can be chained together. * * @param progressMessage A more human readable form of the job status. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withProgressMessage(String progressMessage) { this.progressMessage = progressMessage; return this; } /** * Name of the shipping company. This value is included when the * LocationCode is "Returned". * * @return Name of the shipping company. This value is included when the * LocationCode is "Returned". */ public String getCarrier() { return carrier; } /** * Name of the shipping company. This value is included when the * LocationCode is "Returned". * * @param carrier Name of the shipping company. This value is included when the * LocationCode is "Returned". */ public void setCarrier(String carrier) { this.carrier = carrier; } /** * Name of the shipping company. This value is included when the * LocationCode is "Returned". *

* Returns a reference to this object so that method calls can be chained together. * * @param carrier Name of the shipping company. This value is included when the * LocationCode is "Returned". * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withCarrier(String carrier) { this.carrier = carrier; return this; } /** * The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". * * @return The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". */ public String getTrackingNumber() { return trackingNumber; } /** * The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". * * @param trackingNumber The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". */ public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } /** * The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". *

* Returns a reference to this object so that method calls can be chained together. * * @param trackingNumber The shipping tracking number assigned by AWS Import/Export to the * storage device when it's returned to you. We return this value when * the LocationCode is "Returned". * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; return this; } /** * Amazon S3 bucket for user logs. * * @return Amazon S3 bucket for user logs. */ public String getLogBucket() { return logBucket; } /** * Amazon S3 bucket for user logs. * * @param logBucket Amazon S3 bucket for user logs. */ public void setLogBucket(String logBucket) { this.logBucket = logBucket; } /** * Amazon S3 bucket for user logs. *

* Returns a reference to this object so that method calls can be chained together. * * @param logBucket Amazon S3 bucket for user logs. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withLogBucket(String logBucket) { this.logBucket = logBucket; return this; } /** * The key where the user logs were stored. * * @return The key where the user logs were stored. */ public String getLogKey() { return logKey; } /** * The key where the user logs were stored. * * @param logKey The key where the user logs were stored. */ public void setLogKey(String logKey) { this.logKey = logKey; } /** * The key where the user logs were stored. *

* Returns a reference to this object so that method calls can be chained together. * * @param logKey The key where the user logs were stored. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withLogKey(String logKey) { this.logKey = logKey; return this; } /** * Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. * * @return Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. */ public Integer getErrorCount() { return errorCount; } /** * Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. * * @param errorCount Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. */ public void setErrorCount(Integer errorCount) { this.errorCount = errorCount; } /** * Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. *

* Returns a reference to this object so that method calls can be chained together. * * @param errorCount Number of errors. We return this value when the ProgressCode is * Success or SuccessWithErrors. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withErrorCount(Integer errorCount) { this.errorCount = errorCount; return this; } /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. * * @return An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. */ public String getSignature() { return signature; } /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. * * @param signature An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. */ public void setSignature(String signature) { this.signature = signature; } /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. *

* Returns a reference to this object so that method calls can be chained together. * * @param signature An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withSignature(String signature) { this.signature = signature; return this; } /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. * * @return An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. */ public String getSignatureFileContents() { return signatureFileContents; } /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. * * @param signatureFileContents An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. */ public void setSignatureFileContents(String signatureFileContents) { this.signatureFileContents = signatureFileContents; } /** * An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. *

* Returns a reference to this object so that method calls can be chained together. * * @param signatureFileContents An encrypted code used to authenticate the request and response, for * example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you * want to create the signature file yourself. Generally you should use * the SignatureFileContents value. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withSignatureFileContents(String signatureFileContents) { this.signatureFileContents = signatureFileContents; return this; } /** * The last manifest submitted, which will be used to process the job. * * @return The last manifest submitted, which will be used to process the job. */ public String getCurrentManifest() { return currentManifest; } /** * The last manifest submitted, which will be used to process the job. * * @param currentManifest The last manifest submitted, which will be used to process the job. */ public void setCurrentManifest(String currentManifest) { this.currentManifest = currentManifest; } /** * The last manifest submitted, which will be used to process the job. *

* Returns a reference to this object so that method calls can be chained together. * * @param currentManifest The last manifest submitted, which will be used to process the job. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withCurrentManifest(String currentManifest) { this.currentManifest = currentManifest; return this; } /** * Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". * * @return Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". */ public java.util.Date getCreationDate() { return creationDate; } /** * Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". * * @param creationDate Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** * Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". *

* Returns a reference to this object so that method calls can be chained together. * * @param creationDate Timestamp of the CreateJob request in ISO8601 date format. For example * "2010-03-28T20:27:35Z". * * @return A reference to this updated object so that method calls can be chained * together. */ public GetStatusResult withCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobId() != null) sb.append("JobId: " + getJobId() + ","); if (getJobType() != null) sb.append("JobType: " + getJobType() + ","); if (getAwsShippingAddress() != null) sb.append("AwsShippingAddress: " + getAwsShippingAddress() + ","); if (getLocationCode() != null) sb.append("LocationCode: " + getLocationCode() + ","); if (getLocationMessage() != null) sb.append("LocationMessage: " + getLocationMessage() + ","); if (getProgressCode() != null) sb.append("ProgressCode: " + getProgressCode() + ","); if (getProgressMessage() != null) sb.append("ProgressMessage: " + getProgressMessage() + ","); if (getCarrier() != null) sb.append("Carrier: " + getCarrier() + ","); if (getTrackingNumber() != null) sb.append("TrackingNumber: " + getTrackingNumber() + ","); if (getLogBucket() != null) sb.append("LogBucket: " + getLogBucket() + ","); if (getLogKey() != null) sb.append("LogKey: " + getLogKey() + ","); if (getErrorCount() != null) sb.append("ErrorCount: " + getErrorCount() + ","); if (getSignature() != null) sb.append("Signature: " + getSignature() + ","); if (getSignatureFileContents() != null) sb.append("SignatureFileContents: " + getSignatureFileContents() + ","); if (getCurrentManifest() != null) sb.append("CurrentManifest: " + getCurrentManifest() + ","); if (getCreationDate() != null) sb.append("CreationDate: " + getCreationDate() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getJobType() == null) ? 0 : getJobType().hashCode()); hashCode = prime * hashCode + ((getAwsShippingAddress() == null) ? 0 : getAwsShippingAddress().hashCode()); hashCode = prime * hashCode + ((getLocationCode() == null) ? 0 : getLocationCode().hashCode()); hashCode = prime * hashCode + ((getLocationMessage() == null) ? 0 : getLocationMessage().hashCode()); hashCode = prime * hashCode + ((getProgressCode() == null) ? 0 : getProgressCode().hashCode()); hashCode = prime * hashCode + ((getProgressMessage() == null) ? 0 : getProgressMessage().hashCode()); hashCode = prime * hashCode + ((getCarrier() == null) ? 0 : getCarrier().hashCode()); hashCode = prime * hashCode + ((getTrackingNumber() == null) ? 0 : getTrackingNumber().hashCode()); hashCode = prime * hashCode + ((getLogBucket() == null) ? 0 : getLogBucket().hashCode()); hashCode = prime * hashCode + ((getLogKey() == null) ? 0 : getLogKey().hashCode()); hashCode = prime * hashCode + ((getErrorCount() == null) ? 0 : getErrorCount().hashCode()); hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getSignatureFileContents() == null) ? 0 : getSignatureFileContents().hashCode()); hashCode = prime * hashCode + ((getCurrentManifest() == null) ? 0 : getCurrentManifest().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetStatusResult == false) return false; GetStatusResult other = (GetStatusResult)obj; 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.getAwsShippingAddress() == null ^ this.getAwsShippingAddress() == null) return false; if (other.getAwsShippingAddress() != null && other.getAwsShippingAddress().equals(this.getAwsShippingAddress()) == false) return false; if (other.getLocationCode() == null ^ this.getLocationCode() == null) return false; if (other.getLocationCode() != null && other.getLocationCode().equals(this.getLocationCode()) == false) return false; if (other.getLocationMessage() == null ^ this.getLocationMessage() == null) return false; if (other.getLocationMessage() != null && other.getLocationMessage().equals(this.getLocationMessage()) == false) return false; if (other.getProgressCode() == null ^ this.getProgressCode() == null) return false; if (other.getProgressCode() != null && other.getProgressCode().equals(this.getProgressCode()) == false) return false; if (other.getProgressMessage() == null ^ this.getProgressMessage() == null) return false; if (other.getProgressMessage() != null && other.getProgressMessage().equals(this.getProgressMessage()) == false) return false; if (other.getCarrier() == null ^ this.getCarrier() == null) return false; if (other.getCarrier() != null && other.getCarrier().equals(this.getCarrier()) == false) return false; if (other.getTrackingNumber() == null ^ this.getTrackingNumber() == null) return false; if (other.getTrackingNumber() != null && other.getTrackingNumber().equals(this.getTrackingNumber()) == false) return false; if (other.getLogBucket() == null ^ this.getLogBucket() == null) return false; if (other.getLogBucket() != null && other.getLogBucket().equals(this.getLogBucket()) == false) return false; if (other.getLogKey() == null ^ this.getLogKey() == null) return false; if (other.getLogKey() != null && other.getLogKey().equals(this.getLogKey()) == false) return false; if (other.getErrorCount() == null ^ this.getErrorCount() == null) return false; if (other.getErrorCount() != null && other.getErrorCount().equals(this.getErrorCount()) == false) return false; if (other.getSignature() == null ^ this.getSignature() == null) return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getSignatureFileContents() == null ^ this.getSignatureFileContents() == null) return false; if (other.getSignatureFileContents() != null && other.getSignatureFileContents().equals(this.getSignatureFileContents()) == false) return false; if (other.getCurrentManifest() == null ^ this.getCurrentManifest() == null) return false; if (other.getCurrentManifest() != null && other.getCurrentManifest().equals(this.getCurrentManifest()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy