public class ApplicationProxyRule extends AbstractModel
header, skipSign| 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 | getOriginPort()Get The origin port, which can be:
A single port, such as 80
A port range, such as 81-82 | 
| String | getOriginType()Get Origin server type. | 
| String[] | getOriginValue()Get Details of the origin server:
When OriginType is custom, it indicates one or more origin servers, such as ["8.8.8.8","9.9.9.9"] or OriginValue=["test.com"];When OriginType is loadbalancer, it indicates a single Cloud Load Balancer, such as ["lb-xdffsfasdfs"];
When OriginType is origins, it requires one and only one element, which represents an origin server group ID, such as ["origin-537f5b41-162a-11ed-abaa-525400c5da15"]. | 
| String[] | getPort()Get The access port, which can be:
A single port, such as 80
A port range, such as 81-82
Note that each rule can have up to 20 ports. | 
| String | getProto()Get The protocol. | 
| String | getRuleId()Get The rule ID. | 
| String | getRuleTag()Get Rule tag. | 
| Boolean | getSessionPersist()Get Whether to enable session persistence. | 
| Long | getSessionPersistTime()Get Duration for the persistent session. | 
| String | getStatus()Get The rule status. | 
| void | setForwardClientIp(String ForwardClientIp)Set Passes the client IP. | 
| void | setOriginPort(String OriginPort)Set The origin port, which can be:
A single port, such as 80
A port range, such as 81-82 | 
| void | setOriginType(String OriginType)Set Origin server type. | 
| void | setOriginValue(String[] OriginValue)Set Details of the origin server:
When OriginType is custom, it indicates one or more origin servers, such as ["8.8.8.8","9.9.9.9"] or OriginValue=["test.com"];When OriginType is loadbalancer, it indicates a single Cloud Load Balancer, such as ["lb-xdffsfasdfs"];
When OriginType is origins, it requires one and only one element, which represents an origin server group ID, such as ["origin-537f5b41-162a-11ed-abaa-525400c5da15"]. | 
| void | setPort(String[] Port)Set The access port, which can be:
A single port, such as 80
A port range, such as 81-82
Note that each rule can have up to 20 ports. | 
| void | setProto(String Proto)Set The protocol. | 
| void | setRuleId(String RuleId)Set The rule ID. | 
| void | setRuleTag(String RuleTag)Set Rule tag. | 
| void | setSessionPersist(Boolean SessionPersist)Set Whether to enable session persistence. | 
| void | setSessionPersistTime(Long SessionPersistTime)Set Duration for the persistent session. | 
| void | setStatus(String Status)Set The rule status. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ApplicationProxyRule()
public ApplicationProxyRule(ApplicationProxyRule source)
public String getProto()
public void setProto(String Proto)
Proto - The protocol. Values:
public String[] getPort()
public void setPort(String[] Port)
Port - The access port, which can be:
public String getOriginType()
public void setOriginType(String OriginType)
OriginType - Origin server type. Valid values:public String[] getOriginValue()
public void setOriginValue(String[] OriginValue)
OriginValue - Details of the origin server:
public String getRuleId()
public void setRuleId(String RuleId)
RuleId - The rule ID.public String getStatus()
public void setStatus(String Status)
Status - The rule status. Values:
public String getForwardClientIp()
public void setForwardClientIp(String ForwardClientIp)
ForwardClientIp - Passes the client IP. Values:
public Boolean getSessionPersist()
public void setSessionPersist(Boolean SessionPersist)
SessionPersist - Whether to enable session persistence. Values:
public Long getSessionPersistTime()
public void setSessionPersistTime(Long SessionPersistTime)
SessionPersistTime - Duration for the persistent session. The value takes effect only when `SessionPersist = true`.
Note: u200dThis field may return null, indicating that no valid values can be obtained.public String getOriginPort()
public void setOriginPort(String OriginPort)
OriginPort - The origin port, which can be:
public String getRuleTag()
public void setRuleTag(String RuleTag)
RuleTag - Rule tag.
Note: This field may return·`null`, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.