public static VpnGatewayUnmarshaller GetInstance() { if (instance == null) { instance = new VpnGatewayUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateVpnGatewayResponse response = new CreateVpnGatewayResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("vpnGateway", targetDepth)) { response.VpnGateway = VpnGatewayUnmarshaller.GetInstance().Unmarshall(context); continue; } } } return(response); }