com.aliyuncs.dcdn.transform.v20180115.DescribeDcdnDomainHttpCodeDataResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-dcdn Show documentation
Show all versions of aliyun-java-sdk-dcdn Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* 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.DescribeDcdnDomainHttpCodeDataResponse;
import com.aliyuncs.dcdn.model.v20180115.DescribeDcdnDomainHttpCodeDataResponse.DataModule;
import com.aliyuncs.dcdn.model.v20180115.DescribeDcdnDomainHttpCodeDataResponse.DataModule.HttpCodeDataModule;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDcdnDomainHttpCodeDataResponseUnmarshaller {
public static DescribeDcdnDomainHttpCodeDataResponse unmarshall(DescribeDcdnDomainHttpCodeDataResponse describeDcdnDomainHttpCodeDataResponse, UnmarshallerContext _ctx) {
describeDcdnDomainHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.RequestId"));
describeDcdnDomainHttpCodeDataResponse.setDomainName(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.DomainName"));
describeDcdnDomainHttpCodeDataResponse.setStartTime(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.StartTime"));
describeDcdnDomainHttpCodeDataResponse.setEndTime(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.EndTime"));
describeDcdnDomainHttpCodeDataResponse.setDataInterval(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.DataInterval"));
List dataPerInterval = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeDcdnDomainHttpCodeDataResponse.DataPerInterval.Length"); i++) {
DataModule dataModule = new DataModule();
dataModule.setTimeStamp(_ctx.stringValue("DescribeDcdnDomainHttpCodeDataResponse.DataPerInterval["+ i +"].TimeStamp"));
List httpCodeDataPerInterval = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("DescribeDcdnDomainHttpCodeDataResponse.DataPerInterval["+ i +"].HttpCodeDataPerInterval.Length"); j++) {
HttpCodeDataModule httpCodeDataModule = new HttpCodeDataModule();
httpCodeDataModule.setCode(_ctx.integerValue("DescribeDcdnDomainHttpCodeDataResponse.DataPerInterval["+ i +"].HttpCodeDataPerInterval["+ j +"].Code"));
httpCodeDataModule.setProportion(_ctx.floatValue("DescribeDcdnDomainHttpCodeDataResponse.DataPerInterval["+ i +"].HttpCodeDataPerInterval["+ j +"].Proportion"));
httpCodeDataModule.setCount(_ctx.floatValue("DescribeDcdnDomainHttpCodeDataResponse.DataPerInterval["+ i +"].HttpCodeDataPerInterval["+ j +"].Count"));
httpCodeDataPerInterval.add(httpCodeDataModule);
}
dataModule.setHttpCodeDataPerInterval(httpCodeDataPerInterval);
dataPerInterval.add(dataModule);
}
describeDcdnDomainHttpCodeDataResponse.setDataPerInterval(dataPerInterval);
return describeDcdnDomainHttpCodeDataResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy