/** * <p> * The <a>ApplicationVersionDescription</a> of the application version. * </p> * * @param applicationVersion * The <a>ApplicationVersionDescription</a> of the application version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationVersionResult withApplicationVersion(ApplicationVersionDescription applicationVersion) { setApplicationVersion(applicationVersion); return this; }
public UpdateApplicationVersionResult unmarshall(StaxUnmarshallerContext context) throws Exception { UpdateApplicationVersionResult updateApplicationVersionResult = new UpdateApplicationVersionResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return updateApplicationVersionResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ApplicationVersion", targetDepth)) { updateApplicationVersionResult.setApplicationVersion(ApplicationVersionDescriptionStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return updateApplicationVersionResult; } } } }
/** * <p> * The <a>ApplicationVersionDescription</a> of the application version. * </p> * * @param applicationVersion * The <a>ApplicationVersionDescription</a> of the application version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationVersionResult withApplicationVersion(ApplicationVersionDescription applicationVersion) { setApplicationVersion(applicationVersion); return this; }
public UpdateApplicationVersionResult unmarshall(StaxUnmarshallerContext context) throws Exception { UpdateApplicationVersionResult updateApplicationVersionResult = new UpdateApplicationVersionResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return updateApplicationVersionResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ApplicationVersion", targetDepth)) { updateApplicationVersionResult.setApplicationVersion(ApplicationVersionDescriptionStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return updateApplicationVersionResult; } } } }