com.aliyuncs.cbn.transform.v20170912.DescribeRouteServicesInCenResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-cbn Show documentation
Show all versions of aliyun-java-sdk-cbn 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.cbn.transform.v20170912;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.cbn.model.v20170912.DescribeRouteServicesInCenResponse;
import com.aliyuncs.cbn.model.v20170912.DescribeRouteServicesInCenResponse.RouteServiceEntry;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeRouteServicesInCenResponseUnmarshaller {
public static DescribeRouteServicesInCenResponse unmarshall(DescribeRouteServicesInCenResponse describeRouteServicesInCenResponse, UnmarshallerContext _ctx) {
describeRouteServicesInCenResponse.setRequestId(_ctx.stringValue("DescribeRouteServicesInCenResponse.RequestId"));
describeRouteServicesInCenResponse.setPageSize(_ctx.integerValue("DescribeRouteServicesInCenResponse.PageSize"));
describeRouteServicesInCenResponse.setPageNumber(_ctx.integerValue("DescribeRouteServicesInCenResponse.PageNumber"));
describeRouteServicesInCenResponse.setTotalCount(_ctx.integerValue("DescribeRouteServicesInCenResponse.TotalCount"));
List routeServiceEntries = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeRouteServicesInCenResponse.RouteServiceEntries.Length"); i++) {
RouteServiceEntry routeServiceEntry = new RouteServiceEntry();
routeServiceEntry.setStatus(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].Status"));
routeServiceEntry.setHost(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].Host"));
routeServiceEntry.setDescription(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].Description"));
routeServiceEntry.setHostVpcId(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].HostVpcId"));
routeServiceEntry.setCenId(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].CenId"));
routeServiceEntry.setAccessRegionId(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].AccessRegionId"));
routeServiceEntry.setHostRegionId(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].HostRegionId"));
routeServiceEntry.setUpdateInterval(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].UpdateInterval"));
List cidrs = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].Cidrs.Length"); j++) {
cidrs.add(_ctx.stringValue("DescribeRouteServicesInCenResponse.RouteServiceEntries["+ i +"].Cidrs["+ j +"]"));
}
routeServiceEntry.setCidrs(cidrs);
routeServiceEntries.add(routeServiceEntry);
}
describeRouteServicesInCenResponse.setRouteServiceEntries(routeServiceEntries);
return describeRouteServicesInCenResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy