public class L4RuleEntry extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| L4RuleEntry() | 
| L4RuleEntry(L4RuleEntry 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 | 
|---|---|
| Long | getKeepEnable()Get 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]; | 
| Long | getKeepTime()Get 会话保持时间,单位秒 | 
| Long | getLbType()Get 负载均衡方式,取值[1(加权轮询),2(源IP hash)] | 
| String | getProtocol()Get 转发协议,取值[TCP, UDP] | 
| Long | getRemoveSwitch()Get 移除水印状态,取值[0(关闭),1(开启)] | 
| String | getRuleId()Get 规则ID | 
| String | getRuleName()Get 规则描述 | 
| L4RuleSource[] | getSourceList()Get 回源列表 | 
| Long | getSourcePort()Get 源站端口 | 
| Long | getSourceType()Get 回源方式,取值[1(域名回源),2(IP回源)] | 
| Long | getVirtualPort()Get 转发端口 | 
| void | setKeepEnable(Long KeepEnable)Set 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]; | 
| void | setKeepTime(Long KeepTime)Set 会话保持时间,单位秒 | 
| void | setLbType(Long LbType)Set 负载均衡方式,取值[1(加权轮询),2(源IP hash)] | 
| void | setProtocol(String Protocol)Set 转发协议,取值[TCP, UDP] | 
| void | setRemoveSwitch(Long RemoveSwitch)Set 移除水印状态,取值[0(关闭),1(开启)] | 
| void | setRuleId(String RuleId)Set 规则ID | 
| void | setRuleName(String RuleName)Set 规则描述 | 
| void | setSourceList(L4RuleSource[] SourceList)Set 回源列表 | 
| void | setSourcePort(Long SourcePort)Set 源站端口 | 
| void | setSourceType(Long SourceType)Set 回源方式,取值[1(域名回源),2(IP回源)] | 
| void | setVirtualPort(Long VirtualPort)Set 转发端口 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic L4RuleEntry()
public L4RuleEntry(L4RuleEntry source)
public String getProtocol()
public void setProtocol(String Protocol)
Protocol - 转发协议,取值[TCP, UDP]public Long getVirtualPort()
public void setVirtualPort(Long VirtualPort)
VirtualPort - 转发端口public Long getSourcePort()
public void setSourcePort(Long SourcePort)
SourcePort - 源站端口public Long getSourceType()
public void setSourceType(Long SourceType)
SourceType - 回源方式,取值[1(域名回源),2(IP回源)]public Long getKeepTime()
public void setKeepTime(Long KeepTime)
KeepTime - 会话保持时间,单位秒public L4RuleSource[] getSourceList()
public void setSourceList(L4RuleSource[] SourceList)
SourceList - 回源列表public Long getLbType()
public void setLbType(Long LbType)
LbType - 负载均衡方式,取值[1(加权轮询),2(源IP hash)]public Long getKeepEnable()
public void setKeepEnable(Long KeepEnable)
KeepEnable - 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];public String getRuleId()
public void setRuleId(String RuleId)
RuleId - 规则IDpublic String getRuleName()
public void setRuleName(String RuleName)
RuleName - 规则描述public Long getRemoveSwitch()
public void setRemoveSwitch(Long RemoveSwitch)
RemoveSwitch - 移除水印状态,取值[0(关闭),1(开启)]Copyright © 2025. All rights reserved.