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

            return(instance);
        }
Exemple #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateRoleResponse response = new CreateRoleResponse();

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


            return(response);
        }