/** * <p> * The stack instance that matches the specified request parameters. * </p> * * @param stackInstance * The stack instance that matches the specified request parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStackInstanceResult withStackInstance(StackInstance stackInstance) { setStackInstance(stackInstance); return this; }
public DescribeStackInstanceResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeStackInstanceResult describeStackInstanceResult = new DescribeStackInstanceResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeStackInstanceResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackInstance", targetDepth)) { describeStackInstanceResult.setStackInstance(StackInstanceStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeStackInstanceResult; } } } }
/** * <p> * The stack instance that matches the specified request parameters. * </p> * * @param stackInstance * The stack instance that matches the specified request parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStackInstanceResult withStackInstance(StackInstance stackInstance) { setStackInstance(stackInstance); return this; }
public DescribeStackInstanceResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeStackInstanceResult describeStackInstanceResult = new DescribeStackInstanceResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeStackInstanceResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackInstance", targetDepth)) { describeStackInstanceResult.setStackInstance(StackInstanceStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeStackInstanceResult; } } } }