public PrefixList unmarshall(StaxUnmarshallerContext context) throws Exception { PrefixList prefixList = new PrefixList(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return prefixList; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("prefixListId", targetDepth)) { prefixList.setPrefixListId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("prefixListName", targetDepth)) { prefixList.setPrefixListName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("cidrSet/item", targetDepth)) { prefixList.getCidrs().add(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return prefixList; } } } }
public BundleTask unmarshall(StaxUnmarshallerContext context) throws Exception { BundleTask bundleTask = new BundleTask(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return bundleTask; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("instanceId", targetDepth)) { bundleTask.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("bundleId", targetDepth)) { bundleTask.setBundleId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("state", targetDepth)) { bundleTask.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("startTime", targetDepth)) { bundleTask.setStartTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("updateTime", targetDepth)) { bundleTask.setUpdateTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("storage", targetDepth)) { bundleTask.setStorage(StorageStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("progress", targetDepth)) { bundleTask.setProgress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("error", targetDepth)) { bundleTask.setBundleTaskError( BundleTaskErrorStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return bundleTask; } } } }
public ServerCertificate unmarshall(StaxUnmarshallerContext context) throws Exception { ServerCertificate serverCertificate = new ServerCertificate(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return serverCertificate; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ServerCertificateMetadata", targetDepth)) { serverCertificate.setServerCertificateMetadata( ServerCertificateMetadataStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CertificateBody", targetDepth)) { serverCertificate.setCertificateBody( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CertificateChain", targetDepth)) { serverCertificate.setCertificateChain( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return serverCertificate; } } } }
public Region unmarshall(StaxUnmarshallerContext context) throws Exception { Region region = new Region(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return region; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("regionName", targetDepth)) { region.setRegionName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("regionEndpoint", targetDepth)) { region.setEndpoint(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return region; } } } }
public PolicyDetail unmarshall(StaxUnmarshallerContext context) throws Exception { PolicyDetail policyDetail = new PolicyDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return policyDetail; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("PolicyName", targetDepth)) { policyDetail.setPolicyName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("PolicyDocument", targetDepth)) { policyDetail.setPolicyDocument(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return policyDetail; } } } }
public VpcPeeringConnectionStateReason unmarshall(StaxUnmarshallerContext context) throws Exception { VpcPeeringConnectionStateReason vpcPeeringConnectionStateReason = new VpcPeeringConnectionStateReason(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return vpcPeeringConnectionStateReason; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("code", targetDepth)) { vpcPeeringConnectionStateReason.setCode( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("message", targetDepth)) { vpcPeeringConnectionStateReason.setMessage( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return vpcPeeringConnectionStateReason; } } } }
public Credentials unmarshall(StaxUnmarshallerContext context) throws Exception { Credentials credentials = new Credentials(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return credentials; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("AccessKeyId", targetDepth)) { credentials.setAccessKeyId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SecretAccessKey", targetDepth)) { credentials.setSecretAccessKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SessionToken", targetDepth)) { credentials.setSessionToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Expiration", targetDepth)) { credentials.setExpiration(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return credentials; } } } }
public GetPasswordDataResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetPasswordDataResult getPasswordDataResult = new GetPasswordDataResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getPasswordDataResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("instanceId", targetDepth)) { getPasswordDataResult.setInstanceId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("timestamp", targetDepth)) { getPasswordDataResult.setTimestamp( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("passwordData", targetDepth)) { getPasswordDataResult.setPasswordData( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getPasswordDataResult; } } } }
public Filter unmarshall(StaxUnmarshallerContext context) throws Exception { Filter filter = new Filter(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return filter; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Name", targetDepth)) { filter.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Values", targetDepth)) { filter.withValues(new ArrayList<String>()); continue; } if (context.testExpression("Values/member", targetDepth)) { filter.withValues(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return filter; } } } }
public InvalidationSummary unmarshall(StaxUnmarshallerContext context) throws Exception { InvalidationSummary invalidationSummary = new InvalidationSummary(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return invalidationSummary; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { invalidationSummary.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { invalidationSummary.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return invalidationSummary; } } } }
public KeyPairInfo unmarshall(StaxUnmarshallerContext context) throws Exception { KeyPairInfo keyPairInfo = new KeyPairInfo(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return keyPairInfo; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("keyName", targetDepth)) { keyPairInfo.setKeyName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("keyFingerprint", targetDepth)) { keyPairInfo.setKeyFingerprint(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return keyPairInfo; } } } }
public ListImportsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListImportsResult listImportsResult = new ListImportsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listImportsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Imports", targetDepth)) { listImportsResult.withImports(new ArrayList<String>()); continue; } if (context.testExpression("Imports/member", targetDepth)) { listImportsResult.withImports(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { listImportsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listImportsResult; } } } }
public TagDescription unmarshall(StaxUnmarshallerContext context) throws Exception { TagDescription tagDescription = new TagDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return tagDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("resourceId", targetDepth)) { tagDescription.setResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("resourceType", targetDepth)) { tagDescription.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("key", targetDepth)) { tagDescription.setKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("value", targetDepth)) { tagDescription.setValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return tagDescription; } } } }
@Override public Entry<String, String> unmarshall(StaxUnmarshallerContext context) throws Exception { int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; MapEntry<String, String> entry = new MapEntry<String, String>(); 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(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) return entry; } } }
public HsmStatus unmarshall(StaxUnmarshallerContext context) throws Exception { HsmStatus hsmStatus = new HsmStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return hsmStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HsmClientCertificateIdentifier", targetDepth)) { hsmStatus.setHsmClientCertificateIdentifier( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HsmConfigurationIdentifier", targetDepth)) { hsmStatus.setHsmConfigurationIdentifier( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { hsmStatus.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return hsmStatus; } } } }
@Override public Entry<String, String> unmarshall(StaxUnmarshallerContext context) throws Exception { int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; MapEntry<String, String> entry = new MapEntry<String, String>(); while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return entry; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("key", targetDepth)) { entry.setKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("value", targetDepth)) { entry.setValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) return entry; } } }
public LoadBalancerState unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancerState loadBalancerState = new LoadBalancerState(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return loadBalancerState; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("LoadBalancerName", targetDepth)) { loadBalancerState.setLoadBalancerName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("State", targetDepth)) { loadBalancerState.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return loadBalancerState; } } } }
public PolicyAttributeDescription unmarshall(StaxUnmarshallerContext context) throws Exception { PolicyAttributeDescription policyAttributeDescription = new PolicyAttributeDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("AttributeName", targetDepth)) { policyAttributeDescription.setAttributeName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AttributeValue", targetDepth)) { policyAttributeDescription.setAttributeValue( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return policyAttributeDescription; }
public CharacterSet unmarshall(StaxUnmarshallerContext context) throws Exception { CharacterSet characterSet = new CharacterSet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return characterSet; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("CharacterSetName", targetDepth)) { characterSet.setCharacterSetName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CharacterSetDescription", targetDepth)) { characterSet.setCharacterSetDescription( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return characterSet; } } } }
public Item unmarshall(StaxUnmarshallerContext context) throws Exception { Item item = new Item(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return item; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Name", targetDepth)) { item.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Name/@encoding", targetDepth)) { item.setAlternateNameEncoding(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Attribute", targetDepth)) { item.getAttributes().add(AttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return item; } } } }
public CloudFrontOriginAccessIdentitySummary unmarshall(StaxUnmarshallerContext context) throws Exception { CloudFrontOriginAccessIdentitySummary cloudFrontOriginAccessIdentitySummary = new CloudFrontOriginAccessIdentitySummary(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return cloudFrontOriginAccessIdentitySummary; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { cloudFrontOriginAccessIdentitySummary.setId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("S3CanonicalUserId", targetDepth)) { cloudFrontOriginAccessIdentitySummary.setS3CanonicalUserId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Comment", targetDepth)) { cloudFrontOriginAccessIdentitySummary.setComment( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return cloudFrontOriginAccessIdentitySummary; } } } }
public IamInstanceProfileSpecification unmarshall(StaxUnmarshallerContext context) throws Exception { IamInstanceProfileSpecification iamInstanceProfileSpecification = new IamInstanceProfileSpecification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return iamInstanceProfileSpecification; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("arn", targetDepth)) { iamInstanceProfileSpecification.setArn( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("name", targetDepth)) { iamInstanceProfileSpecification.setName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return iamInstanceProfileSpecification; } } } }
public InstanceStatusDetails unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceStatusDetails instanceStatusDetails = new InstanceStatusDetails(); 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 instanceStatusDetails; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("name", targetDepth)) { instanceStatusDetails.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("status", targetDepth)) { instanceStatusDetails.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("impairedSince", targetDepth)) { instanceStatusDetails.setImpairedSince( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return instanceStatusDetails; } } } }
public SpotInstanceStateFault unmarshall(StaxUnmarshallerContext context) throws Exception { SpotInstanceStateFault spotInstanceStateFault = new SpotInstanceStateFault(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return spotInstanceStateFault; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("code", targetDepth)) { spotInstanceStateFault.setCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("message", targetDepth)) { spotInstanceStateFault.setMessage( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return spotInstanceStateFault; } } } }
public PendingModifiedValues unmarshall(StaxUnmarshallerContext context) throws Exception { PendingModifiedValues pendingModifiedValues = new PendingModifiedValues(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return pendingModifiedValues; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("NumCacheNodes", targetDepth)) { pendingModifiedValues.setNumCacheNodes( IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CacheNodeIdsToRemove/CacheNodeId", targetDepth)) { pendingModifiedValues .getCacheNodeIdsToRemove() .add(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EngineVersion", targetDepth)) { pendingModifiedValues.setEngineVersion( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return pendingModifiedValues; } } } }
public IPRange unmarshall(StaxUnmarshallerContext context) throws Exception { IPRange iPRange = new IPRange(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return iPRange; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Status", targetDepth)) { iPRange.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CIDRIP", targetDepth)) { iPRange.setCIDRIP(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Tags/Tag", targetDepth)) { iPRange.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return iPRange; } } } }
public MovingAddressStatus unmarshall(StaxUnmarshallerContext context) throws Exception { MovingAddressStatus movingAddressStatus = new MovingAddressStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return movingAddressStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("publicIp", targetDepth)) { movingAddressStatus.setPublicIp(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("moveStatus", targetDepth)) { movingAddressStatus.setMoveStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return movingAddressStatus; } } } }
public ValidationMessage unmarshall(StaxUnmarshallerContext context) throws Exception { ValidationMessage validationMessage = new ValidationMessage(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return validationMessage; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Message", targetDepth)) { validationMessage.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Severity", targetDepth)) { validationMessage.setSeverity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Namespace", targetDepth)) { validationMessage.setNamespace(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("OptionName", targetDepth)) { validationMessage.setOptionName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return validationMessage; } } } }
public InstanceState unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceState instanceState = new InstanceState(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return instanceState; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("InstanceId", targetDepth)) { instanceState.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("State", targetDepth)) { instanceState.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ReasonCode", targetDepth)) { instanceState.setReasonCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Description", targetDepth)) { instanceState.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return instanceState; } } } }
public NodeSnapshot unmarshall(StaxUnmarshallerContext context) throws Exception { NodeSnapshot nodeSnapshot = new NodeSnapshot(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 3; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return nodeSnapshot; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("CacheClusterId", targetDepth)) { nodeSnapshot.setCacheClusterId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NodeGroupId", targetDepth)) { nodeSnapshot.setNodeGroupId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CacheNodeId", targetDepth)) { nodeSnapshot.setCacheNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NodeGroupConfiguration", targetDepth)) { nodeSnapshot.setNodeGroupConfiguration( NodeGroupConfigurationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CacheSize", targetDepth)) { nodeSnapshot.setCacheSize(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CacheNodeCreateTime", targetDepth)) { nodeSnapshot.setCacheNodeCreateTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SnapshotCreateTime", targetDepth)) { nodeSnapshot.setSnapshotCreateTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return nodeSnapshot; } } } }