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 SlotDateTimeRangeRequest unmarshall(StaxUnmarshallerContext context) throws Exception { SlotDateTimeRangeRequest slotDateTimeRangeRequest = new SlotDateTimeRangeRequest(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return slotDateTimeRangeRequest; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("EarliestTime", targetDepth)) { slotDateTimeRangeRequest.setEarliestTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("LatestTime", targetDepth)) { slotDateTimeRangeRequest.setLatestTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return slotDateTimeRangeRequest; } } } }
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; } } } }
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 MessageDsn unmarshall(StaxUnmarshallerContext context) throws Exception { MessageDsn messageDsn = new MessageDsn(); 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("ReportingMta", targetDepth)) { messageDsn.setReportingMta(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ArrivalDate", targetDepth)) { messageDsn.setArrivalDate(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ExtensionFields/member", targetDepth)) { messageDsn.withExtensionFields( ExtensionFieldStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return messageDsn; }
public LoginProfile unmarshall(StaxUnmarshallerContext context) throws Exception { LoginProfile loginProfile = new LoginProfile(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return loginProfile; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("UserName", targetDepth)) { loginProfile.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreateDate", targetDepth)) { loginProfile.setCreateDate(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("PasswordResetRequired", targetDepth)) { loginProfile.setPasswordResetRequired( BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return loginProfile; } } } }
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 ReceiptRuleSetMetadata unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptRuleSetMetadata receiptRuleSetMetadata = new ReceiptRuleSetMetadata(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return receiptRuleSetMetadata; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Name", targetDepth)) { receiptRuleSetMetadata.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreatedTimestamp", targetDepth)) { receiptRuleSetMetadata.setCreatedTimestamp( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return receiptRuleSetMetadata; } } } }
public InstanceNetworkInterfaceAttachment unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceNetworkInterfaceAttachment instanceNetworkInterfaceAttachment = new InstanceNetworkInterfaceAttachment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return instanceNetworkInterfaceAttachment; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { 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; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return instanceNetworkInterfaceAttachment; } } } }
public Role unmarshall(StaxUnmarshallerContext context) throws Exception { Role role = new Role(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return role; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Path", targetDepth)) { role.setPath(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RoleName", targetDepth)) { role.setRoleName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RoleId", targetDepth)) { role.setRoleId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Arn", targetDepth)) { role.setArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreateDate", targetDepth)) { role.setCreateDate(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AssumeRolePolicyDocument", targetDepth)) { role.setAssumeRolePolicyDocument( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return role; } } } }
public ChangeBatchRecord unmarshall(StaxUnmarshallerContext context) throws Exception { ChangeBatchRecord changeBatchRecord = new ChangeBatchRecord(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return changeBatchRecord; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { changeBatchRecord.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SubmittedAt", targetDepth)) { changeBatchRecord.setSubmittedAt(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { changeBatchRecord.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Comment", targetDepth)) { changeBatchRecord.setComment(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Submitter", targetDepth)) { changeBatchRecord.setSubmitter(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Changes/Change", targetDepth)) { changeBatchRecord.withChanges(ChangeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return changeBatchRecord; } } } }
public SigningCertificate unmarshall(StaxUnmarshallerContext context) throws Exception { SigningCertificate signingCertificate = new SigningCertificate(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return signingCertificate; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("UserName", targetDepth)) { signingCertificate.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CertificateId", targetDepth)) { signingCertificate.setCertificateId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CertificateBody", targetDepth)) { signingCertificate.setCertificateBody( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { signingCertificate.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("UploadDate", targetDepth)) { signingCertificate.setUploadDate(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return signingCertificate; } } } }
public SpotPrice unmarshall(StaxUnmarshallerContext context) throws Exception { SpotPrice spotPrice = new SpotPrice(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return spotPrice; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("instanceType", targetDepth)) { spotPrice.setInstanceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("productDescription", targetDepth)) { spotPrice.setProductDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("spotPrice", targetDepth)) { spotPrice.setSpotPrice(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("timestamp", targetDepth)) { spotPrice.setTimestamp(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("availabilityZone", targetDepth)) { spotPrice.setAvailabilityZone(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return spotPrice; } } } }
public Deployment unmarshall(StaxUnmarshallerContext context) throws Exception { Deployment deployment = new Deployment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return deployment; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("VersionLabel", targetDepth)) { deployment.setVersionLabel(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DeploymentId", targetDepth)) { deployment.setDeploymentId(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { deployment.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DeploymentTime", targetDepth)) { deployment.setDeploymentTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return deployment; } } } }
public DistributionSummary unmarshall(StaxUnmarshallerContext context) throws Exception { DistributionSummary distributionSummary = new DistributionSummary(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return distributionSummary; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { distributionSummary.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { distributionSummary.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("LastModifiedTime", targetDepth)) { distributionSummary.setLastModifiedTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DomainName", targetDepth)) { distributionSummary.setDomainName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Aliases", targetDepth)) { distributionSummary.setAliases(AliasesStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Origins", targetDepth)) { distributionSummary.setOrigins(OriginsStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DefaultCacheBehavior", targetDepth)) { distributionSummary.setDefaultCacheBehavior( DefaultCacheBehaviorStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CacheBehaviors", targetDepth)) { distributionSummary.setCacheBehaviors( CacheBehaviorsStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CustomErrorResponses", targetDepth)) { distributionSummary.setCustomErrorResponses( CustomErrorResponsesStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Comment", targetDepth)) { distributionSummary.setComment(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("PriceClass", targetDepth)) { distributionSummary.setPriceClass( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Enabled", targetDepth)) { distributionSummary.setEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ViewerCertificate", targetDepth)) { distributionSummary.setViewerCertificate( ViewerCertificateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Restrictions", targetDepth)) { distributionSummary.setRestrictions( RestrictionsStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("WebACLId", targetDepth)) { distributionSummary.setWebACLId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return distributionSummary; } } } }
public ConfigurationSettingsDescription unmarshall(StaxUnmarshallerContext context) throws Exception { ConfigurationSettingsDescription configurationSettingsDescription = new ConfigurationSettingsDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return configurationSettingsDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SolutionStackName", targetDepth)) { configurationSettingsDescription.setSolutionStackName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ApplicationName", targetDepth)) { configurationSettingsDescription.setApplicationName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TemplateName", targetDepth)) { configurationSettingsDescription.setTemplateName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Description", targetDepth)) { configurationSettingsDescription.setDescription( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EnvironmentName", targetDepth)) { configurationSettingsDescription.setEnvironmentName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DeploymentStatus", targetDepth)) { configurationSettingsDescription.setDeploymentStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateCreated", targetDepth)) { configurationSettingsDescription.setDateCreated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateUpdated", targetDepth)) { configurationSettingsDescription.setDateUpdated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("OptionSettings/member", targetDepth)) { configurationSettingsDescription.withOptionSettings( ConfigurationOptionSettingStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return configurationSettingsDescription; } } } }
public EnvironmentDescription unmarshall(StaxUnmarshallerContext context) throws Exception { EnvironmentDescription environmentDescription = new EnvironmentDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return environmentDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("EnvironmentName", targetDepth)) { environmentDescription.setEnvironmentName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EnvironmentId", targetDepth)) { environmentDescription.setEnvironmentId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ApplicationName", targetDepth)) { environmentDescription.setApplicationName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VersionLabel", targetDepth)) { environmentDescription.setVersionLabel( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SolutionStackName", targetDepth)) { environmentDescription.setSolutionStackName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TemplateName", targetDepth)) { environmentDescription.setTemplateName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Description", targetDepth)) { environmentDescription.setDescription( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EndpointURL", targetDepth)) { environmentDescription.setEndpointURL( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CNAME", targetDepth)) { environmentDescription.setCNAME(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateCreated", targetDepth)) { environmentDescription.setDateCreated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateUpdated", targetDepth)) { environmentDescription.setDateUpdated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { environmentDescription.setStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Health", targetDepth)) { environmentDescription.setHealth( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return environmentDescription; } } } }
public Cluster unmarshall(StaxUnmarshallerContext context) throws Exception { Cluster cluster = new Cluster(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; if (context.isStartOfDocument()) targetDepth++; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return cluster; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ClusterIdentifier", targetDepth)) { cluster.setClusterIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NodeType", targetDepth)) { cluster.setNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterStatus", targetDepth)) { cluster.setClusterStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ModifyStatus", targetDepth)) { cluster.setModifyStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("MasterUsername", targetDepth)) { cluster.setMasterUsername(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DBName", targetDepth)) { cluster.setDBName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Endpoint", targetDepth)) { cluster.setEndpoint(EndpointStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterCreateTime", targetDepth)) { cluster.setClusterCreateTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AutomatedSnapshotRetentionPeriod", targetDepth)) { cluster.setAutomatedSnapshotRetentionPeriod( IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterSecurityGroups/ClusterSecurityGroup", targetDepth)) { cluster .getClusterSecurityGroups() .add( ClusterSecurityGroupMembershipStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VpcSecurityGroups/VpcSecurityGroup", targetDepth)) { cluster .getVpcSecurityGroups() .add(VpcSecurityGroupMembershipStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterParameterGroups/ClusterParameterGroup", targetDepth)) { cluster .getClusterParameterGroups() .add(ClusterParameterGroupStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterSubnetGroupName", targetDepth)) { cluster.setClusterSubnetGroupName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VpcId", targetDepth)) { cluster.setVpcId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AvailabilityZone", targetDepth)) { cluster.setAvailabilityZone(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("PreferredMaintenanceWindow", targetDepth)) { cluster.setPreferredMaintenanceWindow( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("PendingModifiedValues", targetDepth)) { cluster.setPendingModifiedValues( PendingModifiedValuesStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterVersion", targetDepth)) { cluster.setClusterVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AllowVersionUpgrade", targetDepth)) { cluster.setAllowVersionUpgrade(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NumberOfNodes", targetDepth)) { cluster.setNumberOfNodes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("PubliclyAccessible", targetDepth)) { cluster.setPubliclyAccessible(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Encrypted", targetDepth)) { cluster.setEncrypted(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RestoreStatus", targetDepth)) { cluster.setRestoreStatus(RestoreStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HsmStatus", targetDepth)) { cluster.setHsmStatus(HsmStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterSnapshotCopyStatus", targetDepth)) { cluster.setClusterSnapshotCopyStatus( ClusterSnapshotCopyStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterPublicKey", targetDepth)) { cluster.setClusterPublicKey(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterNodes/member", targetDepth)) { cluster .getClusterNodes() .add(ClusterNodeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ElasticIpStatus", targetDepth)) { cluster.setElasticIpStatus( ElasticIpStatusStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return cluster; } } } }
public ReservedInstancesModification unmarshall(StaxUnmarshallerContext context) throws Exception { ReservedInstancesModification reservedInstancesModification = new ReservedInstancesModification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reservedInstancesModification; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("reservedInstancesModificationId", targetDepth)) { reservedInstancesModification.setReservedInstancesModificationId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("reservedInstancesSet/item", targetDepth)) { reservedInstancesModification .getReservedInstancesIds() .add(ReservedInstancesIdStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("modificationResultSet/item", targetDepth)) { reservedInstancesModification .getModificationResults() .add( ReservedInstancesModificationResultStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } if (context.testExpression("createDate", targetDepth)) { reservedInstancesModification.setCreateDate( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("updateDate", targetDepth)) { reservedInstancesModification.setUpdateDate( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("effectiveDate", targetDepth)) { reservedInstancesModification.setEffectiveDate( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("status", targetDepth)) { reservedInstancesModification.setStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("statusMessage", targetDepth)) { reservedInstancesModification.setStatusMessage( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("clientToken", targetDepth)) { reservedInstancesModification.setClientToken( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reservedInstancesModification; } } } }
public EventDescription unmarshall(StaxUnmarshallerContext context) throws Exception { EventDescription eventDescription = new EventDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return eventDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("EventDate", targetDepth)) { eventDescription.setEventDate(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Message", targetDepth)) { eventDescription.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ApplicationName", targetDepth)) { eventDescription.setApplicationName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VersionLabel", targetDepth)) { eventDescription.setVersionLabel( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TemplateName", targetDepth)) { eventDescription.setTemplateName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EnvironmentName", targetDepth)) { eventDescription.setEnvironmentName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RequestId", targetDepth)) { eventDescription.setRequestId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Severity", targetDepth)) { eventDescription.setSeverity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return eventDescription; } } } }
public DescribeChangeSetResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeChangeSetResult describeChangeSetResult = new DescribeChangeSetResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeChangeSetResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ChangeSetName", targetDepth)) { describeChangeSetResult.setChangeSetName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ChangeSetId", targetDepth)) { describeChangeSetResult.setChangeSetId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("StackId", targetDepth)) { describeChangeSetResult.setStackId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("StackName", targetDepth)) { describeChangeSetResult.setStackName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Description", targetDepth)) { describeChangeSetResult.setDescription( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Parameters/member", targetDepth)) { describeChangeSetResult.withParameters( ParameterStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreationTime", targetDepth)) { describeChangeSetResult.setCreationTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ExecutionStatus", targetDepth)) { describeChangeSetResult.setExecutionStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { describeChangeSetResult.setStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("StatusReason", targetDepth)) { describeChangeSetResult.setStatusReason( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NotificationARNs/member", targetDepth)) { describeChangeSetResult.withNotificationARNs( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Capabilities/member", targetDepth)) { describeChangeSetResult.withCapabilities( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Tags/member", targetDepth)) { describeChangeSetResult.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Changes/member", targetDepth)) { describeChangeSetResult.withChanges( ChangeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { describeChangeSetResult.setNextToken( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeChangeSetResult; } } } }
public Snapshot unmarshall(StaxUnmarshallerContext context) throws Exception { Snapshot snapshot = new Snapshot(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; if (context.isStartOfDocument()) targetDepth++; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return snapshot; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SnapshotIdentifier", targetDepth)) { snapshot.setSnapshotIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterIdentifier", targetDepth)) { snapshot.setClusterIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SnapshotCreateTime", targetDepth)) { snapshot.setSnapshotCreateTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { snapshot.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Port", targetDepth)) { snapshot.setPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("AvailabilityZone", targetDepth)) { snapshot.setAvailabilityZone(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterCreateTime", targetDepth)) { snapshot.setClusterCreateTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("MasterUsername", targetDepth)) { snapshot.setMasterUsername(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ClusterVersion", targetDepth)) { snapshot.setClusterVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SnapshotType", targetDepth)) { snapshot.setSnapshotType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NodeType", targetDepth)) { snapshot.setNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NumberOfNodes", targetDepth)) { snapshot.setNumberOfNodes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DBName", targetDepth)) { snapshot.setDBName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VpcId", targetDepth)) { snapshot.setVpcId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Encrypted", targetDepth)) { snapshot.setEncrypted(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EncryptedWithHSM", targetDepth)) { snapshot.setEncryptedWithHSM(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression( "AccountsWithRestoreAccess/AccountWithRestoreAccess", targetDepth)) { snapshot .getAccountsWithRestoreAccess() .add(AccountWithRestoreAccessStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("OwnerAccount", targetDepth)) { snapshot.setOwnerAccount(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TotalBackupSizeInMegaBytes", targetDepth)) { snapshot.setTotalBackupSizeInMegaBytes( DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ActualIncrementalBackupSizeInMegaBytes", targetDepth)) { snapshot.setActualIncrementalBackupSizeInMegaBytes( DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("BackupProgressInMegaBytes", targetDepth)) { snapshot.setBackupProgressInMegaBytes( DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CurrentBackupRateInMegaBytesPerSecond", targetDepth)) { snapshot.setCurrentBackupRateInMegaBytesPerSecond( DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EstimatedSecondsToCompletion", targetDepth)) { snapshot.setEstimatedSecondsToCompletion( LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ElapsedTimeInSeconds", targetDepth)) { snapshot.setElapsedTimeInSeconds(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SourceRegion", targetDepth)) { snapshot.setSourceRegion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return snapshot; } } } }
public Instance unmarshall(StaxUnmarshallerContext context) throws Exception { Instance instance = new Instance(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return instance; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("instanceId", targetDepth)) { instance.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("imageId", targetDepth)) { instance.setImageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("instanceState", targetDepth)) { instance.setState(InstanceStateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("privateDnsName", targetDepth)) { instance.setPrivateDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("dnsName", targetDepth)) { instance.setPublicDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("reason", targetDepth)) { instance.setStateTransitionReason( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("keyName", targetDepth)) { instance.setKeyName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("amiLaunchIndex", targetDepth)) { instance.setAmiLaunchIndex(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("productCodes/item", targetDepth)) { instance.withProductCodes(ProductCodeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("instanceType", targetDepth)) { instance.setInstanceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("launchTime", targetDepth)) { instance.setLaunchTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("placement", targetDepth)) { instance.setPlacement(PlacementStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("kernelId", targetDepth)) { instance.setKernelId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ramdiskId", targetDepth)) { instance.setRamdiskId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("platform", targetDepth)) { instance.setPlatform(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("monitoring", targetDepth)) { instance.setMonitoring(MonitoringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("subnetId", targetDepth)) { instance.setSubnetId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("vpcId", targetDepth)) { instance.setVpcId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("privateIpAddress", targetDepth)) { instance.setPrivateIpAddress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ipAddress", targetDepth)) { instance.setPublicIpAddress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("stateReason", targetDepth)) { instance.setStateReason(StateReasonStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("architecture", targetDepth)) { instance.setArchitecture(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("rootDeviceType", targetDepth)) { instance.setRootDeviceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("rootDeviceName", targetDepth)) { instance.setRootDeviceName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("blockDeviceMapping/item", targetDepth)) { instance.withBlockDeviceMappings( InstanceBlockDeviceMappingStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("virtualizationType", targetDepth)) { instance.setVirtualizationType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("instanceLifecycle", targetDepth)) { instance.setInstanceLifecycle(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("spotInstanceRequestId", targetDepth)) { instance.setSpotInstanceRequestId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("clientToken", targetDepth)) { instance.setClientToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("tagSet/item", targetDepth)) { instance.withTags(TagStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("groupSet/item", targetDepth)) { instance.withSecurityGroups( GroupIdentifierStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("sourceDestCheck", targetDepth)) { instance.setSourceDestCheck(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("hypervisor", targetDepth)) { instance.setHypervisor(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("networkInterfaceSet/item", targetDepth)) { instance.withNetworkInterfaces( InstanceNetworkInterfaceStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("iamInstanceProfile", targetDepth)) { instance.setIamInstanceProfile( IamInstanceProfileStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ebsOptimized", targetDepth)) { instance.setEbsOptimized(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("sriovNetSupport", targetDepth)) { instance.setSriovNetSupport(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return instance; } } } }
public InstanceGroupDetail unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceGroupDetail instanceGroupDetail = new InstanceGroupDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return instanceGroupDetail; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("InstanceGroupId", targetDepth)) { instanceGroupDetail.setInstanceGroupId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Name", targetDepth)) { instanceGroupDetail.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Market", targetDepth)) { instanceGroupDetail.setMarket(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("InstanceRole", targetDepth)) { instanceGroupDetail.setInstanceRole( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("BidPrice", targetDepth)) { instanceGroupDetail.setBidPrice(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("InstanceType", targetDepth)) { instanceGroupDetail.setInstanceType( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("InstanceRequestCount", targetDepth)) { instanceGroupDetail.setInstanceRequestCount( IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("InstanceRunningCount", targetDepth)) { instanceGroupDetail.setInstanceRunningCount( IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("State", targetDepth)) { instanceGroupDetail.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("LastStateChangeReason", targetDepth)) { instanceGroupDetail.setLastStateChangeReason( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreationDateTime", targetDepth)) { instanceGroupDetail.setCreationDateTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("StartDateTime", targetDepth)) { instanceGroupDetail.setStartDateTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ReadyDateTime", targetDepth)) { instanceGroupDetail.setReadyDateTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EndDateTime", targetDepth)) { instanceGroupDetail.setEndDateTime( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return instanceGroupDetail; } } } }