/** * <p> * The status of the subnet. * </p> * * @param subnetStatus * The status of the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public Subnet withSubnetStatus(String subnetStatus) { setSubnetStatus(subnetStatus); return this; }
public Subnet unmarshall(StaxUnmarshallerContext context) throws Exception { Subnet subnet = new Subnet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return subnet; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SubnetIdentifier", targetDepth)) { subnet.setSubnetIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SubnetAvailabilityZone", targetDepth)) { subnet.setSubnetAvailabilityZone(AvailabilityZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SubnetStatus", targetDepth)) { subnet.setSubnetStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return subnet; } } } }
/** * <p> * The status of the subnet. * </p> * * @param subnetStatus * The status of the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public Subnet withSubnetStatus(String subnetStatus) { setSubnetStatus(subnetStatus); return this; }
public Subnet unmarshall(StaxUnmarshallerContext context) throws Exception { Subnet subnet = new Subnet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return subnet; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SubnetIdentifier", targetDepth)) { subnet.setSubnetIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SubnetAvailabilityZone", targetDepth)) { subnet.setSubnetAvailabilityZone(AvailabilityZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SubnetStatus", targetDepth)) { subnet.setSubnetStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return subnet; } } } }