public static DescribePreCheckResultsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePreCheckResultsResponse describePreCheckResultsResponse = new DescribePreCheckResultsResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("DescribePreCheckResults.RequestId"),
                DBInstanceId = context.StringValue("DescribePreCheckResults.DBInstanceId")
            };
            List <DescribePreCheckResultsResponse.PreCheckResult> items = new List <DescribePreCheckResultsResponse.PreCheckResult>();

            for (int i = 0; i < context.Length("DescribePreCheckResults.Items.Length"); i++)
            {
                DescribePreCheckResultsResponse.PreCheckResult preCheckResult = new DescribePreCheckResultsResponse.PreCheckResult()
                {
                    PreCheckName    = context.StringValue($"DescribePreCheckResults.Items[{i}].PreCheckName"),
                    PreCheckResult_ = context.StringValue($"DescribePreCheckResults.Items[{i}].PreCheckResult"),
                    FailReasion     = context.StringValue($"DescribePreCheckResults.Items[{i}].FailReasion"),
                    RepairMethod    = context.StringValue($"DescribePreCheckResults.Items[{i}].RepairMethod")
                };
                items.Add(preCheckResult);
            }
            describePreCheckResultsResponse.Items = items;

            return(describePreCheckResultsResponse);
        }
示例#2
0
        public static DescribePreCheckResultsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePreCheckResultsResponse describePreCheckResultsResponse = new DescribePreCheckResultsResponse();

            describePreCheckResultsResponse.HttpResponse = context.HttpResponse;
            describePreCheckResultsResponse.RequestId    = context.StringValue("DescribePreCheckResults.RequestId");
            describePreCheckResultsResponse.DBInstanceId = context.StringValue("DescribePreCheckResults.DBInstanceId");

            List <DescribePreCheckResultsResponse.DescribePreCheckResults_PreCheckResult> describePreCheckResultsResponse_items = new List <DescribePreCheckResultsResponse.DescribePreCheckResults_PreCheckResult>();

            for (int i = 0; i < context.Length("DescribePreCheckResults.Items.Length"); i++)
            {
                DescribePreCheckResultsResponse.DescribePreCheckResults_PreCheckResult preCheckResult = new DescribePreCheckResultsResponse.DescribePreCheckResults_PreCheckResult();
                preCheckResult.PreCheckName   = context.StringValue("DescribePreCheckResults.Items[" + i + "].PreCheckName");
                preCheckResult.PreCheckResult = context.StringValue("DescribePreCheckResults.Items[" + i + "].PreCheckResult");
                preCheckResult.FailReasion    = context.StringValue("DescribePreCheckResults.Items[" + i + "].FailReasion");
                preCheckResult.RepairMethod   = context.StringValue("DescribePreCheckResults.Items[" + i + "].RepairMethod");

                describePreCheckResultsResponse_items.Add(preCheckResult);
            }
            describePreCheckResultsResponse.Items = describePreCheckResultsResponse_items;

            return(describePreCheckResultsResponse);
        }