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

com.aliyuncs.cciotgw.transform.v20210721.GetIoTCloudConnectorGatewayResponseUnmarshaller 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.cciotgw.transform.v20210721;

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

import com.aliyuncs.cciotgw.model.v20210721.GetIoTCloudConnectorGatewayResponse;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;


public class GetIoTCloudConnectorGatewayResponseUnmarshaller {

	public static GetIoTCloudConnectorGatewayResponse unmarshall(GetIoTCloudConnectorGatewayResponse getIoTCloudConnectorGatewayResponse, UnmarshallerContext _ctx) {
		
		getIoTCloudConnectorGatewayResponse.setRequestId(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.RequestId"));
		getIoTCloudConnectorGatewayResponse.setSpec(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.Spec"));
		getIoTCloudConnectorGatewayResponse.setResourceUid(_ctx.longValue("GetIoTCloudConnectorGatewayResponse.ResourceUid"));
		getIoTCloudConnectorGatewayResponse.setDescription(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.Description"));
		getIoTCloudConnectorGatewayResponse.setHaMode(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.HaMode"));
		getIoTCloudConnectorGatewayResponse.setState(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.State"));
		getIoTCloudConnectorGatewayResponse.setScheduleFactor(_ctx.mapValue("GetIoTCloudConnectorGatewayResponse.ScheduleFactor"));
		getIoTCloudConnectorGatewayResponse.setApn(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.Apn"));
		getIoTCloudConnectorGatewayResponse.setForwardingUnitCount(_ctx.integerValue("GetIoTCloudConnectorGatewayResponse.ForwardingUnitCount"));
		getIoTCloudConnectorGatewayResponse.setName(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.Name"));
		getIoTCloudConnectorGatewayResponse.setIsp(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.Isp"));
		getIoTCloudConnectorGatewayResponse.setIoTCloudConnectorGatewayId(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.IoTCloudConnectorGatewayId"));

		List forwardingUnitIds = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("GetIoTCloudConnectorGatewayResponse.ForwardingUnitIds.Length"); i++) {
			forwardingUnitIds.add(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.ForwardingUnitIds["+ i +"]"));
		}
		getIoTCloudConnectorGatewayResponse.setForwardingUnitIds(forwardingUnitIds);

		List featureList = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("GetIoTCloudConnectorGatewayResponse.FeatureList.Length"); i++) {
			featureList.add(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.FeatureList["+ i +"]"));
		}
		getIoTCloudConnectorGatewayResponse.setFeatureList(featureList);

		List zoneList = new ArrayList();
		for (int i = 0; i < _ctx.lengthValue("GetIoTCloudConnectorGatewayResponse.ZoneList.Length"); i++) {
			zoneList.add(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.ZoneList["+ i +"]"));
		}
		getIoTCloudConnectorGatewayResponse.setZoneList(zoneList);
	 
	 	return getIoTCloudConnectorGatewayResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy