All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.vod.transform.v20170321.DescribeVodDomainRealTimeHttpCodeDataResponseUnmarshaller Maven / Gradle / Ivy

Go to download

Aliyun Open API SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

The newest version!
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.vod.transform.v20170321;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.vod.model.v20170321.DescribeVodDomainRealTimeHttpCodeDataResponse;
import com.aliyuncs.vod.model.v20170321.DescribeVodDomainRealTimeHttpCodeDataResponse.UsageData;
import com.aliyuncs.vod.model.v20170321.DescribeVodDomainRealTimeHttpCodeDataResponse.UsageData.RealTimeCodeProportionData;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeVodDomainRealTimeHttpCodeDataResponseUnmarshaller {

	public static DescribeVodDomainRealTimeHttpCodeDataResponse unmarshall(DescribeVodDomainRealTimeHttpCodeDataResponse describeVodDomainRealTimeHttpCodeDataResponse, UnmarshallerContext _ctx) {
		
		describeVodDomainRealTimeHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RequestId"));
		describeVodDomainRealTimeHttpCodeDataResponse.setEndTime(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.EndTime"));
		describeVodDomainRealTimeHttpCodeDataResponse.setStartTime(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.StartTime"));
		describeVodDomainRealTimeHttpCodeDataResponse.setDomainName(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.DomainName"));
		describeVodDomainRealTimeHttpCodeDataResponse.setDataInterval(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.DataInterval"));

		List realTimeHttpCodeData = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData.Length"); i++) {
			UsageData usageData = new UsageData();
			usageData.setTimeStamp(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].TimeStamp"));

			List value = new ArrayList();
			for (int j = 0; j < _ctx.lengthValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value.Length"); j++) {
				RealTimeCodeProportionData realTimeCodeProportionData = new RealTimeCodeProportionData();
				realTimeCodeProportionData.setCode(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value["+ j +"].Code"));
				realTimeCodeProportionData.setProportion(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value["+ j +"].Proportion"));
				realTimeCodeProportionData.setCount(_ctx.stringValue("DescribeVodDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value["+ j +"].Count"));

				value.add(realTimeCodeProportionData);
			}
			usageData.setValue(value);

			realTimeHttpCodeData.add(usageData);
		}
		describeVodDomainRealTimeHttpCodeDataResponse.setRealTimeHttpCodeData(realTimeHttpCodeData);
	 
	 	return describeVodDomainRealTimeHttpCodeDataResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy