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

com.aliyuncs.aegis.transform.v20161111.DescribeAssetDetailByUuidResponseUnmarshaller 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.aegis.transform.v20161111;

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

import com.aliyuncs.aegis.model.v20161111.DescribeAssetDetailByUuidResponse;
import com.aliyuncs.aegis.model.v20161111.DescribeAssetDetailByUuidResponse.AssetDetail;
import com.aliyuncs.transform.UnmarshallerContext;


public class DescribeAssetDetailByUuidResponseUnmarshaller {

	public static DescribeAssetDetailByUuidResponse unmarshall(DescribeAssetDetailByUuidResponse describeAssetDetailByUuidResponse, UnmarshallerContext context) {
		
		describeAssetDetailByUuidResponse.setRequestId(context.stringValue("DescribeAssetDetailByUuidResponse.RequestId"));

		AssetDetail assetDetail = new AssetDetail();
		assetDetail.setInternetIp(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.InternetIp"));
		assetDetail.setIntranetIp(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.IntranetIp"));
		assetDetail.setInstanceName(context.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.InstanceName"));
		assetDetail.setInstanceId(context.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.InstanceId"));
		assetDetail.setIp(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Ip"));
		assetDetail.setUuid(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Uuid"));
		assetDetail.setAssetType(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.AssetType"));
		assetDetail.setOs(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Os"));
		assetDetail.setClientStatus(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.ClientStatus"));
		assetDetail.setRegion(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Region"));
		assetDetail.setRegionName(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.RegionName"));
		assetDetail.setTag(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Tag"));
		assetDetail.setGroupTrace(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.GroupTrace"));
		assetDetail.setCpu(context.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.Cpu"));
		assetDetail.setCpuInfo(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.CpuInfo"));
		assetDetail.setKernel(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Kernel"));
		assetDetail.setOsDetail(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.OsDetail"));
		assetDetail.setMem(context.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.Mem"));
		assetDetail.setSysInfo(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.SysInfo"));
		assetDetail.setHostName(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.HostName"));

		List ipList = new ArrayList();
		for (int i = 0; i < context.lengthValue("DescribeAssetDetailByUuidResponse.AssetDetail.IpList.Length"); i++) {
			ipList.add(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.IpList["+ i +"]"));
		}
		assetDetail.setIpList(ipList);

		List macList = new ArrayList();
		for (int i = 0; i < context.lengthValue("DescribeAssetDetailByUuidResponse.AssetDetail.MacList.Length"); i++) {
			macList.add(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.MacList["+ i +"]"));
		}
		assetDetail.setMacList(macList);

		List diskInfoList = new ArrayList();
		for (int i = 0; i < context.lengthValue("DescribeAssetDetailByUuidResponse.AssetDetail.DiskInfoList.Length"); i++) {
			diskInfoList.add(context.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.DiskInfoList["+ i +"]"));
		}
		assetDetail.setDiskInfoList(diskInfoList);
		describeAssetDetailByUuidResponse.setAssetDetail(assetDetail);
	 
	 	return describeAssetDetailByUuidResponse;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy