* The requested workflow run metadata. *
*/ private WorkflowRun run; /** ** The requested workflow run metadata. *
* * @param run * The requested workflow run metadata. */ public void setRun(WorkflowRun run) { this.run = run; } /** ** The requested workflow run metadata. *
* * @return The requested workflow run metadata. */ public WorkflowRun getRun() { return this.run; } /** ** The requested workflow run metadata. *
* * @param run * The requested workflow run metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkflowRunResult withRun(WorkflowRun run) { setRun(run); 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 (getRun() != null) sb.append("Run: ").append(getRun()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetWorkflowRunResult == false) return false; GetWorkflowRunResult other = (GetWorkflowRunResult) obj; if (other.getRun() == null ^ this.getRun() == null) return false; if (other.getRun() != null && other.getRun().equals(this.getRun()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRun() == null) ? 0 : getRun().hashCode()); return hashCode; } @Override public GetWorkflowRunResult clone() { try { return (GetWorkflowRunResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }