* The ID of the workload. *
*/ private String workloadId; /** ** The configuration settings of the workload. The value is the escaped JSON of the configuration. *
*/ private WorkloadConfiguration workloadConfiguration; /** ** The ID of the workload. *
* * @param workloadId * The ID of the workload. */ public void setWorkloadId(String workloadId) { this.workloadId = workloadId; } /** ** The ID of the workload. *
* * @return The ID of the workload. */ public String getWorkloadId() { return this.workloadId; } /** ** The ID of the workload. *
* * @param workloadId * The ID of the workload. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadResult withWorkloadId(String workloadId) { setWorkloadId(workloadId); return this; } /** ** The configuration settings of the workload. The value is the escaped JSON of the configuration. *
* * @param workloadConfiguration * The configuration settings of the workload. The value is the escaped JSON of the configuration. */ public void setWorkloadConfiguration(WorkloadConfiguration workloadConfiguration) { this.workloadConfiguration = workloadConfiguration; } /** ** The configuration settings of the workload. The value is the escaped JSON of the configuration. *
* * @return The configuration settings of the workload. The value is the escaped JSON of the configuration. */ public WorkloadConfiguration getWorkloadConfiguration() { return this.workloadConfiguration; } /** ** The configuration settings of the workload. The value is the escaped JSON of the configuration. *
* * @param workloadConfiguration * The configuration settings of the workload. The value is the escaped JSON of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadResult withWorkloadConfiguration(WorkloadConfiguration workloadConfiguration) { setWorkloadConfiguration(workloadConfiguration); 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 (getWorkloadId() != null) sb.append("WorkloadId: ").append(getWorkloadId()).append(","); if (getWorkloadConfiguration() != null) sb.append("WorkloadConfiguration: ").append(getWorkloadConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateWorkloadResult == false) return false; UpdateWorkloadResult other = (UpdateWorkloadResult) obj; if (other.getWorkloadId() == null ^ this.getWorkloadId() == null) return false; if (other.getWorkloadId() != null && other.getWorkloadId().equals(this.getWorkloadId()) == false) return false; if (other.getWorkloadConfiguration() == null ^ this.getWorkloadConfiguration() == null) return false; if (other.getWorkloadConfiguration() != null && other.getWorkloadConfiguration().equals(this.getWorkloadConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkloadId() == null) ? 0 : getWorkloadId().hashCode()); hashCode = prime * hashCode + ((getWorkloadConfiguration() == null) ? 0 : getWorkloadConfiguration().hashCode()); return hashCode; } @Override public UpdateWorkloadResult clone() { try { return (UpdateWorkloadResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }