@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; }
setAutomaticFailoverStatus(automaticFailoverStatus); return this;
/** * <p> * The primary cluster ID that is applied immediately (if <code>--apply-immediately</code> was specified), or during * the next maintenance window. * </p> * * @param primaryClusterId * The primary cluster ID that is applied immediately (if <code>--apply-immediately</code> was specified), or * during the next maintenance window. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationGroupPendingModifiedValues withPrimaryClusterId(String primaryClusterId) { setPrimaryClusterId(primaryClusterId); return this; }
public ReplicationGroupPendingModifiedValues unmarshall(StaxUnmarshallerContext context) throws Exception { ReplicationGroupPendingModifiedValues replicationGroupPendingModifiedValues = new ReplicationGroupPendingModifiedValues(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return replicationGroupPendingModifiedValues; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("PrimaryClusterId", targetDepth)) { replicationGroupPendingModifiedValues.setPrimaryClusterId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AutomaticFailoverStatus", targetDepth)) { replicationGroupPendingModifiedValues.setAutomaticFailoverStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Resharding", targetDepth)) { replicationGroupPendingModifiedValues.setResharding(ReshardingStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return replicationGroupPendingModifiedValues; } } } }
/** * <p> * The status of an online resharding operation. * </p> * * @param resharding * The status of an online resharding operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationGroupPendingModifiedValues withResharding(ReshardingStatus resharding) { setResharding(resharding); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getMemberClusters() == null) ? 0 : getMemberClusters().hashCode()); hashCode = prime * hashCode + ((getNodeGroups() == null) ? 0 : getNodeGroups().hashCode()); hashCode = prime * hashCode + ((getSnapshottingClusterId() == null) ? 0 : getSnapshottingClusterId().hashCode()); hashCode = prime * hashCode + ((getAutomaticFailover() == null) ? 0 : getAutomaticFailover().hashCode()); hashCode = prime * hashCode + ((getConfigurationEndpoint() == null) ? 0 : getConfigurationEndpoint().hashCode()); hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode()); hashCode = prime * hashCode + ((getSnapshotWindow() == null) ? 0 : getSnapshotWindow().hashCode()); hashCode = prime * hashCode + ((getClusterEnabled() == null) ? 0 : getClusterEnabled().hashCode()); hashCode = prime * hashCode + ((getCacheNodeType() == null) ? 0 : getCacheNodeType().hashCode()); hashCode = prime * hashCode + ((getAuthTokenEnabled() == null) ? 0 : getAuthTokenEnabled().hashCode()); hashCode = prime * hashCode + ((getTransitEncryptionEnabled() == null) ? 0 : getTransitEncryptionEnabled().hashCode()); hashCode = prime * hashCode + ((getAtRestEncryptionEnabled() == null) ? 0 : getAtRestEncryptionEnabled().hashCode()); return hashCode; }
withAutomaticFailoverStatus(automaticFailoverStatus);
if (other.getPendingModifiedValues() == null ^ this.getPendingModifiedValues() == null) return false; if (other.getPendingModifiedValues() != null && other.getPendingModifiedValues().equals(this.getPendingModifiedValues()) == false) return false; if (other.getMemberClusters() == null ^ this.getMemberClusters() == null)
public ReplicationGroupPendingModifiedValues unmarshall(StaxUnmarshallerContext context) throws Exception { ReplicationGroupPendingModifiedValues replicationGroupPendingModifiedValues = new ReplicationGroupPendingModifiedValues(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return replicationGroupPendingModifiedValues; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("PrimaryClusterId", targetDepth)) { replicationGroupPendingModifiedValues.setPrimaryClusterId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AutomaticFailoverStatus", targetDepth)) { replicationGroupPendingModifiedValues.setAutomaticFailoverStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Resharding", targetDepth)) { replicationGroupPendingModifiedValues.setResharding(ReshardingStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return replicationGroupPendingModifiedValues; } } } }
/** * <p> * The status of an online resharding operation. * </p> * * @param resharding * The status of an online resharding operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationGroupPendingModifiedValues withResharding(ReshardingStatus resharding) { setResharding(resharding); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getMemberClusters() == null) ? 0 : getMemberClusters().hashCode()); hashCode = prime * hashCode + ((getNodeGroups() == null) ? 0 : getNodeGroups().hashCode()); hashCode = prime * hashCode + ((getSnapshottingClusterId() == null) ? 0 : getSnapshottingClusterId().hashCode()); hashCode = prime * hashCode + ((getAutomaticFailover() == null) ? 0 : getAutomaticFailover().hashCode()); hashCode = prime * hashCode + ((getConfigurationEndpoint() == null) ? 0 : getConfigurationEndpoint().hashCode()); hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode()); hashCode = prime * hashCode + ((getSnapshotWindow() == null) ? 0 : getSnapshotWindow().hashCode()); hashCode = prime * hashCode + ((getClusterEnabled() == null) ? 0 : getClusterEnabled().hashCode()); hashCode = prime * hashCode + ((getCacheNodeType() == null) ? 0 : getCacheNodeType().hashCode()); hashCode = prime * hashCode + ((getAuthTokenEnabled() == null) ? 0 : getAuthTokenEnabled().hashCode()); hashCode = prime * hashCode + ((getTransitEncryptionEnabled() == null) ? 0 : getTransitEncryptionEnabled().hashCode()); hashCode = prime * hashCode + ((getAtRestEncryptionEnabled() == null) ? 0 : getAtRestEncryptionEnabled().hashCode()); return hashCode; }
withAutomaticFailoverStatus(automaticFailoverStatus);
if (other.getPendingModifiedValues() == null ^ this.getPendingModifiedValues() == null) return false; if (other.getPendingModifiedValues() != null && other.getPendingModifiedValues().equals(this.getPendingModifiedValues()) == false) return false; if (other.getMemberClusters() == null ^ this.getMemberClusters() == null)
@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; }
/** * <p> * The primary cluster ID that is applied immediately (if <code>--apply-immediately</code> was specified), or during * the next maintenance window. * </p> * * @param primaryClusterId * The primary cluster ID that is applied immediately (if <code>--apply-immediately</code> was specified), or * during the next maintenance window. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationGroupPendingModifiedValues withPrimaryClusterId(String primaryClusterId) { setPrimaryClusterId(primaryClusterId); return this; }
setAutomaticFailoverStatus(automaticFailoverStatus); 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 (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(); }