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; } } } }
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 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; } } } }
@Override public Entry<String, Integer> unmarshall(StaxUnmarshallerContext context) throws Exception { int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; MapEntry<String, Integer> entry = new MapEntry<String, Integer>(); while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return entry; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("key", targetDepth)) { entry.setKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("value", targetDepth)) { entry.setValue(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) return entry; } } }
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; } } } }
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 PricingDetail unmarshall(StaxUnmarshallerContext context) throws Exception { PricingDetail pricingDetail = new PricingDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return pricingDetail; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("count", targetDepth)) { pricingDetail.setCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("price", targetDepth)) { pricingDetail.setPrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return pricingDetail; } } } }
public Limits unmarshall(StaxUnmarshallerContext context) throws Exception { Limits limits = new Limits(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return limits; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("MaximumReplicationCount", targetDepth)) { limits.setMaximumReplicationCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("MaximumPartitionCount", targetDepth)) { limits.setMaximumPartitionCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return limits; } } } }
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; } } } }
public Position unmarshall(StaxUnmarshallerContext context) throws Exception { Position position = new Position(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return position; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Line", targetDepth)) { position.setLine(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Column", targetDepth)) { position.setColumn(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return position; } } } }
public IcmpTypeCode unmarshall(StaxUnmarshallerContext context) throws Exception { IcmpTypeCode icmpTypeCode = new IcmpTypeCode(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return icmpTypeCode; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("code", targetDepth)) { icmpTypeCode.setCode(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("type", targetDepth)) { icmpTypeCode.setType(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return icmpTypeCode; } } } }
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 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 LaunchTemplateCpuOptionsRequest unmarshall(StaxUnmarshallerContext context) throws Exception { LaunchTemplateCpuOptionsRequest launchTemplateCpuOptionsRequest = new LaunchTemplateCpuOptionsRequest(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return launchTemplateCpuOptionsRequest; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("CoreCount", targetDepth)) { launchTemplateCpuOptionsRequest.setCoreCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ThreadsPerCore", targetDepth)) { launchTemplateCpuOptionsRequest.setThreadsPerCore(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return launchTemplateCpuOptionsRequest; } } } }
public EncryptionEntities unmarshall(StaxUnmarshallerContext context) throws Exception { EncryptionEntities encryptionEntities = new EncryptionEntities(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return encryptionEntities; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { encryptionEntities.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { encryptionEntities.withItems(new ArrayList<EncryptionEntity>()); continue; } if (context.testExpression("Items/EncryptionEntity", targetDepth)) { encryptionEntities.withItems(EncryptionEntityStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return encryptionEntities; } } } }
public CacheBehaviors unmarshall(StaxUnmarshallerContext context) throws Exception { CacheBehaviors cacheBehaviors = new CacheBehaviors(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return cacheBehaviors; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { cacheBehaviors.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { cacheBehaviors.withItems(new ArrayList<CacheBehavior>()); continue; } if (context.testExpression("Items/CacheBehavior", targetDepth)) { cacheBehaviors.withItems(CacheBehaviorStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return cacheBehaviors; } } } }
public CookieNames unmarshall(StaxUnmarshallerContext context) throws Exception { CookieNames cookieNames = new CookieNames(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return cookieNames; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { cookieNames.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { cookieNames.withItems(new ArrayList<String>()); continue; } if (context.testExpression("Items/Name", targetDepth)) { cookieNames.withItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return cookieNames; } } } }
public Origins unmarshall(StaxUnmarshallerContext context) throws Exception { Origins origins = new Origins(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return origins; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { origins.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { origins.withItems(new ArrayList<Origin>()); continue; } if (context.testExpression("Items/Origin", targetDepth)) { origins.withItems(OriginStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return origins; } } } }
public Paths unmarshall(StaxUnmarshallerContext context) throws Exception { Paths paths = new Paths(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return paths; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { paths.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { paths.withItems(new ArrayList<String>()); continue; } if (context.testExpression("Items/Path", targetDepth)) { paths.withItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return paths; } } } }
public KeyPairIds unmarshall(StaxUnmarshallerContext context) throws Exception { KeyPairIds keyPairIds = new KeyPairIds(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return keyPairIds; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { keyPairIds.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { keyPairIds.withItems(new ArrayList<String>()); continue; } if (context.testExpression("Items/KeyPairId", targetDepth)) { keyPairIds.withItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return keyPairIds; } } } }