public GetTrafficPolicyInstanceCountResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetTrafficPolicyInstanceCountResult getTrafficPolicyInstanceCountResult = new GetTrafficPolicyInstanceCountResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getTrafficPolicyInstanceCountResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TrafficPolicyInstanceCount", targetDepth)) { getTrafficPolicyInstanceCountResult.setTrafficPolicyInstanceCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getTrafficPolicyInstanceCountResult; } } } }
/** * Constructor. * @return the instance. */ public static IntegerStaxUnmarshaller getInstance() { if (instance == null) instance = new IntegerStaxUnmarshaller(); return instance; } }
/** * Constructor. * @return the instance. */ public static IntegerStaxUnmarshaller getInstance() { if (instance == null) instance = new IntegerStaxUnmarshaller(); return instance; } }
/** * Constructor. * @return the instance. */ public static IntegerStaxUnmarshaller getInstance() { if (instance == null) instance = new IntegerStaxUnmarshaller(); return instance; } }
public InstanceNetworkInterfaceAttachment unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceNetworkInterfaceAttachment instanceNetworkInterfaceAttachment = new InstanceNetworkInterfaceAttachment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return instanceNetworkInterfaceAttachment; if (context.testExpression("attachmentId", targetDepth)) { instanceNetworkInterfaceAttachment.setAttachmentId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("deviceIndex", targetDepth)) { instanceNetworkInterfaceAttachment.setDeviceIndex(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("status", targetDepth)) { instanceNetworkInterfaceAttachment.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("attachTime", targetDepth)) { instanceNetworkInterfaceAttachment.setAttachTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("deleteOnTermination", targetDepth)) { instanceNetworkInterfaceAttachment.setDeleteOnTermination(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public VgwTelemetry unmarshall(StaxUnmarshallerContext context) throws Exception { VgwTelemetry vgwTelemetry = new VgwTelemetry(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return vgwTelemetry; if (context.testExpression("outsideIpAddress", targetDepth)) { vgwTelemetry.setOutsideIpAddress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("status", targetDepth)) { vgwTelemetry.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("lastStatusChange", targetDepth)) { vgwTelemetry.setLastStatusChange(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("acceptedRouteCount", targetDepth)) { vgwTelemetry.setAcceptedRouteCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public ResourceQuota unmarshall(StaxUnmarshallerContext context) throws Exception { ResourceQuota resourceQuota = new ResourceQuota(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return resourceQuota; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Maximum", targetDepth)) { resourceQuota.setMaximum(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return resourceQuota; } } } }
public NetworkInterfaceAttachment unmarshall(StaxUnmarshallerContext context) throws Exception { NetworkInterfaceAttachment networkInterfaceAttachment = new NetworkInterfaceAttachment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return networkInterfaceAttachment; if (context.testExpression("attachmentId", targetDepth)) { networkInterfaceAttachment.setAttachmentId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("instanceId", targetDepth)) { networkInterfaceAttachment.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("deviceIndex", targetDepth)) { networkInterfaceAttachment.setDeviceIndex(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("attachTime", targetDepth)) { networkInterfaceAttachment.setAttachTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("deleteOnTermination", targetDepth)) { networkInterfaceAttachment.setDeleteOnTermination(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public ConnectionSettings unmarshall(StaxUnmarshallerContext context) throws Exception { ConnectionSettings connectionSettings = new ConnectionSettings(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return connectionSettings; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("IdleTimeout", targetDepth)) { connectionSettings.setIdleTimeout(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return connectionSettings; } } } }
ScheduledUpdateGroupActionRequest scheduledUpdateGroupActionRequest = new ScheduledUpdateGroupActionRequest(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; .getInstance().unmarshall(context)); continue; .getInstance().unmarshall(context)); continue; scheduledUpdateGroupActionRequest.setEndTime(DateStaxUnmarshaller.getInstance() .getInstance().unmarshall(context)); continue; .getInstance().unmarshall(context)); continue; .getInstance().unmarshall(context)); continue; .getInstance().unmarshall(context)); continue;
public Listener unmarshall(StaxUnmarshallerContext context) throws Exception { Listener listener = new Listener(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listener; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Protocol", targetDepth)) { listener.setProtocol(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Port", targetDepth)) { listener.setPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listener; } } } }
if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return volume; if (context.testExpression("volumeId", targetDepth)) { volume.setVolumeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("size", targetDepth)) { volume.setSize(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("snapshotId", targetDepth)) { volume.setSnapshotId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("createTime", targetDepth)) { volume.setCreateTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("iops", targetDepth)) { volume.setIops(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("encrypted", targetDepth)) { volume.setEncrypted(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public RulePriorityPair unmarshall(StaxUnmarshallerContext context) throws Exception { RulePriorityPair rulePriorityPair = new RulePriorityPair(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return rulePriorityPair; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("RuleArn", targetDepth)) { rulePriorityPair.setRuleArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Priority", targetDepth)) { rulePriorityPair.setPriority(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return rulePriorityPair; } } } }
if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return spotFleetRequestConfigData; if (context.testExpression("clientToken", targetDepth)) { spotFleetRequestConfigData.setClientToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("spotPrice", targetDepth)) { spotFleetRequestConfigData.setSpotPrice(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("targetCapacity", targetDepth)) { spotFleetRequestConfigData.setTargetCapacity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("validFrom", targetDepth)) { spotFleetRequestConfigData.setValidFrom(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("validUntil", targetDepth)) { spotFleetRequestConfigData.setValidUntil(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("terminateInstancesWithExpiration", targetDepth)) { spotFleetRequestConfigData.setTerminateInstancesWithExpiration(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public Cipher unmarshall(StaxUnmarshallerContext context) throws Exception { Cipher cipher = new Cipher(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return cipher; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Name", targetDepth)) { cipher.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Priority", targetDepth)) { cipher.setPriority(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return cipher; } } } }
public Activity unmarshall(StaxUnmarshallerContext context) throws Exception { Activity activity = new Activity(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (context.testExpression("ActivityId", targetDepth)) { activity.setActivityId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("StartTime", targetDepth)) { activity.setStartTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("EndTime", targetDepth)) { activity.setEndTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("Progress", targetDepth)) { activity.setProgress(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public InstanceState unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceState instanceState = new InstanceState(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return instanceState; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("code", targetDepth)) { instanceState.setCode(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("name", targetDepth)) { instanceState.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return instanceState; } } } }
public Snapshot unmarshall(StaxUnmarshallerContext context) throws Exception { Snapshot snapshot = new Snapshot(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return snapshot; if (context.testExpression("snapshotId", targetDepth)) { snapshot.setSnapshotId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("volumeId", targetDepth)) { snapshot.setVolumeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("startTime", targetDepth)) { snapshot.setStartTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("volumeSize", targetDepth)) { snapshot.setVolumeSize(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("encrypted", targetDepth)) { snapshot.setEncrypted(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public ConnectionDraining unmarshall(StaxUnmarshallerContext context) throws Exception { ConnectionDraining connectionDraining = new ConnectionDraining(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return connectionDraining; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Enabled", targetDepth)) { connectionDraining.setEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Timeout", targetDepth)) { connectionDraining.setTimeout(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return connectionDraining; } } } }
public ScheduledUpdateGroupAction unmarshall(StaxUnmarshallerContext context) throws Exception { ScheduledUpdateGroupAction scheduledUpdateGroupAction = new ScheduledUpdateGroupAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; .getInstance().unmarshall(context)); continue; .getInstance().unmarshall(context)); continue; scheduledUpdateGroupAction.setStartTime(DateStaxUnmarshaller.getInstance() scheduledUpdateGroupAction.setMinSize(IntegerStaxUnmarshaller.getInstance() .unmarshall(context)); continue; scheduledUpdateGroupAction.setMaxSize(IntegerStaxUnmarshaller.getInstance() .unmarshall(context)); continue; .getInstance().unmarshall(context)); continue;