Example #1
0
        public static VpcPeeringConnectionUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new VpcPeeringConnectionUnmarshaller();
            }

            return(instance);
        }
Example #2
0
        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);
        }