public static DescribeMetricCollectionTypesResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new DescribeMetricCollectionTypesResultUnmarshaller();
            }

            return(instance);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeMetricCollectionTypesResponse response = new DescribeMetricCollectionTypesResponse();

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


            return(response);
        }