* The unique identifier of the machine learning transform. *
*/ private String transformId; /** ** The unique identifier for the task run. *
*/ private String taskRunId; /** ** The status for this run. *
*/ private String status; /** ** The unique identifier of the machine learning transform. *
* * @param transformId * The unique identifier of the machine learning transform. */ public void setTransformId(String transformId) { this.transformId = transformId; } /** ** The unique identifier of the machine learning transform. *
* * @return The unique identifier of the machine learning transform. */ public String getTransformId() { return this.transformId; } /** ** The unique identifier of the machine learning transform. *
* * @param transformId * The unique identifier of the machine learning transform. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelMLTaskRunResult withTransformId(String transformId) { setTransformId(transformId); return this; } /** ** The unique identifier for the task run. *
* * @param taskRunId * The unique identifier for the task run. */ public void setTaskRunId(String taskRunId) { this.taskRunId = taskRunId; } /** ** The unique identifier for the task run. *
* * @return The unique identifier for the task run. */ public String getTaskRunId() { return this.taskRunId; } /** ** The unique identifier for the task run. *
* * @param taskRunId * The unique identifier for the task run. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelMLTaskRunResult withTaskRunId(String taskRunId) { setTaskRunId(taskRunId); return this; } /** ** The status for this run. *
* * @param status * The status for this run. * @see TaskStatusType */ public void setStatus(String status) { this.status = status; } /** ** The status for this run. *
* * @return The status for this run. * @see TaskStatusType */ public String getStatus() { return this.status; } /** ** The status for this run. *
* * @param status * The status for this run. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskStatusType */ public CancelMLTaskRunResult withStatus(String status) { setStatus(status); return this; } /** ** The status for this run. *
* * @param status * The status for this run. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskStatusType */ public CancelMLTaskRunResult withStatus(TaskStatusType status) { this.status = status.toString(); 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 (getTransformId() != null) sb.append("TransformId: ").append(getTransformId()).append(","); if (getTaskRunId() != null) sb.append("TaskRunId: ").append(getTaskRunId()).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 CancelMLTaskRunResult == false) return false; CancelMLTaskRunResult other = (CancelMLTaskRunResult) obj; if (other.getTransformId() == null ^ this.getTransformId() == null) return false; if (other.getTransformId() != null && other.getTransformId().equals(this.getTransformId()) == false) return false; if (other.getTaskRunId() == null ^ this.getTaskRunId() == null) return false; if (other.getTaskRunId() != null && other.getTaskRunId().equals(this.getTaskRunId()) == 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 + ((getTransformId() == null) ? 0 : getTransformId().hashCode()); hashCode = prime * hashCode + ((getTaskRunId() == null) ? 0 : getTaskRunId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public CancelMLTaskRunResult clone() { try { return (CancelMLTaskRunResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }