* The ID of the upload. *
*/ private String uploadId; /** *
* The status of the upload. The initial status is IN_PROGRESS
. The response show all validation
* failures if the upload fails.
*
* The ARN of the upload. *
*/ private String namespaceArn; /** ** The name of the upload's namespace. *
*/ private String namespaceName; /** ** The version of the user's namespace. Defaults to the latest version of the user's namespace. *
*/ private Long namespaceVersion; /** ** The reason for an upload failure. *
*/ private java.util.List* The date at which the upload was created. *
*/ private java.util.Date createdDate; /** ** The ID of the upload. *
* * @param uploadId * The ID of the upload. */ public void setUploadId(String uploadId) { this.uploadId = uploadId; } /** ** The ID of the upload. *
* * @return The ID of the upload. */ public String getUploadId() { return this.uploadId; } /** ** The ID of the upload. *
* * @param uploadId * The ID of the upload. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withUploadId(String uploadId) { setUploadId(uploadId); return this; } /** *
* The status of the upload. The initial status is IN_PROGRESS
. The response show all validation
* failures if the upload fails.
*
IN_PROGRESS
. The response show all validation
* failures if the upload fails.
* @see UploadStatus
*/
public void setUploadStatus(String uploadStatus) {
this.uploadStatus = uploadStatus;
}
/**
*
* The status of the upload. The initial status is IN_PROGRESS
. The response show all validation
* failures if the upload fails.
*
IN_PROGRESS
. The response show all
* validation failures if the upload fails.
* @see UploadStatus
*/
public String getUploadStatus() {
return this.uploadStatus;
}
/**
*
* The status of the upload. The initial status is IN_PROGRESS
. The response show all validation
* failures if the upload fails.
*
IN_PROGRESS
. The response show all validation
* failures if the upload fails.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadStatus
*/
public GetUploadStatusResult withUploadStatus(String uploadStatus) {
setUploadStatus(uploadStatus);
return this;
}
/**
*
* The status of the upload. The initial status is IN_PROGRESS
. The response show all validation
* failures if the upload fails.
*
IN_PROGRESS
. The response show all validation
* failures if the upload fails.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadStatus
*/
public GetUploadStatusResult withUploadStatus(UploadStatus uploadStatus) {
this.uploadStatus = uploadStatus.toString();
return this;
}
/**
* * The ARN of the upload. *
* * @param namespaceArn * The ARN of the upload. */ public void setNamespaceArn(String namespaceArn) { this.namespaceArn = namespaceArn; } /** ** The ARN of the upload. *
* * @return The ARN of the upload. */ public String getNamespaceArn() { return this.namespaceArn; } /** ** The ARN of the upload. *
* * @param namespaceArn * The ARN of the upload. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withNamespaceArn(String namespaceArn) { setNamespaceArn(namespaceArn); return this; } /** ** The name of the upload's namespace. *
* * @param namespaceName * The name of the upload's namespace. */ public void setNamespaceName(String namespaceName) { this.namespaceName = namespaceName; } /** ** The name of the upload's namespace. *
* * @return The name of the upload's namespace. */ public String getNamespaceName() { return this.namespaceName; } /** ** The name of the upload's namespace. *
* * @param namespaceName * The name of the upload's namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withNamespaceName(String namespaceName) { setNamespaceName(namespaceName); return this; } /** ** The version of the user's namespace. Defaults to the latest version of the user's namespace. *
* * @param namespaceVersion * The version of the user's namespace. Defaults to the latest version of the user's namespace. */ public void setNamespaceVersion(Long namespaceVersion) { this.namespaceVersion = namespaceVersion; } /** ** The version of the user's namespace. Defaults to the latest version of the user's namespace. *
* * @return The version of the user's namespace. Defaults to the latest version of the user's namespace. */ public Long getNamespaceVersion() { return this.namespaceVersion; } /** ** The version of the user's namespace. Defaults to the latest version of the user's namespace. *
* * @param namespaceVersion * The version of the user's namespace. Defaults to the latest version of the user's namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withNamespaceVersion(Long namespaceVersion) { setNamespaceVersion(namespaceVersion); return this; } /** ** The reason for an upload failure. *
* * @return The reason for an upload failure. */ public java.util.List* The reason for an upload failure. *
* * @param failureReason * The reason for an upload failure. */ public void setFailureReason(java.util.Collection* The reason for an upload failure. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFailureReason(java.util.Collection)} or {@link #withFailureReason(java.util.Collection)} if you want * to override the existing values. *
* * @param failureReason * The reason for an upload failure. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withFailureReason(String... failureReason) { if (this.failureReason == null) { setFailureReason(new java.util.ArrayList* The reason for an upload failure. *
* * @param failureReason * The reason for an upload failure. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withFailureReason(java.util.Collection* The date at which the upload was created. *
* * @param createdDate * The date at which the upload was created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** ** The date at which the upload was created. *
* * @return The date at which the upload was created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** ** The date at which the upload was created. *
* * @param createdDate * The date at which the upload was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUploadStatusResult withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); 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 (getUploadId() != null) sb.append("UploadId: ").append(getUploadId()).append(","); if (getUploadStatus() != null) sb.append("UploadStatus: ").append(getUploadStatus()).append(","); if (getNamespaceArn() != null) sb.append("NamespaceArn: ").append(getNamespaceArn()).append(","); if (getNamespaceName() != null) sb.append("NamespaceName: ").append(getNamespaceName()).append(","); if (getNamespaceVersion() != null) sb.append("NamespaceVersion: ").append(getNamespaceVersion()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetUploadStatusResult == false) return false; GetUploadStatusResult other = (GetUploadStatusResult) obj; if (other.getUploadId() == null ^ this.getUploadId() == null) return false; if (other.getUploadId() != null && other.getUploadId().equals(this.getUploadId()) == false) return false; if (other.getUploadStatus() == null ^ this.getUploadStatus() == null) return false; if (other.getUploadStatus() != null && other.getUploadStatus().equals(this.getUploadStatus()) == false) return false; if (other.getNamespaceArn() == null ^ this.getNamespaceArn() == null) return false; if (other.getNamespaceArn() != null && other.getNamespaceArn().equals(this.getNamespaceArn()) == false) return false; if (other.getNamespaceName() == null ^ this.getNamespaceName() == null) return false; if (other.getNamespaceName() != null && other.getNamespaceName().equals(this.getNamespaceName()) == false) return false; if (other.getNamespaceVersion() == null ^ this.getNamespaceVersion() == null) return false; if (other.getNamespaceVersion() != null && other.getNamespaceVersion().equals(this.getNamespaceVersion()) == 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.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUploadId() == null) ? 0 : getUploadId().hashCode()); hashCode = prime * hashCode + ((getUploadStatus() == null) ? 0 : getUploadStatus().hashCode()); hashCode = prime * hashCode + ((getNamespaceArn() == null) ? 0 : getNamespaceArn().hashCode()); hashCode = prime * hashCode + ((getNamespaceName() == null) ? 0 : getNamespaceName().hashCode()); hashCode = prime * hashCode + ((getNamespaceVersion() == null) ? 0 : getNamespaceVersion().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); return hashCode; } @Override public GetUploadStatusResult clone() { try { return (GetUploadStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }