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 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; } } } }
public StatusCodes unmarshall(StaxUnmarshallerContext context) throws Exception { StatusCodes statusCodes = new StatusCodes(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return statusCodes; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { statusCodes.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { statusCodes.withItems(new ArrayList<Integer>()); continue; } if (context.testExpression("Items/StatusCode", targetDepth)) { statusCodes.withItems(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return statusCodes; } } } }
public QueryArgProfiles unmarshall(StaxUnmarshallerContext context) throws Exception { QueryArgProfiles queryArgProfiles = new QueryArgProfiles(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return queryArgProfiles; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { queryArgProfiles.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { queryArgProfiles.withItems(new ArrayList<QueryArgProfile>()); continue; } if (context.testExpression("Items/QueryArgProfile", targetDepth)) { queryArgProfiles.withItems(QueryArgProfileStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return queryArgProfiles; } } } }
public OriginGroups unmarshall(StaxUnmarshallerContext context) throws Exception { OriginGroups originGroups = new OriginGroups(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return originGroups; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { originGroups.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { originGroups.withItems(new ArrayList<OriginGroup>()); continue; } if (context.testExpression("Items/OriginGroup", targetDepth)) { originGroups.withItems(OriginGroupStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return originGroups; } } } }
public LambdaFunctionAssociations unmarshall(StaxUnmarshallerContext context) throws Exception { LambdaFunctionAssociations lambdaFunctionAssociations = new LambdaFunctionAssociations(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return lambdaFunctionAssociations; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { lambdaFunctionAssociations.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { lambdaFunctionAssociations.withItems(new ArrayList<LambdaFunctionAssociation>()); continue; } if (context.testExpression("Items/LambdaFunctionAssociation", targetDepth)) { lambdaFunctionAssociations.withItems(LambdaFunctionAssociationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return lambdaFunctionAssociations; } } } }
public OriginSslProtocols unmarshall(StaxUnmarshallerContext context) throws Exception { OriginSslProtocols originSslProtocols = new OriginSslProtocols(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return originSslProtocols; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { originSslProtocols.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { originSslProtocols.withItems(new ArrayList<String>()); continue; } if (context.testExpression("Items/SslProtocol", targetDepth)) { originSslProtocols.withItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return originSslProtocols; } } } }
public OriginGroupMembers unmarshall(StaxUnmarshallerContext context) throws Exception { OriginGroupMembers originGroupMembers = new OriginGroupMembers(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return originGroupMembers; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { originGroupMembers.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { originGroupMembers.withItems(new ArrayList<OriginGroupMember>()); continue; } if (context.testExpression("Items/OriginGroupMember", targetDepth)) { originGroupMembers.withItems(OriginGroupMemberStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return originGroupMembers; } } } }
public AvailableCapacity unmarshall(StaxUnmarshallerContext context) throws Exception { AvailableCapacity availableCapacity = new AvailableCapacity(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return availableCapacity; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("availableInstanceCapacity", targetDepth)) { availableCapacity.withAvailableInstanceCapacity(new ArrayList<InstanceCapacity>()); continue; } if (context.testExpression("availableInstanceCapacity/item", targetDepth)) { availableCapacity.withAvailableInstanceCapacity(InstanceCapacityStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("availableVCpus", targetDepth)) { availableCapacity.setAvailableVCpus(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return availableCapacity; } } } }
public Headers unmarshall(StaxUnmarshallerContext context) throws Exception { Headers headers = new Headers(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return headers; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { headers.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { headers.withItems(new ArrayList<String>()); continue; } if (context.testExpression("Items/Name", targetDepth)) { headers.withItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return headers; } } } }
public Aliases unmarshall(StaxUnmarshallerContext context) throws Exception { Aliases aliases = new Aliases(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return aliases; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Quantity", targetDepth)) { aliases.setQuantity(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Items", targetDepth)) { aliases.withItems(new ArrayList<String>()); continue; } if (context.testExpression("Items/CNAME", targetDepth)) { aliases.withItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return aliases; } } } }
public RollbackConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { RollbackConfiguration rollbackConfiguration = new RollbackConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return rollbackConfiguration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("RollbackTriggers", targetDepth)) { rollbackConfiguration.withRollbackTriggers(new ArrayList<RollbackTrigger>()); continue; } if (context.testExpression("RollbackTriggers/member", targetDepth)) { rollbackConfiguration.withRollbackTriggers(RollbackTriggerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("MonitoringTimeInMinutes", targetDepth)) { rollbackConfiguration.setMonitoringTimeInMinutes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return rollbackConfiguration; } } } }