Exemplo n.º 1
0
        public static UntagResourcesResponse Unmarshall(UnmarshallerContext context)
        {
            UntagResourcesResponse untagResourcesResponse = new UntagResourcesResponse();

            untagResourcesResponse.HttpResponse = context.HttpResponse;
            untagResourcesResponse.RequestId    = context.StringValue("UntagResources.RequestId");

            List <UntagResourcesResponse.UntagResources_FailedResource> untagResourcesResponse_failedResources = new List <UntagResourcesResponse.UntagResources_FailedResource>();

            for (int i = 0; i < context.Length("UntagResources.FailedResources.Length"); i++)
            {
                UntagResourcesResponse.UntagResources_FailedResource failedResource = new UntagResourcesResponse.UntagResources_FailedResource();
                failedResource.ResourceARN = context.StringValue("UntagResources.FailedResources[" + i + "].ResourceARN");

                UntagResourcesResponse.UntagResources_FailedResource.UntagResources_Result result = new UntagResourcesResponse.UntagResources_FailedResource.UntagResources_Result();
                result.Code           = context.StringValue("UntagResources.FailedResources[" + i + "].Result.Code");
                result.Message        = context.StringValue("UntagResources.FailedResources[" + i + "].Result.Message");
                failedResource.Result = result;

                untagResourcesResponse_failedResources.Add(failedResource);
            }
            untagResourcesResponse.FailedResources = untagResourcesResponse_failedResources;

            return(untagResourcesResponse);
        }
        public static UntagResourcesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            UntagResourcesResponse untagResourcesResponse = new UntagResourcesResponse();

            untagResourcesResponse.HttpResponse = _ctx.HttpResponse;
            untagResourcesResponse.RequestId    = _ctx.StringValue("UntagResources.RequestId");

            return(untagResourcesResponse);
        }
        public static UntagResourcesResponse Unmarshall(UnmarshallerContext context)
        {
            UntagResourcesResponse untagResourcesResponse = new UntagResourcesResponse();

            untagResourcesResponse.HttpResponse = context.HttpResponse;
            untagResourcesResponse.RequestId    = context.StringValue("UntagResources.RequestId");
            untagResourcesResponse.Result       = context.BooleanValue("UntagResources.Result");

            return(untagResourcesResponse);
        }
        public static UntagResourcesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            UntagResourcesResponse untagResourcesResponse = new UntagResourcesResponse();

            untagResourcesResponse.HttpResponse = _ctx.HttpResponse;
            untagResourcesResponse.RequestId    = _ctx.StringValue("UntagResources.RequestId");
            untagResourcesResponse.Success      = _ctx.BooleanValue("UntagResources.Success");
            untagResourcesResponse.ErrMessage   = _ctx.StringValue("UntagResources.ErrMessage");
            untagResourcesResponse.ErrCode      = _ctx.StringValue("UntagResources.ErrCode");

            return(untagResourcesResponse);
        }
        public static UntagResourcesResponse Unmarshall(UnmarshallerContext context)
        {
            UntagResourcesResponse untagResourcesResponse = new UntagResourcesResponse();

            untagResourcesResponse.HttpResponse = context.HttpResponse;
            untagResourcesResponse.Code         = context.StringValue("UntagResources.Code");
            untagResourcesResponse.Data         = context.BooleanValue("UntagResources.Data");
            untagResourcesResponse.ErrorCode    = context.StringValue("UntagResources.ErrorCode");
            untagResourcesResponse.Message      = context.StringValue("UntagResources.Message");
            untagResourcesResponse.RequestId    = context.StringValue("UntagResources.RequestId");
            untagResourcesResponse.Success      = context.BooleanValue("UntagResources.Success");
            untagResourcesResponse.TraceId      = context.StringValue("UntagResources.TraceId");

            return(untagResourcesResponse);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UntagResourcesResponse response = new UntagResourcesResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("FailedResourcesMap", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller <string, FailureInfo, StringUnmarshaller, FailureInfoUnmarshaller>(StringUnmarshaller.Instance, FailureInfoUnmarshaller.Instance);
                    response.FailedResourcesMap = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }