Class SecurityGroupPolicy
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.sqlserver.v20180328.models.SecurityGroupPolicy
-
public class SecurityGroupPolicy extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SecurityGroupPolicy()
SecurityGroupPolicy(SecurityGroupPolicy 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
getDir()
Get 规则限定的方向,OUTPUT-出战规则 INPUT-进站规则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
setDir(String Dir)
Set 规则限定的方向,OUTPUT-出战规则 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.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
SecurityGroupPolicy
public SecurityGroupPolicy()
-
SecurityGroupPolicy
public SecurityGroupPolicy(SecurityGroupPolicy 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等
-
getDir
public String getDir()
Get 规则限定的方向,OUTPUT-出战规则 INPUT-进站规则- Returns:
- Dir 规则限定的方向,OUTPUT-出战规则 INPUT-进站规则
-
setDir
public void setDir(String Dir)
Set 规则限定的方向,OUTPUT-出战规则 INPUT-进站规则- Parameters:
Dir
- 规则限定的方向,OUTPUT-出战规则 INPUT-进站规则
-
-