public class ApplicationProxyRule extends AbstractModel
| Constructor and Description | 
|---|
ApplicationProxyRule()  | 
ApplicationProxyRule(ApplicationProxyRule 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 | 
getForwardClientIp()
Get Passes the client IP. 
 | 
String | 
getOriginType()
Get Origin server type. 
 | 
String[] | 
getOriginValue()
Get Origin server information:
When `OriginType=custom`, it indicates one or more origin servers. 
 | 
String[] | 
getPort()
Get Port. 
 | 
String | 
getProto()
Get Protocol. 
 | 
String | 
getRuleId()
Get Rule ID
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
Boolean | 
getSessionPersist()
Get Specifies whether to enable session persistence 
 | 
String | 
getStatus()
Get Status:
`online`: Enable
`offline`: Disable
`progress`: Deploying
`stopping`: Disabling
`fail`: Deployment/Disabling failed 
 | 
void | 
setForwardClientIp(String ForwardClientIp)
Set Passes the client IP. 
 | 
void | 
setOriginType(String OriginType)
Set Origin server type. 
 | 
void | 
setOriginValue(String[] OriginValue)
Set Origin server information:
When `OriginType=custom`, it indicates one or more origin servers. 
 | 
void | 
setPort(String[] Port)
Set Port. 
 | 
void | 
setProto(String Proto)
Set Protocol. 
 | 
void | 
setRuleId(String RuleId)
Set Rule ID
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setSessionPersist(Boolean SessionPersist)
Set Specifies whether to enable session persistence 
 | 
void | 
setStatus(String Status)
Set Status:
`online`: Enable
`offline`: Disable
`progress`: Deploying
`stopping`: Disabling
`fail`: Deployment/Disabling failed 
 | 
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 ApplicationProxyRule()
public ApplicationProxyRule(ApplicationProxyRule source)
public String getProto()
public void setProto(String Proto)
Proto - Protocol. Valid values: `TCP` and `UDP`.public String[] getPort()
public void setPort(String[] Port)
Port - Port. Valid values:
`80`: Port 80
`81-90`: Port range 81-90public String getOriginType()
public void setOriginType(String OriginType)
OriginType - Origin server type. Valid values:
`custom`: Specified origins
`origins`: Origin grouppublic String[] getOriginValue()
public void setOriginValue(String[] OriginValue)
OriginValue - Origin server information:
When `OriginType=custom`, it indicates one or more origin servers. Example:
OriginValue=["8.8.8.8:80","9.9.9.9:80"]
OriginValue=["test.com:80"]
When `OriginType=origins`, it indicates an origin group ID. Example:
OriginValue=["origin-xxx"]public String getRuleId()
public void setRuleId(String RuleId)
RuleId - Rule ID
Note: This field may return `null`, indicating that no valid value can be obtained.public String getStatus()
public void setStatus(String Status)
Status - Status:
`online`: Enable
`offline`: Disable
`progress`: Deploying
`stopping`: Disabling
`fail`: Deployment/Disabling failedpublic String getForwardClientIp()
public void setForwardClientIp(String ForwardClientIp)
ForwardClientIp - Passes the client IP. When `Proto=TCP`, valid values:
`TOA`: Pass the client IP via TOA
`PPV1`: Pass the client IP via Proxy Protocol V1
`PPV2`: Pass the client IP via Proxy Protocol V2
`OFF`: Do not pass the client IP.
When `Proto=UDP`, valid values:
`PPV2`: Pass the client IP via Proxy Protocol V2
`OFF`: Do not pass the client IP.public Boolean getSessionPersist()
public void setSessionPersist(Boolean SessionPersist)
SessionPersist - Specifies whether to enable session persistenceCopyright © 2022. All rights reserved.