@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SlotMigration == false) return false; SlotMigration other = (SlotMigration) obj; if (other.getProgressPercentage() == null ^ this.getProgressPercentage() == null) return false; if (other.getProgressPercentage() != null && other.getProgressPercentage().equals(this.getProgressPercentage()) == 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> * The percentage of the slot migration that is complete. * </p> * * @param progressPercentage * The percentage of the slot migration that is complete. * @return Returns a reference to this object so that method calls can be chained together. */ public SlotMigration withProgressPercentage(Double progressPercentage) { setProgressPercentage(progressPercentage); return this; }
public SlotMigration unmarshall(StaxUnmarshallerContext context) throws Exception { SlotMigration slotMigration = new SlotMigration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return slotMigration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ProgressPercentage", targetDepth)) { slotMigration.setProgressPercentage(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return slotMigration; } } } }
@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; }
public SlotMigration unmarshall(StaxUnmarshallerContext context) throws Exception { SlotMigration slotMigration = new SlotMigration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return slotMigration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ProgressPercentage", targetDepth)) { slotMigration.setProgressPercentage(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return slotMigration; } } } }
@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 + ((getProgressPercentage() == null) ? 0 : getProgressPercentage().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSlotMigration() == null) ? 0 : getSlotMigration().hashCode()); return hashCode; }
/** * <p> * The percentage of the slot migration that is complete. * </p> * * @param progressPercentage * The percentage of the slot migration that is complete. * @return Returns a reference to this object so that method calls can be chained together. */ public SlotMigration withProgressPercentage(Double progressPercentage) { setProgressPercentage(progressPercentage); 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 (getProgressPercentage() != null) sb.append("ProgressPercentage: ").append(getProgressPercentage()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProgressPercentage() == null) ? 0 : getProgressPercentage().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SlotMigration == false) return false; SlotMigration other = (SlotMigration) obj; if (other.getProgressPercentage() == null ^ this.getProgressPercentage() == null) return false; if (other.getProgressPercentage() != null && other.getProgressPercentage().equals(this.getProgressPercentage()) == 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 (getProgressPercentage() != null) sb.append("ProgressPercentage: ").append(getProgressPercentage()); sb.append("}"); return sb.toString(); }