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