Class SecurityPolicyRuleIn
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.gaap.v20180529.models.SecurityPolicyRuleIn
-
public class SecurityPolicyRuleIn extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SecurityPolicyRuleIn()
SecurityPolicyRuleIn(SecurityPolicyRuleIn 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)或拒绝(DROP)String
getAliasName()
Get 规则别名String
getDestPortRange()
Get 目标端口,填写格式举例: 单个端口: 80 多个端口: 80,443 连续端口: 3306-20000 所有端口: ALLString
getProtocol()
Get 协议:TCP或UDP,ALL表示所有协议String
getSourceCidr()
Get 请求来源IP或IP段。void
setAction(String Action)
Set 策略:允许(ACCEPT)或拒绝(DROP)void
setAliasName(String AliasName)
Set 规则别名void
setDestPortRange(String DestPortRange)
Set 目标端口,填写格式举例: 单个端口: 80 多个端口: 80,443 连续端口: 3306-20000 所有端口: ALLvoid
setProtocol(String Protocol)
Set 协议:TCP或UDP,ALL表示所有协议void
setSourceCidr(String SourceCidr)
Set 请求来源IP或IP段。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
-
SecurityPolicyRuleIn
public SecurityPolicyRuleIn()
-
SecurityPolicyRuleIn
public SecurityPolicyRuleIn(SecurityPolicyRuleIn 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
-
getSourceCidr
public String getSourceCidr()
Get 请求来源IP或IP段。- Returns:
- SourceCidr 请求来源IP或IP段。
-
setSourceCidr
public void setSourceCidr(String SourceCidr)
Set 请求来源IP或IP段。- Parameters:
SourceCidr
- 请求来源IP或IP段。
-
getAction
public String getAction()
Get 策略:允许(ACCEPT)或拒绝(DROP)- Returns:
- Action 策略:允许(ACCEPT)或拒绝(DROP)
-
setAction
public void setAction(String Action)
Set 策略:允许(ACCEPT)或拒绝(DROP)- Parameters:
Action
- 策略:允许(ACCEPT)或拒绝(DROP)
-
getAliasName
public String getAliasName()
Get 规则别名- Returns:
- AliasName 规则别名
-
setAliasName
public void setAliasName(String AliasName)
Set 规则别名- Parameters:
AliasName
- 规则别名
-
getProtocol
public String getProtocol()
Get 协议:TCP或UDP,ALL表示所有协议- Returns:
- Protocol 协议:TCP或UDP,ALL表示所有协议
-
setProtocol
public void setProtocol(String Protocol)
Set 协议:TCP或UDP,ALL表示所有协议- Parameters:
Protocol
- 协议:TCP或UDP,ALL表示所有协议
-
getDestPortRange
public String getDestPortRange()
Get 目标端口,填写格式举例: 单个端口: 80 多个端口: 80,443 连续端口: 3306-20000 所有端口: ALL- Returns:
- DestPortRange 目标端口,填写格式举例: 单个端口: 80 多个端口: 80,443 连续端口: 3306-20000 所有端口: ALL
-
setDestPortRange
public void setDestPortRange(String DestPortRange)
Set 目标端口,填写格式举例: 单个端口: 80 多个端口: 80,443 连续端口: 3306-20000 所有端口: ALL- Parameters:
DestPortRange
- 目标端口,填写格式举例: 单个端口: 80 多个端口: 80,443 连续端口: 3306-20000 所有端口: ALL
-
-