public class Inbound extends AbstractModel
Constructor and Description |
---|
Inbound() |
Inbound(Inbound 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 |
getAction()
Get 策略,ACCEPT 或者 DROP
|
String |
getCidrIp()
Get 来源 IP 或 IP 段,例如192.168.0.0/16
|
String |
getDesc()
Get 规则描述
|
String |
getDir()
Get 规则限定的方向,进站规则为 INPUT
|
String |
getIpProtocol()
Get 网络协议,支持 UDP、TCP 等
|
String |
getPortRange()
Get 端口
|
void |
setAction(String Action)
Set 策略,ACCEPT 或者 DROP
|
void |
setCidrIp(String CidrIp)
Set 来源 IP 或 IP 段,例如192.168.0.0/16
|
void |
setDesc(String Desc)
Set 规则描述
|
void |
setDir(String Dir)
Set 规则限定的方向,进站规则为 INPUT
|
void |
setIpProtocol(String IpProtocol)
Set 网络协议,支持 UDP、TCP 等
|
void |
setPortRange(String PortRange)
Set 端口
|
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, toJsonString
public Inbound()
public Inbound(Inbound source)
public String getAction()
public void setAction(String Action)
Action
- 策略,ACCEPT 或者 DROPpublic String getCidrIp()
public void setCidrIp(String CidrIp)
CidrIp
- 来源 IP 或 IP 段,例如192.168.0.0/16public String getPortRange()
public void setPortRange(String PortRange)
PortRange
- 端口public String getIpProtocol()
public void setIpProtocol(String IpProtocol)
IpProtocol
- 网络协议,支持 UDP、TCP 等public String getDir()
public void setDir(String Dir)
Dir
- 规则限定的方向,进站规则为 INPUTpublic String getDesc()
public void setDesc(String Desc)
Desc
- 规则描述Copyright © 2021. All rights reserved.