com.aliyuncs.cspro.transform.v20180315.GetIpProfileResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-cspro Show documentation
Show all versions of aliyun-java-sdk-cspro 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.cspro.transform.v20180315;
import com.aliyuncs.cspro.model.v20180315.GetIpProfileResponse;
import com.aliyuncs.cspro.model.v20180315.GetIpProfileResponse.Data;
import com.aliyuncs.cspro.model.v20180315.GetIpProfileResponse.Data.Info;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetIpProfileResponseUnmarshaller {
public static GetIpProfileResponse unmarshall(GetIpProfileResponse getIpProfileResponse, UnmarshallerContext context) {
getIpProfileResponse.setRequestId(context.stringValue("GetIpProfileResponse.RequestId"));
getIpProfileResponse.setCode(context.stringValue("GetIpProfileResponse.Code"));
getIpProfileResponse.setMessage(context.stringValue("GetIpProfileResponse.Message"));
getIpProfileResponse.setSuccess(context.booleanValue("GetIpProfileResponse.Success"));
Data data = new Data();
data.setIp(context.stringValue("GetIpProfileResponse.Data.Ip"));
Info info = new Info();
info.setIsAbroad(context.integerValue("GetIpProfileResponse.Data.Info.IsAbroad"));
info.setIsIdc(context.integerValue("GetIpProfileResponse.Data.Info.IsIdc"));
info.setIsProxy(context.integerValue("GetIpProfileResponse.Data.Info.IsProxy"));
info.setIsNat(context.integerValue("GetIpProfileResponse.Data.Info.IsNat"));
info.setIsBase(context.integerValue("GetIpProfileResponse.Data.Info.IsBase"));
info.setIsTor(context.integerValue("GetIpProfileResponse.Data.Info.IsTor"));
info.setIsBindDomain1d(context.integerValue("GetIpProfileResponse.Data.Info.IsBindDomain1d"));
info.setIsBindDomain7d(context.integerValue("GetIpProfileResponse.Data.Info.IsBindDomain7d"));
info.setIsBindDomain30d(context.integerValue("GetIpProfileResponse.Data.Info.IsBindDomain30d"));
info.setIsNetAttack1d(context.integerValue("GetIpProfileResponse.Data.Info.IsNetAttack1d"));
info.setIsNetAttack7d(context.integerValue("GetIpProfileResponse.Data.Info.IsNetAttack7d"));
info.setIsNetAttack30d(context.integerValue("GetIpProfileResponse.Data.Info.IsNetAttack30d"));
info.setIsBotnet1d(context.integerValue("GetIpProfileResponse.Data.Info.IsBotnet1d"));
info.setIsBotnet7d(context.integerValue("GetIpProfileResponse.Data.Info.IsBotnet7d"));
info.setIsBotnet30d(context.integerValue("GetIpProfileResponse.Data.Info.IsBotnet30d"));
info.setIsC21d(context.integerValue("GetIpProfileResponse.Data.Info.IsC21d"));
info.setIsC27d(context.integerValue("GetIpProfileResponse.Data.Info.IsC27d"));
info.setIsC230d(context.integerValue("GetIpProfileResponse.Data.Info.IsC230d"));
info.setIsBlackCampaign1d(context.integerValue("GetIpProfileResponse.Data.Info.IsBlackCampaign1d"));
info.setIsBlackCampaign7d(context.integerValue("GetIpProfileResponse.Data.Info.IsBlackCampaign7d"));
info.setIsBlackCampaign30d(context.integerValue("GetIpProfileResponse.Data.Info.IsBlackCampaign30d"));
info.setIsOpenCommonPort1d(context.integerValue("GetIpProfileResponse.Data.Info.IsOpenCommonPort1d"));
info.setIsOpenCommonPort7d(context.integerValue("GetIpProfileResponse.Data.Info.IsOpenCommonPort7d"));
info.setIsOpenCommonPort30d(context.integerValue("GetIpProfileResponse.Data.Info.IsOpenCommonPort30d"));
info.setIsCheatflow1d(context.integerValue("GetIpProfileResponse.Data.Info.IsCheatflow1d"));
info.setIsCheatflow7d(context.integerValue("GetIpProfileResponse.Data.Info.IsCheatflow7d"));
info.setIsCheatflow30d(context.integerValue("GetIpProfileResponse.Data.Info.IsCheatflow30d"));
info.setIsHijack1d(context.integerValue("GetIpProfileResponse.Data.Info.IsHijack1d"));
info.setIsHijack7d(context.integerValue("GetIpProfileResponse.Data.Info.IsHijack7d"));
info.setIsHijack30d(context.integerValue("GetIpProfileResponse.Data.Info.IsHijack30d"));
info.setIsProxy1d(context.integerValue("GetIpProfileResponse.Data.Info.IsProxy1d"));
info.setIsProxy7d(context.integerValue("GetIpProfileResponse.Data.Info.IsProxy7d"));
info.setIsProxy30d(context.integerValue("GetIpProfileResponse.Data.Info.IsProxy30d"));
info.setCountry(context.stringValue("GetIpProfileResponse.Data.Info.Country"));
info.setProvince(context.stringValue("GetIpProfileResponse.Data.Info.Province"));
info.setCity(context.stringValue("GetIpProfileResponse.Data.Info.City"));
info.setIsp(context.stringValue("GetIpProfileResponse.Data.Info.Isp"));
info.setAsnId(context.stringValue("GetIpProfileResponse.Data.Info.AsnId"));
data.setInfo(info);
getIpProfileResponse.setData(data);
return getIpProfileResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy