* The version of cluster policy. *
*/ private String currentVersion; /** ** The cluster policy. *
*/ private String policy; /** ** The version of cluster policy. *
* * @param currentVersion ** The version of cluster policy. *
*/ public void setCurrentVersion(String currentVersion) { this.currentVersion = currentVersion; } /** ** The version of cluster policy. *
* * @return* The version of cluster policy. *
*/ public String getCurrentVersion() { return this.currentVersion; } /** ** The version of cluster policy. *
* * @param currentVersion ** The version of cluster policy. *
* @return Returns a reference to this object so that method calls can be chained together. */ public GetClusterPolicyResult withCurrentVersion(String currentVersion) { setCurrentVersion(currentVersion); return this; } /** ** The cluster policy. *
* * @param policy ** The cluster policy. *
*/ public void setPolicy(String policy) { this.policy = policy; } /** ** The cluster policy. *
* * @return* The cluster policy. *
*/ public String getPolicy() { return this.policy; } /** ** The cluster policy. *
* * @param policy ** The cluster policy. *
* @return Returns a reference to this object so that method calls can be chained together. */ public GetClusterPolicyResult withPolicy(String policy) { setPolicy(policy); 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 (getCurrentVersion() != null) sb.append("CurrentVersion: ").append(getCurrentVersion()).append(","); if (getPolicy() != null) sb.append("Policy: ").append(getPolicy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetClusterPolicyResult == false) return false; GetClusterPolicyResult other = (GetClusterPolicyResult) obj; if (other.getCurrentVersion() == null ^ this.getCurrentVersion() == null) return false; if (other.getCurrentVersion() != null && other.getCurrentVersion().equals(this.getCurrentVersion()) == false) return false; if (other.getPolicy() == null ^ this.getPolicy() == null) return false; if (other.getPolicy() != null && other.getPolicy().equals(this.getPolicy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCurrentVersion() == null) ? 0 : getCurrentVersion().hashCode()); hashCode = prime * hashCode + ((getPolicy() == null) ? 0 : getPolicy().hashCode()); return hashCode; } @Override public GetClusterPolicyResult clone() { try { return (GetClusterPolicyResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }