public SlotMigration unmarshall(StaxUnmarshallerContext context) throws Exception { SlotMigration slotMigration = new SlotMigration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return slotMigration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ProgressPercentage", targetDepth)) { slotMigration.setProgressPercentage(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return slotMigration; } } } }
public RecurringCharge unmarshall(StaxUnmarshallerContext context) throws Exception { RecurringCharge recurringCharge = new RecurringCharge(); 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 recurringCharge; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("frequency", targetDepth)) { recurringCharge.setFrequency(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("amount", targetDepth)) { recurringCharge.setAmount(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return recurringCharge; } } } }
@Override public Entry<String, Double> unmarshall(StaxUnmarshallerContext context) throws Exception { int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; MapEntry<String, Double> entry = new MapEntry<String, Double>(); 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(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) return entry; } } }
public PricingDetail unmarshall(StaxUnmarshallerContext context) throws Exception { PricingDetail pricingDetail = new PricingDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return pricingDetail; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("price", targetDepth)) { pricingDetail.setPrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("count", targetDepth)) { pricingDetail.setCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return pricingDetail; } } } }
public RecurringCharge unmarshall(StaxUnmarshallerContext context) throws Exception { RecurringCharge recurringCharge = new RecurringCharge(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 3; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return recurringCharge; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("RecurringChargeAmount", targetDepth)) { recurringCharge.setRecurringChargeAmount(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RecurringChargeFrequency", targetDepth)) { recurringCharge.setRecurringChargeFrequency(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return recurringCharge; } } } }
public StepAdjustment unmarshall(StaxUnmarshallerContext context) throws Exception { StepAdjustment stepAdjustment = new StepAdjustment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (context.testExpression("MetricIntervalLowerBound", targetDepth)) { stepAdjustment.setMetricIntervalLowerBound(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.testExpression("MetricIntervalUpperBound", targetDepth)) { stepAdjustment.setMetricIntervalUpperBound(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.testExpression("ScalingAdjustment", targetDepth)) { stepAdjustment.setScalingAdjustment(IntegerStaxUnmarshaller.getInstance() .unmarshall(context)); if (context.getCurrentDepth() < originalDepth) { break;
public PricingDetail unmarshall(StaxUnmarshallerContext context) throws Exception { PricingDetail pricingDetail = new PricingDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return pricingDetail; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("count", targetDepth)) { pricingDetail.setCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("price", targetDepth)) { pricingDetail.setPrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return pricingDetail; } } } }
public GetSendQuotaResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetSendQuotaResult getSendQuotaResult = new GetSendQuotaResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (context.testExpression("Max24HourSend", targetDepth)) { getSendQuotaResult.setMax24HourSend(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.testExpression("MaxSendRate", targetDepth)) { getSendQuotaResult.setMaxSendRate(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.testExpression("SentLast24Hours", targetDepth)) { getSendQuotaResult.setSentLast24Hours(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { break;
public RecurringCharge unmarshall(StaxUnmarshallerContext context) throws Exception { RecurringCharge recurringCharge = new RecurringCharge(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 3; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return recurringCharge; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("RecurringChargeAmount", targetDepth)) { recurringCharge.setRecurringChargeAmount(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RecurringChargeFrequency", targetDepth)) { recurringCharge.setRecurringChargeFrequency(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return recurringCharge; } } } }
public PriceSchedule unmarshall(StaxUnmarshallerContext context) throws Exception { PriceSchedule priceSchedule = new PriceSchedule(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return priceSchedule; if (context.testExpression("term", targetDepth)) { priceSchedule.setTerm(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("price", targetDepth)) { priceSchedule.setPrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("currencyCode", targetDepth)) { priceSchedule.setCurrencyCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { return priceSchedule;
public RecurringCharge unmarshall(StaxUnmarshallerContext context) throws Exception { RecurringCharge recurringCharge = new RecurringCharge(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return recurringCharge; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("amount", targetDepth)) { recurringCharge.setAmount(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("frequency", targetDepth)) { recurringCharge.setFrequency(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return recurringCharge; } } } }
public StatisticSet unmarshall(StaxUnmarshallerContext context) throws Exception { StatisticSet statisticSet = new StatisticSet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.testExpression("SampleCount", targetDepth)) { statisticSet.setSampleCount(DoubleStaxUnmarshaller.getInstance().unmarshall( context)); continue; if (context.testExpression("Sum", targetDepth)) { statisticSet.setSum(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("Minimum", targetDepth)) { statisticSet.setMinimum(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.testExpression("Maximum", targetDepth)) { statisticSet.setMaximum(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { break;
public DescribeStorageResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeStorageResult describeStorageResult = new DescribeStorageResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeStorageResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TotalBackupSizeInMegaBytes", targetDepth)) { describeStorageResult.setTotalBackupSizeInMegaBytes(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TotalProvisionedStorageInMegaBytes", targetDepth)) { describeStorageResult.setTotalProvisionedStorageInMegaBytes(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeStorageResult; } } } }
public TargetTrackingConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { TargetTrackingConfiguration targetTrackingConfiguration = new TargetTrackingConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (context.testExpression("PredefinedMetricSpecification", targetDepth)) { targetTrackingConfiguration .setPredefinedMetricSpecification(PredefinedMetricSpecificationStaxUnmarshaller continue; if (context.testExpression("CustomizedMetricSpecification", targetDepth)) { targetTrackingConfiguration .setCustomizedMetricSpecification(CustomizedMetricSpecificationStaxUnmarshaller continue; if (context.testExpression("TargetValue", targetDepth)) { targetTrackingConfiguration.setTargetValue(DoubleStaxUnmarshaller.getInstance() .unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { break;
public DoubleRange unmarshall(StaxUnmarshallerContext context) throws Exception { DoubleRange doubleRange = new DoubleRange(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return doubleRange; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("From", targetDepth)) { doubleRange.setFrom(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("To", targetDepth)) { doubleRange.setTo(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return doubleRange; } } } }
public MetricDatum unmarshall(StaxUnmarshallerContext context) throws Exception { MetricDatum metricDatum = new MetricDatum(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (context.testExpression("MetricName", targetDepth)) { metricDatum.setMetricName(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; if (context.testExpression("Timestamp", targetDepth)) { metricDatum .setTimestamp(DateStaxUnmarshaller.getInstance().unmarshall(context)); if (context.testExpression("Value", targetDepth)) { metricDatum.setValue(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { break;
public ReservedInstanceLimitPrice unmarshall(StaxUnmarshallerContext context) throws Exception { ReservedInstanceLimitPrice reservedInstanceLimitPrice = new ReservedInstanceLimitPrice(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reservedInstanceLimitPrice; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("amount", targetDepth)) { reservedInstanceLimitPrice.setAmount(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("currencyCode", targetDepth)) { reservedInstanceLimitPrice.setCurrencyCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reservedInstanceLimitPrice; } } } }
public Datapoint unmarshall(StaxUnmarshallerContext context) throws Exception { Datapoint datapoint = new Datapoint(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.testExpression("SampleCount", targetDepth)) { datapoint.setSampleCount(DoubleStaxUnmarshaller.getInstance().unmarshall( context)); continue; if (context.testExpression("Average", targetDepth)) { datapoint.setAverage(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("Sum", targetDepth)) { datapoint.setSum(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("Minimum", targetDepth)) { datapoint.setMinimum(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("Maximum", targetDepth)) { datapoint.setMaximum(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { break;
public RecurringCharge unmarshall(StaxUnmarshallerContext context) throws Exception { RecurringCharge recurringCharge = new RecurringCharge(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 3; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return recurringCharge; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("RecurringChargeAmount", targetDepth)) { recurringCharge.setRecurringChargeAmount(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RecurringChargeFrequency", targetDepth)) { recurringCharge.setRecurringChargeFrequency(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return recurringCharge; } } } }
public SnapshotTaskDetail unmarshall(StaxUnmarshallerContext context) throws Exception { SnapshotTaskDetail snapshotTaskDetail = new SnapshotTaskDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return snapshotTaskDetail; if (context.testExpression("diskImageSize", targetDepth)) { snapshotTaskDetail.setDiskImageSize(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("description", targetDepth)) { snapshotTaskDetail.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.testExpression("format", targetDepth)) { snapshotTaskDetail.setFormat(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; if (context.getCurrentDepth() < originalDepth) { return snapshotTaskDetail;