@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryId() == null) ? 0 : getRegistryId().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().hashCode()); hashCode = prime * hashCode + ((getLifecyclePolicyText() == null) ? 0 : getLifecyclePolicyText().hashCode()); hashCode = prime * hashCode + ((getLastEvaluatedAt() == null) ? 0 : getLastEvaluatedAt().hashCode()); return hashCode; }
/** * 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 (getRegistryId() != null) sb.append("RegistryId: ").append(getRegistryId()).append(","); if (getRepositoryName() != null) sb.append("RepositoryName: ").append(getRepositoryName()).append(","); if (getLifecyclePolicyText() != null) sb.append("LifecyclePolicyText: ").append(getLifecyclePolicyText()).append(","); if (getLastEvaluatedAt() != null) sb.append("LastEvaluatedAt: ").append(getLastEvaluatedAt()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLifecyclePolicyResult == false) return false; GetLifecyclePolicyResult other = (GetLifecyclePolicyResult) obj; if (other.getRegistryId() == null ^ this.getRegistryId() == null) return false; if (other.getRegistryId() != null && other.getRegistryId().equals(this.getRegistryId()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == false) return false; if (other.getLifecyclePolicyText() == null ^ this.getLifecyclePolicyText() == null) return false; if (other.getLifecyclePolicyText() != null && other.getLifecyclePolicyText().equals(this.getLifecyclePolicyText()) == false) return false; if (other.getLastEvaluatedAt() == null ^ this.getLastEvaluatedAt() == null) return false; if (other.getLastEvaluatedAt() != null && other.getLastEvaluatedAt().equals(this.getLastEvaluatedAt()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryId() == null) ? 0 : getRegistryId().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().hashCode()); hashCode = prime * hashCode + ((getLifecyclePolicyText() == null) ? 0 : getLifecyclePolicyText().hashCode()); hashCode = prime * hashCode + ((getLastEvaluatedAt() == null) ? 0 : getLastEvaluatedAt().hashCode()); return hashCode; }
/** * 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 (getRegistryId() != null) sb.append("RegistryId: ").append(getRegistryId()).append(","); if (getRepositoryName() != null) sb.append("RepositoryName: ").append(getRepositoryName()).append(","); if (getLifecyclePolicyText() != null) sb.append("LifecyclePolicyText: ").append(getLifecyclePolicyText()).append(","); if (getLastEvaluatedAt() != null) sb.append("LastEvaluatedAt: ").append(getLastEvaluatedAt()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLifecyclePolicyResult == false) return false; GetLifecyclePolicyResult other = (GetLifecyclePolicyResult) obj; if (other.getRegistryId() == null ^ this.getRegistryId() == null) return false; if (other.getRegistryId() != null && other.getRegistryId().equals(this.getRegistryId()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == false) return false; if (other.getLifecyclePolicyText() == null ^ this.getLifecyclePolicyText() == null) return false; if (other.getLifecyclePolicyText() != null && other.getLifecyclePolicyText().equals(this.getLifecyclePolicyText()) == false) return false; if (other.getLastEvaluatedAt() == null ^ this.getLastEvaluatedAt() == null) return false; if (other.getLastEvaluatedAt() != null && other.getLastEvaluatedAt().equals(this.getLastEvaluatedAt()) == false) return false; return true; }