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

com.aliyuncs.dcdn.transform.v20180115.DescribeDcdnTopDomainsByFlowResponseUnmarshaller 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

There is a newer version: 2.2.3
Show 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.dcdn.transform.v20180115;

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

import com.aliyuncs.dcdn.model.v20180115.DescribeDcdnTopDomainsByFlowResponse;
import com.aliyuncs.dcdn.model.v20180115.DescribeDcdnTopDomainsByFlowResponse.TopDomain;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeDcdnTopDomainsByFlowResponseUnmarshaller {

	public static DescribeDcdnTopDomainsByFlowResponse unmarshall(DescribeDcdnTopDomainsByFlowResponse describeDcdnTopDomainsByFlowResponse, UnmarshallerContext _ctx) {
		
		describeDcdnTopDomainsByFlowResponse.setRequestId(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.RequestId"));
		describeDcdnTopDomainsByFlowResponse.setStartTime(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.StartTime"));
		describeDcdnTopDomainsByFlowResponse.setEndTime(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.EndTime"));
		describeDcdnTopDomainsByFlowResponse.setDomainCount(_ctx.longValue("DescribeDcdnTopDomainsByFlowResponse.DomainCount"));
		describeDcdnTopDomainsByFlowResponse.setDomainOnlineCount(_ctx.longValue("DescribeDcdnTopDomainsByFlowResponse.DomainOnlineCount"));

		List topDomains = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains.Length"); i++) {
			TopDomain topDomain = new TopDomain();
			topDomain.setDomainName(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].DomainName"));
			topDomain.setRank(_ctx.longValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].Rank"));
			topDomain.setTotalTraffic(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].TotalTraffic"));
			topDomain.setTrafficPercent(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].TrafficPercent"));
			topDomain.setMaxBps(_ctx.longValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].MaxBps"));
			topDomain.setMaxBpsTime(_ctx.stringValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].MaxBpsTime"));
			topDomain.setTotalAccess(_ctx.longValue("DescribeDcdnTopDomainsByFlowResponse.TopDomains["+ i +"].TotalAccess"));

			topDomains.add(topDomain);
		}
		describeDcdnTopDomainsByFlowResponse.setTopDomains(topDomains);
	 
	 	return describeDcdnTopDomainsByFlowResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy