public LaunchTemplatesMonitoring unmarshall(StaxUnmarshallerContext context) throws Exception { LaunchTemplatesMonitoring launchTemplatesMonitoring = new LaunchTemplatesMonitoring(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return launchTemplatesMonitoring; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("enabled", targetDepth)) { launchTemplatesMonitoring.setEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return launchTemplatesMonitoring; } } } }
/** * Constructor. * @return the instance. */ public static BooleanStaxUnmarshaller getInstance() { if (instance == null) instance = new BooleanStaxUnmarshaller(); return instance; } }
/** * Constructor. * @return the instance. */ public static BooleanStaxUnmarshaller getInstance() { if (instance == null) instance = new BooleanStaxUnmarshaller(); return instance; } }
/** * Constructor. * @return the instance. */ public static BooleanStaxUnmarshaller getInstance() { if (instance == null) instance = new BooleanStaxUnmarshaller(); return instance; } }
public IdFormat unmarshall(StaxUnmarshallerContext context) throws Exception { IdFormat idFormat = new IdFormat(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return idFormat; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("resource", targetDepth)) { idFormat.setResource(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("useLongIds", targetDepth)) { idFormat.setUseLongIds(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("deadline", targetDepth)) { idFormat.setDeadline(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return idFormat; } } } }
public EbsInstanceBlockDevice unmarshall(StaxUnmarshallerContext context) throws Exception { EbsInstanceBlockDevice ebsInstanceBlockDevice = new EbsInstanceBlockDevice(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return ebsInstanceBlockDevice; if (context.testExpression("volumeId", targetDepth)) { ebsInstanceBlockDevice.setVolumeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("status", targetDepth)) { ebsInstanceBlockDevice.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("attachTime", targetDepth)) { ebsInstanceBlockDevice.setAttachTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("deleteOnTermination", targetDepth)) { ebsInstanceBlockDevice.setDeleteOnTermination(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public DeleteVpcPeeringConnectionResult unmarshall(StaxUnmarshallerContext context) throws Exception { DeleteVpcPeeringConnectionResult deleteVpcPeeringConnectionResult = new DeleteVpcPeeringConnectionResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return deleteVpcPeeringConnectionResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("return", targetDepth)) { deleteVpcPeeringConnectionResult.setReturn(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return deleteVpcPeeringConnectionResult; } } } }
public ReputationOptions unmarshall(StaxUnmarshallerContext context) throws Exception { ReputationOptions reputationOptions = new ReputationOptions(); 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("SendingEnabled", targetDepth)) { reputationOptions.setSendingEnabled(BooleanStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.testExpression("ReputationMetricsEnabled", targetDepth)) { reputationOptions.setReputationMetricsEnabled(BooleanStaxUnmarshaller .getInstance().unmarshall(context)); continue; if (context.testExpression("LastFreshStart", targetDepth)) { reputationOptions.setLastFreshStart(DateStaxUnmarshaller.getInstance() .unmarshall(context)); continue;
public ScheduledInstancesMonitoring unmarshall(StaxUnmarshallerContext context) throws Exception { ScheduledInstancesMonitoring scheduledInstancesMonitoring = new ScheduledInstancesMonitoring(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return scheduledInstancesMonitoring; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Enabled", targetDepth)) { scheduledInstancesMonitoring.setEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return scheduledInstancesMonitoring; } } } }
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 ModifyVpcTenancyResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyVpcTenancyResult modifyVpcTenancyResult = new ModifyVpcTenancyResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyVpcTenancyResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("return", targetDepth)) { modifyVpcTenancyResult.setReturnValue(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyVpcTenancyResult; } } } }
public VolumeAttachment unmarshall(StaxUnmarshallerContext context) throws Exception { VolumeAttachment volumeAttachment = new VolumeAttachment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return volumeAttachment; if (context.testExpression("volumeId", targetDepth)) { volumeAttachment.setVolumeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("instanceId", targetDepth)) { volumeAttachment.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("attachTime", targetDepth)) { volumeAttachment.setAttachTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("deleteOnTermination", targetDepth)) { volumeAttachment.setDeleteOnTermination(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public HibernationOptionsRequest unmarshall(StaxUnmarshallerContext context) throws Exception { HibernationOptionsRequest hibernationOptionsRequest = new HibernationOptionsRequest(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return hibernationOptionsRequest; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Configured", targetDepth)) { hibernationOptionsRequest.setConfigured(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return hibernationOptionsRequest; } } } }
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 DetachClassicLinkVpcResult unmarshall(StaxUnmarshallerContext context) throws Exception { DetachClassicLinkVpcResult detachClassicLinkVpcResult = new DetachClassicLinkVpcResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return detachClassicLinkVpcResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("return", targetDepth)) { detachClassicLinkVpcResult.setReturn(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return detachClassicLinkVpcResult; } } } }
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 LaunchTemplateHibernationOptionsRequest unmarshall(StaxUnmarshallerContext context) throws Exception { LaunchTemplateHibernationOptionsRequest launchTemplateHibernationOptionsRequest = new LaunchTemplateHibernationOptionsRequest(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return launchTemplateHibernationOptionsRequest; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Configured", targetDepth)) { launchTemplateHibernationOptionsRequest.setConfigured(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return launchTemplateHibernationOptionsRequest; } } } }
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 ModifyFleetResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyFleetResult modifyFleetResult = new ModifyFleetResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyFleetResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("return", targetDepth)) { modifyFleetResult.setReturn(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyFleetResult; } } } }
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;