* The ID of the workload. *
*/ private String workloadId; /** ** If logging is supported for the resource type, shows whether the component has configured logs to be monitored. *
*/ private String workloadRemarks; /** ** 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 DescribeWorkloadResult withWorkloadId(String workloadId) { setWorkloadId(workloadId); return this; } /** ** If logging is supported for the resource type, shows whether the component has configured logs to be monitored. *
* * @param workloadRemarks * If logging is supported for the resource type, shows whether the component has configured logs to be * monitored. */ public void setWorkloadRemarks(String workloadRemarks) { this.workloadRemarks = workloadRemarks; } /** ** If logging is supported for the resource type, shows whether the component has configured logs to be monitored. *
* * @return If logging is supported for the resource type, shows whether the component has configured logs to be * monitored. */ public String getWorkloadRemarks() { return this.workloadRemarks; } /** ** If logging is supported for the resource type, shows whether the component has configured logs to be monitored. *
* * @param workloadRemarks * If logging is supported for the resource type, shows whether the component has configured logs to be * monitored. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeWorkloadResult withWorkloadRemarks(String workloadRemarks) { setWorkloadRemarks(workloadRemarks); 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 DescribeWorkloadResult 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 (getWorkloadRemarks() != null) sb.append("WorkloadRemarks: ").append(getWorkloadRemarks()).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 DescribeWorkloadResult == false) return false; DescribeWorkloadResult other = (DescribeWorkloadResult) obj; if (other.getWorkloadId() == null ^ this.getWorkloadId() == null) return false; if (other.getWorkloadId() != null && other.getWorkloadId().equals(this.getWorkloadId()) == false) return false; if (other.getWorkloadRemarks() == null ^ this.getWorkloadRemarks() == null) return false; if (other.getWorkloadRemarks() != null && other.getWorkloadRemarks().equals(this.getWorkloadRemarks()) == 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 + ((getWorkloadRemarks() == null) ? 0 : getWorkloadRemarks().hashCode()); hashCode = prime * hashCode + ((getWorkloadConfiguration() == null) ? 0 : getWorkloadConfiguration().hashCode()); return hashCode; } @Override public DescribeWorkloadResult clone() { try { return (DescribeWorkloadResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }