Example #1
0
        public static TagResourcesResponse Unmarshall(UnmarshallerContext context)
        {
            TagResourcesResponse tagResourcesResponse = new TagResourcesResponse();

            tagResourcesResponse.HttpResponse = context.HttpResponse;
            tagResourcesResponse.RequestId    = context.StringValue("TagResources.RequestId");

            List <TagResourcesResponse.TagResources_FailedResource> tagResourcesResponse_failedResources = new List <TagResourcesResponse.TagResources_FailedResource>();

            for (int i = 0; i < context.Length("TagResources.FailedResources.Length"); i++)
            {
                TagResourcesResponse.TagResources_FailedResource failedResource = new TagResourcesResponse.TagResources_FailedResource();
                failedResource.ResourceARN = context.StringValue("TagResources.FailedResources[" + i + "].ResourceARN");

                TagResourcesResponse.TagResources_FailedResource.TagResources_Result result = new TagResourcesResponse.TagResources_FailedResource.TagResources_Result();
                result.Code           = context.StringValue("TagResources.FailedResources[" + i + "].Result.Code");
                result.Message        = context.StringValue("TagResources.FailedResources[" + i + "].Result.Message");
                failedResource.Result = result;

                tagResourcesResponse_failedResources.Add(failedResource);
            }
            tagResourcesResponse.FailedResources = tagResourcesResponse_failedResources;

            return(tagResourcesResponse);
        }
Example #2
0
        public static TagResourcesResponse Unmarshall(UnmarshallerContext context)
        {
            TagResourcesResponse tagResourcesResponse = new TagResourcesResponse();

            tagResourcesResponse.HttpResponse = context.HttpResponse;
            tagResourcesResponse.RequestId    = context.StringValue("TagResources.RequestId");

            return(tagResourcesResponse);
        }
Example #3
0
        public static TagResourcesResponse Unmarshall(UnmarshallerContext _ctx)
        {
			TagResourcesResponse tagResourcesResponse = new TagResourcesResponse();

			tagResourcesResponse.HttpResponse = _ctx.HttpResponse;
			tagResourcesResponse.RequestId = _ctx.StringValue("TagResources.RequestId");
        
			return tagResourcesResponse;
        }
Example #4
0
        public static TagResourcesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            TagResourcesResponse tagResourcesResponse = new TagResourcesResponse();

            tagResourcesResponse.HttpResponse = _ctx.HttpResponse;
            tagResourcesResponse.RequestId    = _ctx.StringValue("TagResources.RequestId");
            tagResourcesResponse.Success      = _ctx.BooleanValue("TagResources.Success");
            tagResourcesResponse.ErrMessage   = _ctx.StringValue("TagResources.ErrMessage");
            tagResourcesResponse.ErrCode      = _ctx.StringValue("TagResources.ErrCode");

            return(tagResourcesResponse);
        }
Example #5
0
        public static TagResourcesResponse Unmarshall(UnmarshallerContext context)
        {
            TagResourcesResponse tagResourcesResponse = new TagResourcesResponse();

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

            return(tagResourcesResponse);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            TagResourcesResponse response = new TagResourcesResponse();

            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);
        }