/** * 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 (getPrimaryClusterId() != null) sb.append("PrimaryClusterId: ").append(getPrimaryClusterId()).append(","); if (getAutomaticFailoverStatus() != null) sb.append("AutomaticFailoverStatus: ").append(getAutomaticFailoverStatus()).append(","); if (getResharding() != null) sb.append("Resharding: ").append(getResharding()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPrimaryClusterId() == null) ? 0 : getPrimaryClusterId().hashCode()); hashCode = prime * hashCode + ((getAutomaticFailoverStatus() == null) ? 0 : getAutomaticFailoverStatus().hashCode()); hashCode = prime * hashCode + ((getResharding() == null) ? 0 : getResharding().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicationGroupPendingModifiedValues == false) return false; ReplicationGroupPendingModifiedValues other = (ReplicationGroupPendingModifiedValues) obj; if (other.getPrimaryClusterId() == null ^ this.getPrimaryClusterId() == null) return false; if (other.getPrimaryClusterId() != null && other.getPrimaryClusterId().equals(this.getPrimaryClusterId()) == false) return false; if (other.getAutomaticFailoverStatus() == null ^ this.getAutomaticFailoverStatus() == null) return false; if (other.getAutomaticFailoverStatus() != null && other.getAutomaticFailoverStatus().equals(this.getAutomaticFailoverStatus()) == false) return false; if (other.getResharding() == null ^ this.getResharding() == null) return false; if (other.getResharding() != null && other.getResharding().equals(this.getResharding()) == false) return false; return true; }
/** * 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 (getPrimaryClusterId() != null) sb.append("PrimaryClusterId: ").append(getPrimaryClusterId()).append(","); if (getAutomaticFailoverStatus() != null) sb.append("AutomaticFailoverStatus: ").append(getAutomaticFailoverStatus()).append(","); if (getResharding() != null) sb.append("Resharding: ").append(getResharding()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPrimaryClusterId() == null) ? 0 : getPrimaryClusterId().hashCode()); hashCode = prime * hashCode + ((getAutomaticFailoverStatus() == null) ? 0 : getAutomaticFailoverStatus().hashCode()); hashCode = prime * hashCode + ((getResharding() == null) ? 0 : getResharding().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicationGroupPendingModifiedValues == false) return false; ReplicationGroupPendingModifiedValues other = (ReplicationGroupPendingModifiedValues) obj; if (other.getPrimaryClusterId() == null ^ this.getPrimaryClusterId() == null) return false; if (other.getPrimaryClusterId() != null && other.getPrimaryClusterId().equals(this.getPrimaryClusterId()) == false) return false; if (other.getAutomaticFailoverStatus() == null ^ this.getAutomaticFailoverStatus() == null) return false; if (other.getAutomaticFailoverStatus() != null && other.getAutomaticFailoverStatus().equals(this.getAutomaticFailoverStatus()) == false) return false; if (other.getResharding() == null ^ this.getResharding() == null) return false; if (other.getResharding() != null && other.getResharding().equals(this.getResharding()) == false) return false; return true; }