public class Layer4Rule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Layer4Rule() | 
| Layer4Rule(Layer4Rule 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 | getBackendPort()Get 源站端口,取值1~65535 | 
| Long | getFrontendPort()Get 转发端口,取值1~65535 | 
| RuleInstanceRelation[] | getInstanceDetailRule()Get 规则所属的资源实例 | 
| InstanceRelation[] | getInstanceDetails()Get 资源实例 | 
| String | getProtocol()Get 转发协议,取值[
TCP(TCP协议)
UDP(UDP协议)
] | 
| SourceServer[] | getRealServers()Get 源站列表 | 
| void | setBackendPort(Long BackendPort)Set 源站端口,取值1~65535 | 
| void | setFrontendPort(Long FrontendPort)Set 转发端口,取值1~65535 | 
| void | setInstanceDetailRule(RuleInstanceRelation[] InstanceDetailRule)Set 规则所属的资源实例 | 
| void | setInstanceDetails(InstanceRelation[] InstanceDetails)Set 资源实例 | 
| void | setProtocol(String Protocol)Set 转发协议,取值[
TCP(TCP协议)
UDP(UDP协议)
] | 
| void | setRealServers(SourceServer[] RealServers)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 Layer4Rule()
public Layer4Rule(Layer4Rule source)
public Long getBackendPort()
public void setBackendPort(Long BackendPort)
BackendPort - 源站端口,取值1~65535public Long getFrontendPort()
public void setFrontendPort(Long FrontendPort)
FrontendPort - 转发端口,取值1~65535public String getProtocol()
public void setProtocol(String Protocol)
Protocol - 转发协议,取值[
TCP(TCP协议)
UDP(UDP协议)
]public SourceServer[] getRealServers()
public void setRealServers(SourceServer[] RealServers)
RealServers - 源站列表public InstanceRelation[] getInstanceDetails()
public void setInstanceDetails(InstanceRelation[] InstanceDetails)
InstanceDetails - 资源实例public RuleInstanceRelation[] getInstanceDetailRule()
public void setInstanceDetailRule(RuleInstanceRelation[] InstanceDetailRule)
InstanceDetailRule - 规则所属的资源实例Copyright © 2025. All rights reserved.