com.aliyuncs.sas.transform.v20181203.DescribeAssetDetailByUuidResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-sas Show documentation
Show all versions of aliyun-java-sdk-sas 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.sas.transform.v20181203;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.sas.model.v20181203.DescribeAssetDetailByUuidResponse;
import com.aliyuncs.sas.model.v20181203.DescribeAssetDetailByUuidResponse.AssetDetail;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAssetDetailByUuidResponseUnmarshaller {
public static DescribeAssetDetailByUuidResponse unmarshall(DescribeAssetDetailByUuidResponse describeAssetDetailByUuidResponse, UnmarshallerContext _ctx) {
describeAssetDetailByUuidResponse.setRequestId(_ctx.stringValue("DescribeAssetDetailByUuidResponse.RequestId"));
AssetDetail assetDetail = new AssetDetail();
assetDetail.setCpuInfo(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.CpuInfo"));
assetDetail.setInternetIp(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.InternetIp"));
assetDetail.setOsDetail(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.OsDetail"));
assetDetail.setCreateTime(_ctx.longValue("DescribeAssetDetailByUuidResponse.AssetDetail.CreateTime"));
assetDetail.setKernel(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Kernel"));
assetDetail.setBind(_ctx.booleanValue("DescribeAssetDetailByUuidResponse.AssetDetail.Bind"));
assetDetail.setOsName(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.OsName"));
assetDetail.setTag(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Tag"));
assetDetail.setClientStatus(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.ClientStatus"));
assetDetail.setMem(_ctx.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.Mem"));
assetDetail.setMemory(_ctx.longValue("DescribeAssetDetailByUuidResponse.AssetDetail.Memory"));
assetDetail.setVpcInstanceId(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.VpcInstanceId"));
assetDetail.setAuthVersion(_ctx.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.AuthVersion"));
assetDetail.setInstanceName(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.InstanceName"));
assetDetail.setRegion(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Region"));
assetDetail.setGroupTrace(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.GroupTrace"));
assetDetail.setIp(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Ip"));
assetDetail.setHostName(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.HostName"));
assetDetail.setOs(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Os"));
assetDetail.setAuthModifyTime(_ctx.longValue("DescribeAssetDetailByUuidResponse.AssetDetail.AuthModifyTime"));
assetDetail.setInstanceId(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.InstanceId"));
assetDetail.setIntranetIp(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.IntranetIp"));
assetDetail.setAssetType(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.AssetType"));
assetDetail.setRegionId(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.RegionId"));
assetDetail.setSysInfo(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.SysInfo"));
assetDetail.setUuid(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.Uuid"));
assetDetail.setCpu(_ctx.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.Cpu"));
assetDetail.setRegionName(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.RegionName"));
assetDetail.setInstanceStatus(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.InstanceStatus"));
assetDetail.setFlag(_ctx.integerValue("DescribeAssetDetailByUuidResponse.AssetDetail.Flag"));
assetDetail.setClientVersion(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.ClientVersion"));
List ipList = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeAssetDetailByUuidResponse.AssetDetail.IpList.Length"); i++) {
ipList.add(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.IpList["+ i +"]"));
}
assetDetail.setIpList(ipList);
List macList = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeAssetDetailByUuidResponse.AssetDetail.MacList.Length"); i++) {
macList.add(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.MacList["+ i +"]"));
}
assetDetail.setMacList(macList);
List diskInfoList = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeAssetDetailByUuidResponse.AssetDetail.DiskInfoList.Length"); i++) {
diskInfoList.add(_ctx.stringValue("DescribeAssetDetailByUuidResponse.AssetDetail.DiskInfoList["+ i +"]"));
}
assetDetail.setDiskInfoList(diskInfoList);
describeAssetDetailByUuidResponse.setAssetDetail(assetDetail);
return describeAssetDetailByUuidResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy