* The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated when you start a new job with a
* StartDashboardSnapshotJob
API call.
*
* Indicates the status of a job after it has reached a terminal state. A finished snapshot job will retuen a
* COMPLETED
or FAILED
status.
*
* The time that a snapshot job was created. *
*/ private java.util.Date createdTime; /** ** The time that a snapshot job status was last updated. *
*/ private java.util.Date lastUpdatedTime; /** ** The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they are * located. Jobs that have failedwill return information on the error that caused the job to fail. *
*/ private SnapshotJobResult result; /** ** Displays information for the error that caused a job to fail. *
*/ private SnapshotJobErrorInfo errorInfo; /** ** The Amazon Web Services request ID for this operation. *
*/ private String requestId; /** ** The HTTP status of the request *
*/ private Integer status; /** *
* The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated when you start a new job with a
* StartDashboardSnapshotJob
API call.
*
StartDashboardSnapshotJob
API call.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated when you start a new job with a
* StartDashboardSnapshotJob
API call.
*
StartDashboardSnapshotJob
API call.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) for the snapshot job. The job ARN is generated when you start a new job with a
* StartDashboardSnapshotJob
API call.
*
StartDashboardSnapshotJob
API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDashboardSnapshotJobResultResult withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* Indicates the status of a job after it has reached a terminal state. A finished snapshot job will retuen a
* COMPLETED
or FAILED
status.
*
COMPLETED
or FAILED
status.
* @see SnapshotJobStatus
*/
public void setJobStatus(String jobStatus) {
this.jobStatus = jobStatus;
}
/**
*
* Indicates the status of a job after it has reached a terminal state. A finished snapshot job will retuen a
* COMPLETED
or FAILED
status.
*
COMPLETED
or FAILED
status.
* @see SnapshotJobStatus
*/
public String getJobStatus() {
return this.jobStatus;
}
/**
*
* Indicates the status of a job after it has reached a terminal state. A finished snapshot job will retuen a
* COMPLETED
or FAILED
status.
*
COMPLETED
or FAILED
status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SnapshotJobStatus
*/
public DescribeDashboardSnapshotJobResultResult withJobStatus(String jobStatus) {
setJobStatus(jobStatus);
return this;
}
/**
*
* Indicates the status of a job after it has reached a terminal state. A finished snapshot job will retuen a
* COMPLETED
or FAILED
status.
*
COMPLETED
or FAILED
status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SnapshotJobStatus
*/
public DescribeDashboardSnapshotJobResultResult withJobStatus(SnapshotJobStatus jobStatus) {
this.jobStatus = jobStatus.toString();
return this;
}
/**
* * The time that a snapshot job was created. *
* * @param createdTime * The time that a snapshot job was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The time that a snapshot job was created. *
* * @return The time that a snapshot job was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The time that a snapshot job was created. *
* * @param createdTime * The time that a snapshot job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDashboardSnapshotJobResultResult withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** The time that a snapshot job status was last updated. *
* * @param lastUpdatedTime * The time that a snapshot job status was last updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The time that a snapshot job status was last updated. *
* * @return The time that a snapshot job status was last updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** The time that a snapshot job status was last updated. *
* * @param lastUpdatedTime * The time that a snapshot job status was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDashboardSnapshotJobResultResult withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** ** The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they are * located. Jobs that have failedwill return information on the error that caused the job to fail. *
* * @param result * The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they are * located. Jobs that have failedwill return information on the error that caused the job to fail. */ public void setResult(SnapshotJobResult result) { this.result = result; } /** ** The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they are * located. Jobs that have failedwill return information on the error that caused the job to fail. *
* * @return The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they * are located. Jobs that have failedwill return information on the error that caused the job to fail. */ public SnapshotJobResult getResult() { return this.result; } /** ** The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they are * located. Jobs that have failedwill return information on the error that caused the job to fail. *
* * @param result * The result of the snapshot job. Jobs that have successfully completed will return the S3Uri where they are * located. Jobs that have failedwill return information on the error that caused the job to fail. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDashboardSnapshotJobResultResult withResult(SnapshotJobResult result) { setResult(result); return this; } /** ** Displays information for the error that caused a job to fail. *
* * @param errorInfo * Displays information for the error that caused a job to fail. */ public void setErrorInfo(SnapshotJobErrorInfo errorInfo) { this.errorInfo = errorInfo; } /** ** Displays information for the error that caused a job to fail. *
* * @return Displays information for the error that caused a job to fail. */ public SnapshotJobErrorInfo getErrorInfo() { return this.errorInfo; } /** ** Displays information for the error that caused a job to fail. *
* * @param errorInfo * Displays information for the error that caused a job to fail. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDashboardSnapshotJobResultResult withErrorInfo(SnapshotJobErrorInfo errorInfo) { setErrorInfo(errorInfo); return this; } /** ** The Amazon Web Services request ID for this operation. *
* * @param requestId * The Amazon Web Services request ID for this operation. */ public void setRequestId(String requestId) { this.requestId = requestId; } /** ** The Amazon Web Services request ID for this operation. *
* * @return The Amazon Web Services request ID for this operation. */ public String getRequestId() { return this.requestId; } /** ** The Amazon Web Services request ID for this operation. *
* * @param requestId * The Amazon Web Services request ID for this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDashboardSnapshotJobResultResult withRequestId(String requestId) { setRequestId(requestId); return this; } /** ** The HTTP status of the request *
* * @param status * The HTTP status of the request */ public void setStatus(Integer status) { this.status = status; } /** ** The HTTP status of the request *
* * @return The HTTP status of the request */ public Integer getStatus() { return this.status; } /** ** The HTTP status of the request *
* * @param status * The HTTP status of the request * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDashboardSnapshotJobResultResult withStatus(Integer status) { setStatus(status); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getJobStatus() != null) sb.append("JobStatus: ").append(getJobStatus()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getResult() != null) sb.append("Result: ").append(getResult()).append(","); if (getErrorInfo() != null) sb.append("ErrorInfo: ").append(getErrorInfo()).append(","); if (getRequestId() != null) sb.append("RequestId: ").append(getRequestId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDashboardSnapshotJobResultResult == false) return false; DescribeDashboardSnapshotJobResultResult other = (DescribeDashboardSnapshotJobResultResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getJobStatus() == null ^ this.getJobStatus() == null) return false; if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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.getResult() == null ^ this.getResult() == null) return false; if (other.getResult() != null && other.getResult().equals(this.getResult()) == false) return false; if (other.getErrorInfo() == null ^ this.getErrorInfo() == null) return false; if (other.getErrorInfo() != null && other.getErrorInfo().equals(this.getErrorInfo()) == false) return false; if (other.getRequestId() == null ^ this.getRequestId() == null) return false; if (other.getRequestId() != null && other.getRequestId().equals(this.getRequestId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getResult() == null) ? 0 : getResult().hashCode()); hashCode = prime * hashCode + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode()); hashCode = prime * hashCode + ((getRequestId() == null) ? 0 : getRequestId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public DescribeDashboardSnapshotJobResultResult clone() { try { return (DescribeDashboardSnapshotJobResultResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }