Class ClientIpCountry
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.ClientIpCountry
-
public class ClientIpCountry extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ClientIpCountry()ClientIpCountry(ClientIpCountry source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeaderName()Get 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。 为空则使用默认值:EO-Client-IPCountry。StringgetSwitch()Get 配置开关,取值有: on:开启; off:关闭。voidsetHeaderName(String HeaderName)Set 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。 为空则使用默认值:EO-Client-IPCountry。voidsetSwitch(String Switch)Set 配置开关,取值有: on:开启; off:关闭。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ClientIpCountry
public ClientIpCountry()
-
ClientIpCountry
public ClientIpCountry(ClientIpCountry source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getSwitch
public String getSwitch()
Get 配置开关,取值有:- on:开启;
- off:关闭。
- Returns:
- Switch 配置开关,取值有:
- on:开启;
- off:关闭。
-
setSwitch
public void setSwitch(String Switch)
Set 配置开关,取值有:- on:开启;
- off:关闭。
- Parameters:
Switch- 配置开关,取值有:- on:开启;
- off:关闭。
-
getHeaderName
public String getHeaderName()
Get 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。 为空则使用默认值:EO-Client-IPCountry。- Returns:
- HeaderName 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。 为空则使用默认值:EO-Client-IPCountry。
-
setHeaderName
public void setHeaderName(String HeaderName)
Set 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。 为空则使用默认值:EO-Client-IPCountry。- Parameters:
HeaderName- 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。 为空则使用默认值:EO-Client-IPCountry。
-
-