/** * <p> * The Spot Instance data feed subscription. * </p> * * @param spotDatafeedSubscription * The Spot Instance data feed subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSpotDatafeedSubscriptionResult withSpotDatafeedSubscription(SpotDatafeedSubscription spotDatafeedSubscription) { setSpotDatafeedSubscription(spotDatafeedSubscription); return this; }
public CreateSpotDatafeedSubscriptionResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateSpotDatafeedSubscriptionResult createSpotDatafeedSubscriptionResult = new CreateSpotDatafeedSubscriptionResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createSpotDatafeedSubscriptionResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("spotDatafeedSubscription", targetDepth)) { createSpotDatafeedSubscriptionResult .setSpotDatafeedSubscription(SpotDatafeedSubscriptionStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createSpotDatafeedSubscriptionResult; } } } }
/** * <p> * The Spot Instance data feed subscription. * </p> * * @param spotDatafeedSubscription * The Spot Instance data feed subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSpotDatafeedSubscriptionResult withSpotDatafeedSubscription(SpotDatafeedSubscription spotDatafeedSubscription) { setSpotDatafeedSubscription(spotDatafeedSubscription); return this; }
public CreateSpotDatafeedSubscriptionResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateSpotDatafeedSubscriptionResult createSpotDatafeedSubscriptionResult = new CreateSpotDatafeedSubscriptionResult(); 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 createSpotDatafeedSubscriptionResult; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("spotDatafeedSubscription", targetDepth)) { createSpotDatafeedSubscriptionResult.setSpotDatafeedSubscription(SpotDatafeedSubscriptionStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return createSpotDatafeedSubscriptionResult; } } } }
public CreateSpotDatafeedSubscriptionResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateSpotDatafeedSubscriptionResult createSpotDatafeedSubscriptionResult = new CreateSpotDatafeedSubscriptionResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createSpotDatafeedSubscriptionResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("spotDatafeedSubscription", targetDepth)) { createSpotDatafeedSubscriptionResult .setSpotDatafeedSubscription(SpotDatafeedSubscriptionStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createSpotDatafeedSubscriptionResult; } } } }