public static DescribeTaskAttributeResponse Unmarshall(UnmarshallerContext context) { DescribeTaskAttributeResponse describeTaskAttributeResponse = new DescribeTaskAttributeResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeTaskAttribute.RequestId"), TaskId = context.StringValue("DescribeTaskAttribute.TaskId"), RegionId = context.StringValue("DescribeTaskAttribute.RegionId"), TaskAction = context.StringValue("DescribeTaskAttribute.TaskAction"), TaskStatus = context.StringValue("DescribeTaskAttribute.TaskStatus"), TaskProcess = context.StringValue("DescribeTaskAttribute.TaskProcess"), SupportCancel = context.StringValue("DescribeTaskAttribute.SupportCancel"), TotalCount = context.IntegerValue("DescribeTaskAttribute.TotalCount"), SuccessCount = context.IntegerValue("DescribeTaskAttribute.SuccessCount"), FailedCount = context.IntegerValue("DescribeTaskAttribute.FailedCount"), CreationTime = context.StringValue("DescribeTaskAttribute.CreationTime"), FinishedTime = context.StringValue("DescribeTaskAttribute.FinishedTime") }; List <DescribeTaskAttributeResponse.OperationProgress> operationProgressSet = new List <DescribeTaskAttributeResponse.OperationProgress>(); for (int i = 0; i < context.Length("DescribeTaskAttribute.OperationProgressSet.Length"); i++) { DescribeTaskAttributeResponse.OperationProgress operationProgress = new DescribeTaskAttributeResponse.OperationProgress() { OperationStatus = context.StringValue($"DescribeTaskAttribute.OperationProgressSet[{i}].OperationStatus"), ErrorCode = context.StringValue($"DescribeTaskAttribute.OperationProgressSet[{i}].ErrorCode"), ErrorMsg = context.StringValue($"DescribeTaskAttribute.OperationProgressSet[{i}].ErrorMsg") }; List <DescribeTaskAttributeResponse.OperationProgress.RelatedItem> relatedItemSet = new List <DescribeTaskAttributeResponse.OperationProgress.RelatedItem>(); for (int j = 0; j < context.Length($"DescribeTaskAttribute.OperationProgressSet[{i}].RelatedItemSet.Length"); j++) { DescribeTaskAttributeResponse.OperationProgress.RelatedItem relatedItem = new DescribeTaskAttributeResponse.OperationProgress.RelatedItem() { Name = context.StringValue($"DescribeTaskAttribute.OperationProgressSet[{i}].RelatedItemSet[{j}].Name"), Value = context.StringValue($"DescribeTaskAttribute.OperationProgressSet[{i}].RelatedItemSet[{j}].Value") }; relatedItemSet.Add(relatedItem); } operationProgress.RelatedItemSet = relatedItemSet; operationProgressSet.Add(operationProgress); } describeTaskAttributeResponse.OperationProgressSet = operationProgressSet; return(describeTaskAttributeResponse); }
public static DescribeTaskAttributeResponse Unmarshall(UnmarshallerContext context) { DescribeTaskAttributeResponse describeTaskAttributeResponse = new DescribeTaskAttributeResponse(); describeTaskAttributeResponse.HttpResponse = context.HttpResponse; describeTaskAttributeResponse.RequestId = context.StringValue("DescribeTaskAttribute.RequestId"); describeTaskAttributeResponse.TaskId = context.StringValue("DescribeTaskAttribute.TaskId"); describeTaskAttributeResponse.RegionId = context.StringValue("DescribeTaskAttribute.RegionId"); describeTaskAttributeResponse.TaskAction = context.StringValue("DescribeTaskAttribute.TaskAction"); describeTaskAttributeResponse.TaskStatus = context.StringValue("DescribeTaskAttribute.TaskStatus"); describeTaskAttributeResponse.TaskProcess = context.StringValue("DescribeTaskAttribute.TaskProcess"); describeTaskAttributeResponse.SupportCancel = context.StringValue("DescribeTaskAttribute.SupportCancel"); describeTaskAttributeResponse.TotalCount = context.IntegerValue("DescribeTaskAttribute.TotalCount"); describeTaskAttributeResponse.SuccessCount = context.IntegerValue("DescribeTaskAttribute.SuccessCount"); describeTaskAttributeResponse.FailedCount = context.IntegerValue("DescribeTaskAttribute.FailedCount"); describeTaskAttributeResponse.CreationTime = context.StringValue("DescribeTaskAttribute.CreationTime"); describeTaskAttributeResponse.FinishedTime = context.StringValue("DescribeTaskAttribute.FinishedTime"); List <DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress> describeTaskAttributeResponse_operationProgressSet = new List <DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress>(); for (int i = 0; i < context.Length("DescribeTaskAttribute.OperationProgressSet.Length"); i++) { DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress operationProgress = new DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress(); operationProgress.OperationStatus = context.StringValue("DescribeTaskAttribute.OperationProgressSet[" + i + "].OperationStatus"); operationProgress.ErrorCode = context.StringValue("DescribeTaskAttribute.OperationProgressSet[" + i + "].ErrorCode"); operationProgress.ErrorMsg = context.StringValue("DescribeTaskAttribute.OperationProgressSet[" + i + "].ErrorMsg"); List <DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress.DescribeTaskAttribute_RelatedItem> operationProgress_relatedItemSet = new List <DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress.DescribeTaskAttribute_RelatedItem>(); for (int j = 0; j < context.Length("DescribeTaskAttribute.OperationProgressSet[" + i + "].RelatedItemSet.Length"); j++) { DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress.DescribeTaskAttribute_RelatedItem relatedItem = new DescribeTaskAttributeResponse.DescribeTaskAttribute_OperationProgress.DescribeTaskAttribute_RelatedItem(); relatedItem.Name = context.StringValue("DescribeTaskAttribute.OperationProgressSet[" + i + "].RelatedItemSet[" + j + "].Name"); relatedItem._Value = context.StringValue("DescribeTaskAttribute.OperationProgressSet[" + i + "].RelatedItemSet[" + j + "]._Value"); operationProgress_relatedItemSet.Add(relatedItem); } operationProgress.RelatedItemSet = operationProgress_relatedItemSet; describeTaskAttributeResponse_operationProgressSet.Add(operationProgress); } describeTaskAttributeResponse.OperationProgressSet = describeTaskAttributeResponse_operationProgressSet; return(describeTaskAttributeResponse); }