public class L4ProxyRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
L4ProxyRule() |
L4ProxyRule(L4ProxyRule 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 |
getBuId()
Get BuID.
|
String |
getClientIPPassThroughMode()
Get Transmission of the client IP address.
|
String |
getOriginPortRange()
Get Origin server port, which can be set as follows:A single port, such as 80;
A range of ports, such as 81-85, representing ports 81, 82, 83, 84, 85.
|
String |
getOriginType()
Get Origin server type.
|
String[] |
getOriginValue()
Get Origin server address.
|
String[] |
getPortRange()
Get Forwarding port, which can be set as follows:
A single port, such as 80;
A range of ports, such as 81-85, representing ports 81, 82, 83, 84, 85.
Note: This parameter must be filled in when L4ProxyRule is used as an input parameter in CreateL4ProxyRules; it is optional when L4ProxyRule is used as an input parameter in ModifyL4ProxyRules.
|
String |
getProtocol()
Get Forwarding protocol.
|
String |
getRuleId()
Get Forwarding rule ID.
|
String |
getRuleTag()
Get Rule tag.
|
String |
getSessionPersist()
Get Specifies whether to enable session persistence.
|
Long |
getSessionPersistTime()
Get Session persistence period, with a range of 30-3600, measured in seconds.
|
String |
getStatus()
Get Rule status.
|
void |
setBuId(String BuId)
Set BuID.
|
void |
setClientIPPassThroughMode(String ClientIPPassThroughMode)
Set Transmission of the client IP address.
|
void |
setOriginPortRange(String OriginPortRange)
Set Origin server port, which can be set as follows:A single port, such as 80;
A range of ports, such as 81-85, representing ports 81, 82, 83, 84, 85.
|
void |
setOriginType(String OriginType)
Set Origin server type.
|
void |
setOriginValue(String[] OriginValue)
Set Origin server address.
|
void |
setPortRange(String[] PortRange)
Set Forwarding port, which can be set as follows:
A single port, such as 80;
A range of ports, such as 81-85, representing ports 81, 82, 83, 84, 85.
Note: This parameter must be filled in when L4ProxyRule is used as an input parameter in CreateL4ProxyRules; it is optional when L4ProxyRule is used as an input parameter in ModifyL4ProxyRules.
|
void |
setProtocol(String Protocol)
Set Forwarding protocol.
|
void |
setRuleId(String RuleId)
Set Forwarding rule ID.
|
void |
setRuleTag(String RuleTag)
Set Rule tag.
|
void |
setSessionPersist(String SessionPersist)
Set Specifies whether to enable session persistence.
|
void |
setSessionPersistTime(Long SessionPersistTime)
Set Session persistence period, with a range of 30-3600, measured in seconds.
|
void |
setStatus(String Status)
Set 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, toJsonString
public L4ProxyRule()
public L4ProxyRule(L4ProxyRule source)
public String getRuleId()
public void setRuleId(String RuleId)
RuleId
- Forwarding rule ID.
Note: Do not fill in this parameter when L4ProxyRule is used as an input parameter in CreateL4ProxyRules; it must be filled in when L4ProxyRule is used as an input parameter in ModifyL4ProxyRules.public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- Forwarding protocol. Valid values:
public String[] getPortRange()
public void setPortRange(String[] PortRange)
PortRange
- Forwarding port, which can be set as follows:
public String getOriginType()
public void setOriginType(String OriginType)
OriginType
- Origin server type. Valid values:
public String[] getOriginValue()
public void setOriginValue(String[] OriginValue)
OriginValue
- Origin server address.
public String getOriginPortRange()
public void setOriginPortRange(String OriginPortRange)
OriginPortRange
- Origin server port, which can be set as follows:public String getClientIPPassThroughMode()
public void setClientIPPassThroughMode(String ClientIPPassThroughMode)
ClientIPPassThroughMode
- Transmission of the client IP address. Valid values:public String getSessionPersist()
public void setSessionPersist(String SessionPersist)
SessionPersist
- Specifies whether to enable session persistence. Valid values:
public Long getSessionPersistTime()
public void setSessionPersistTime(Long SessionPersistTime)
SessionPersistTime
- Session persistence period, with a range of 30-3600, measured in seconds.
Note: This parameter is optional when L4ProxyRule is used as an input parameter in CreateL4ProxyRules. It is valid only when SessionPersist is set to on and defaults to 3600 if not specified. It is optional when L4ProxyRule is used as an input parameter in ModifyL4ProxyRules. If not specified, it will retain its existing value.public String getRuleTag()
public void setRuleTag(String RuleTag)
RuleTag
- Rule tag. Accepts 1-50 arbitrary characters.
Note: This parameter is optional when L4ProxyRule is used as an input parameter in CreateL4ProxyRules; it is optional when L4ProxyRule is used as an input parameter in ModifyL4ProxyRules. If not specified, it will retain its existing value.public String getStatus()
public void setStatus(String Status)
Status
- Rule status. Valid values:public String getBuId()
public void setBuId(String BuId)
BuId
- BuID.Copyright © 2024. All rights reserved.