public static DescribeDBClusterPerformanceResponse Unmarshall(UnmarshallerContext _ctx) { DescribeDBClusterPerformanceResponse describeDBClusterPerformanceResponse = new DescribeDBClusterPerformanceResponse(); describeDBClusterPerformanceResponse.HttpResponse = _ctx.HttpResponse; describeDBClusterPerformanceResponse.RequestId = _ctx.StringValue("DescribeDBClusterPerformance.RequestId"); describeDBClusterPerformanceResponse.DBClusterId = _ctx.StringValue("DescribeDBClusterPerformance.DBClusterId"); describeDBClusterPerformanceResponse.StartTime = _ctx.StringValue("DescribeDBClusterPerformance.StartTime"); describeDBClusterPerformanceResponse.EndTime = _ctx.StringValue("DescribeDBClusterPerformance.EndTime"); List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem> describeDBClusterPerformanceResponse_performances = new List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem>(); for (int i = 0; i < _ctx.Length("DescribeDBClusterPerformance.Performances.Length"); i++) { DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem performanceItem = new DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem(); performanceItem.Key = _ctx.StringValue("DescribeDBClusterPerformance.Performances[" + i + "].Key"); performanceItem.Unit = _ctx.StringValue("DescribeDBClusterPerformance.Performances[" + i + "].Unit"); List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_SeriesItem> performanceItem_series = new List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_SeriesItem>(); for (int j = 0; j < _ctx.Length("DescribeDBClusterPerformance.Performances[" + i + "].Series.Length"); j++) { DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_SeriesItem seriesItem = new DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_SeriesItem(); seriesItem.Name = _ctx.StringValue("DescribeDBClusterPerformance.Performances[" + i + "].Series[" + j + "].Name"); List <string> seriesItem_values = new List <string>(); for (int k = 0; k < _ctx.Length("DescribeDBClusterPerformance.Performances[" + i + "].Series[" + j + "].Values.Length"); k++) { seriesItem_values.Add(_ctx.StringValue("DescribeDBClusterPerformance.Performances[" + i + "].Series[" + j + "].Values[" + k + "]")); } seriesItem.Values = seriesItem_values; performanceItem_series.Add(seriesItem); } performanceItem.Series = performanceItem_series; describeDBClusterPerformanceResponse_performances.Add(performanceItem); } describeDBClusterPerformanceResponse.Performances = describeDBClusterPerformanceResponse_performances; return(describeDBClusterPerformanceResponse); }
public static DescribeDBClusterPerformanceResponse Unmarshall(UnmarshallerContext _ctx) { DescribeDBClusterPerformanceResponse describeDBClusterPerformanceResponse = new DescribeDBClusterPerformanceResponse(); describeDBClusterPerformanceResponse.HttpResponse = _ctx.HttpResponse; describeDBClusterPerformanceResponse.RequestId = _ctx.StringValue("DescribeDBClusterPerformance.RequestId"); describeDBClusterPerformanceResponse.DBClusterId = _ctx.StringValue("DescribeDBClusterPerformance.DBClusterId"); describeDBClusterPerformanceResponse.Engine = _ctx.StringValue("DescribeDBClusterPerformance.Engine"); describeDBClusterPerformanceResponse.DBType = _ctx.StringValue("DescribeDBClusterPerformance.DBType"); describeDBClusterPerformanceResponse.DBVersion = _ctx.StringValue("DescribeDBClusterPerformance.DBVersion"); describeDBClusterPerformanceResponse.StartTime = _ctx.StringValue("DescribeDBClusterPerformance.StartTime"); describeDBClusterPerformanceResponse.EndTime = _ctx.StringValue("DescribeDBClusterPerformance.EndTime"); List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem> describeDBClusterPerformanceResponse_performanceKeys = new List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem>(); for (int i = 0; i < _ctx.Length("DescribeDBClusterPerformance.PerformanceKeys.Length"); i++) { DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem performanceItem = new DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem(); performanceItem.DBNodeId = _ctx.StringValue("DescribeDBClusterPerformance.PerformanceKeys[" + i + "].DBNodeId"); performanceItem.Measurement = _ctx.StringValue("DescribeDBClusterPerformance.PerformanceKeys[" + i + "].Measurement"); performanceItem.MetricName = _ctx.StringValue("DescribeDBClusterPerformance.PerformanceKeys[" + i + "].MetricName"); List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_PerformanceItemValue> performanceItem_points = new List <DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_PerformanceItemValue>(); for (int j = 0; j < _ctx.Length("DescribeDBClusterPerformance.PerformanceKeys[" + i + "].Points.Length"); j++) { DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_PerformanceItemValue performanceItemValue = new DescribeDBClusterPerformanceResponse.DescribeDBClusterPerformance_PerformanceItem.DescribeDBClusterPerformance_PerformanceItemValue(); performanceItemValue._Value = _ctx.StringValue("DescribeDBClusterPerformance.PerformanceKeys[" + i + "].Points[" + j + "].Value"); performanceItemValue.Timestamp = _ctx.LongValue("DescribeDBClusterPerformance.PerformanceKeys[" + i + "].Points[" + j + "].Timestamp"); performanceItem_points.Add(performanceItemValue); } performanceItem.Points = performanceItem_points; describeDBClusterPerformanceResponse_performanceKeys.Add(performanceItem); } describeDBClusterPerformanceResponse.PerformanceKeys = describeDBClusterPerformanceResponse_performanceKeys; return(describeDBClusterPerformanceResponse); }