public class ClientIpHeader extends AbstractModel
| Constructor and Description | 
|---|
| ClientIpHeader() | 
| ClientIpHeader(ClientIpHeader 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getHeaderName()Get The name of the HTTP header that contains the client IP, which is used for forwarding. | 
| String | getSwitch()Get Whether to enable the configuration. | 
| void | setHeaderName(String HeaderName)Set The name of the HTTP header that contains the client IP, which is used for forwarding. | 
| void | setSwitch(String Switch)Set Whether to enable the configuration. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic ClientIpHeader()
public ClientIpHeader(ClientIpHeader source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable the configuration. Values:
public String getHeaderName()
public void setHeaderName(String HeaderName)
HeaderName - The name of the HTTP header that contains the client IP, which is used for forwarding.
If this field is not specified, the default value `X-Forwarded-IP` will be used.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.