/** * <p> * Information about the VPC attachment. * </p> * * @param transitGatewayVpcAttachment * Information about the VPC attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTransitGatewayVpcAttachmentResult withTransitGatewayVpcAttachment(TransitGatewayVpcAttachment transitGatewayVpcAttachment) { setTransitGatewayVpcAttachment(transitGatewayVpcAttachment); return this; }
public CreateTransitGatewayVpcAttachmentResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateTransitGatewayVpcAttachmentResult createTransitGatewayVpcAttachmentResult = new CreateTransitGatewayVpcAttachmentResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createTransitGatewayVpcAttachmentResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("transitGatewayVpcAttachment", targetDepth)) { createTransitGatewayVpcAttachmentResult.setTransitGatewayVpcAttachment(TransitGatewayVpcAttachmentStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createTransitGatewayVpcAttachmentResult; } } } }
/** * <p> * Information about the VPC attachment. * </p> * * @param transitGatewayVpcAttachment * Information about the VPC attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTransitGatewayVpcAttachmentResult withTransitGatewayVpcAttachment(TransitGatewayVpcAttachment transitGatewayVpcAttachment) { setTransitGatewayVpcAttachment(transitGatewayVpcAttachment); return this; }
public CreateTransitGatewayVpcAttachmentResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateTransitGatewayVpcAttachmentResult createTransitGatewayVpcAttachmentResult = new CreateTransitGatewayVpcAttachmentResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createTransitGatewayVpcAttachmentResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("transitGatewayVpcAttachment", targetDepth)) { createTransitGatewayVpcAttachmentResult.setTransitGatewayVpcAttachment(TransitGatewayVpcAttachmentStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createTransitGatewayVpcAttachmentResult; } } } }