/** * <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; }
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; }
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; } } } }