/** * @param vPCId * @return Returns a reference to this object so that method calls can be chained together. */ public VPC withVPCId(String vPCId) { setVPCId(vPCId); return this; }
public VPC unmarshall(StaxUnmarshallerContext context) throws Exception { VPC vPC = new VPC(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return vPC; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("VPCRegion", targetDepth)) { vPC.setVPCRegion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VPCId", targetDepth)) { vPC.setVPCId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return vPC; } } } }