Class PolicyRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.postgres.v20170312.models.PolicyRule
-
public class PolicyRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description PolicyRule()
PolicyRule(PolicyRule 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
Get 策略,ACCEPT 或者 DROPString
getCidrIp()
Get 来源或目的 IP 或 IP 段,例如172.16.0.0/12String
getDescription()
Get 规则描述String
getIpProtocol()
Get 网络协议,支持 UDP、TCP 等String
getPortRange()
Get 端口void
setAction(String Action)
Set 策略,ACCEPT 或者 DROPvoid
setCidrIp(String CidrIp)
Set 来源或目的 IP 或 IP 段,例如172.16.0.0/12void
setDescription(String Description)
Set 规则描述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.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
PolicyRule
public PolicyRule()
-
PolicyRule
public PolicyRule(PolicyRule 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.
-
-
Method Detail
-
getAction
public String getAction()
Get 策略,ACCEPT 或者 DROP- Returns:
- Action 策略,ACCEPT 或者 DROP
-
setAction
public void setAction(String Action)
Set 策略,ACCEPT 或者 DROP- Parameters:
Action
- 策略,ACCEPT 或者 DROP
-
getCidrIp
public String getCidrIp()
Get 来源或目的 IP 或 IP 段,例如172.16.0.0/12- Returns:
- CidrIp 来源或目的 IP 或 IP 段,例如172.16.0.0/12
-
setCidrIp
public void setCidrIp(String CidrIp)
Set 来源或目的 IP 或 IP 段,例如172.16.0.0/12- Parameters:
CidrIp
- 来源或目的 IP 或 IP 段,例如172.16.0.0/12
-
getPortRange
public String getPortRange()
Get 端口- Returns:
- PortRange 端口
-
setPortRange
public void setPortRange(String PortRange)
Set 端口- Parameters:
PortRange
- 端口
-
getIpProtocol
public String getIpProtocol()
Get 网络协议,支持 UDP、TCP 等- Returns:
- IpProtocol 网络协议,支持 UDP、TCP 等
-
setIpProtocol
public void setIpProtocol(String IpProtocol)
Set 网络协议,支持 UDP、TCP 等- Parameters:
IpProtocol
- 网络协议,支持 UDP、TCP 等
-
getDescription
public String getDescription()
Get 规则描述- Returns:
- Description 规则描述
-
setDescription
public void setDescription(String Description)
Set 规则描述- Parameters:
Description
- 规则描述
-
-