Exemplo n.º 1
0
        public static PutScalingPolicyResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new PutScalingPolicyResultUnmarshaller();
            }

            return(instance);
        }
Exemplo n.º 2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            PutScalingPolicyResponse response = new PutScalingPolicyResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("PutScalingPolicyResult", 2))
                    {
                        response.PutScalingPolicyResult = PutScalingPolicyResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }


            return(response);
        }