* The status of the task. *
*/ private String status; /** ** A summary of the status of the task. *
*/ private DataSetImportSummary summary; /** ** The task identifier. *
*/ private String taskId; /** ** The status of the task. *
* * @param status * The status of the task. * @see DataSetTaskLifecycle */ public void setStatus(String status) { this.status = status; } /** ** The status of the task. *
* * @return The status of the task. * @see DataSetTaskLifecycle */ public String getStatus() { return this.status; } /** ** The status of the task. *
* * @param status * The status of the task. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSetTaskLifecycle */ public GetDataSetImportTaskResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the task. *
* * @param status * The status of the task. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSetTaskLifecycle */ public GetDataSetImportTaskResult withStatus(DataSetTaskLifecycle status) { this.status = status.toString(); return this; } /** ** A summary of the status of the task. *
* * @param summary * A summary of the status of the task. */ public void setSummary(DataSetImportSummary summary) { this.summary = summary; } /** ** A summary of the status of the task. *
* * @return A summary of the status of the task. */ public DataSetImportSummary getSummary() { return this.summary; } /** ** A summary of the status of the task. *
* * @param summary * A summary of the status of the task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSetImportTaskResult withSummary(DataSetImportSummary summary) { setSummary(summary); return this; } /** ** The task identifier. *
* * @param taskId * The task identifier. */ public void setTaskId(String taskId) { this.taskId = taskId; } /** ** The task identifier. *
* * @return The task identifier. */ public String getTaskId() { return this.taskId; } /** ** The task identifier. *
* * @param taskId * The task identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSetImportTaskResult withTaskId(String taskId) { setTaskId(taskId); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSummary() != null) sb.append("Summary: ").append(getSummary()).append(","); if (getTaskId() != null) sb.append("TaskId: ").append(getTaskId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDataSetImportTaskResult == false) return false; GetDataSetImportTaskResult other = (GetDataSetImportTaskResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSummary() == null ^ this.getSummary() == null) return false; if (other.getSummary() != null && other.getSummary().equals(this.getSummary()) == false) return false; if (other.getTaskId() == null ^ this.getTaskId() == null) return false; if (other.getTaskId() != null && other.getTaskId().equals(this.getTaskId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSummary() == null) ? 0 : getSummary().hashCode()); hashCode = prime * hashCode + ((getTaskId() == null) ? 0 : getTaskId().hashCode()); return hashCode; } @Override public GetDataSetImportTaskResult clone() { try { return (GetDataSetImportTaskResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }