com.aliyuncs.dcdn.transform.v20180115.DescribeDcdnDomainRealTimeHttpCodeDataResponseUnmarshaller 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.DescribeDcdnDomainRealTimeHttpCodeDataResponse;
import com.aliyuncs.dcdn.model.v20180115.DescribeDcdnDomainRealTimeHttpCodeDataResponse.UsageData;
import com.aliyuncs.dcdn.model.v20180115.DescribeDcdnDomainRealTimeHttpCodeDataResponse.UsageData.RealTimeCodeProportionData;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDcdnDomainRealTimeHttpCodeDataResponseUnmarshaller {
public static DescribeDcdnDomainRealTimeHttpCodeDataResponse unmarshall(DescribeDcdnDomainRealTimeHttpCodeDataResponse describeDcdnDomainRealTimeHttpCodeDataResponse, UnmarshallerContext _ctx) {
describeDcdnDomainRealTimeHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RequestId"));
describeDcdnDomainRealTimeHttpCodeDataResponse.setDomainName(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.DomainName"));
describeDcdnDomainRealTimeHttpCodeDataResponse.setStartTime(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.StartTime"));
describeDcdnDomainRealTimeHttpCodeDataResponse.setEndTime(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.EndTime"));
describeDcdnDomainRealTimeHttpCodeDataResponse.setDataInterval(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.DataInterval"));
List realTimeHttpCodeData = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData.Length"); i++) {
UsageData usageData = new UsageData();
usageData.setTimeStamp(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].TimeStamp"));
List value = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value.Length"); j++) {
RealTimeCodeProportionData realTimeCodeProportionData = new RealTimeCodeProportionData();
realTimeCodeProportionData.setCode(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value["+ j +"].Code"));
realTimeCodeProportionData.setProportion(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value["+ j +"].Proportion"));
realTimeCodeProportionData.setCount(_ctx.stringValue("DescribeDcdnDomainRealTimeHttpCodeDataResponse.RealTimeHttpCodeData["+ i +"].Value["+ j +"].Count"));
value.add(realTimeCodeProportionData);
}
usageData.setValue(value);
realTimeHttpCodeData.add(usageData);
}
describeDcdnDomainRealTimeHttpCodeDataResponse.setRealTimeHttpCodeData(realTimeHttpCodeData);
return describeDcdnDomainRealTimeHttpCodeDataResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy