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