@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReshardingStatus == false) return false; ReshardingStatus other = (ReshardingStatus) obj; if (other.getSlotMigration() == null ^ this.getSlotMigration() == null) return false; if (other.getSlotMigration() != null && other.getSlotMigration().equals(this.getSlotMigration()) == false) return false; return true; }
/** * <p> * Represents the progress of an online resharding operation. * </p> * * @param slotMigration * Represents the progress of an online resharding operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReshardingStatus withSlotMigration(SlotMigration slotMigration) { setSlotMigration(slotMigration); return this; }
public ReshardingStatus unmarshall(StaxUnmarshallerContext context) throws Exception { ReshardingStatus reshardingStatus = new ReshardingStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reshardingStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SlotMigration", targetDepth)) { reshardingStatus.setSlotMigration(SlotMigrationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reshardingStatus; } } } }
@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; }
public ReshardingStatus unmarshall(StaxUnmarshallerContext context) throws Exception { ReshardingStatus reshardingStatus = new ReshardingStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reshardingStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SlotMigration", targetDepth)) { reshardingStatus.setSlotMigration(SlotMigrationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reshardingStatus; } } } }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSlotMigration() == null) ? 0 : getSlotMigration().hashCode()); return hashCode; }
/** * <p> * Represents the progress of an online resharding operation. * </p> * * @param slotMigration * Represents the progress of an online resharding operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReshardingStatus withSlotMigration(SlotMigration slotMigration) { setSlotMigration(slotMigration); 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 (getSlotMigration() != null) sb.append("SlotMigration: ").append(getSlotMigration()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReshardingStatus == false) return false; ReshardingStatus other = (ReshardingStatus) obj; if (other.getSlotMigration() == null ^ this.getSlotMigration() == null) return false; if (other.getSlotMigration() != null && other.getSlotMigration().equals(this.getSlotMigration()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSlotMigration() == null) ? 0 : getSlotMigration().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 (getSlotMigration() != null) sb.append("SlotMigration: ").append(getSlotMigration()); sb.append("}"); return sb.toString(); }