public class SecurityGroupRule extends AbstractModel
Constructor and Description |
---|
SecurityGroupRule() |
SecurityGroupRule(SecurityGroupRule 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 |
getDescription()
Get Description
|
String |
getDestContent()
Get Destination example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
|
String |
getDestType()
Get Access destination type.
|
String |
getEnable()
Get Rule status.
|
String |
getId()
Get The unique ID of the rule
|
String |
getOrderIndex()
Get Rule priority.
|
String |
getPort()
Get The port to apply access control rules.
|
String |
getProtocol()
Get Protocol.
|
String |
getRuleAction()
Get The action that Cloud Firewall performs on the traffic.
|
String |
getServiceTemplateId()
Get Parameter template ID of port and protocol type; mutually exclusive with Protocol and Port
Note: This field may return `null`, indicating that no valid value was found.
|
String |
getSourceContent()
Get Source example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
|
String |
getSourceType()
Get Access source type.
|
void |
setDescription(String Description)
Set Description
|
void |
setDestContent(String DestContent)
Set Destination example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
|
void |
setDestType(String DestType)
Set Access destination type.
|
void |
setEnable(String Enable)
Set Rule status.
|
void |
setId(String Id)
Set The unique ID of the rule
|
void |
setOrderIndex(String OrderIndex)
Set Rule priority.
|
void |
setPort(String Port)
Set The port to apply access control rules.
|
void |
setProtocol(String Protocol)
Set Protocol.
|
void |
setRuleAction(String RuleAction)
Set The action that Cloud Firewall performs on the traffic.
|
void |
setServiceTemplateId(String ServiceTemplateId)
Set Parameter template ID of port and protocol type; mutually exclusive with Protocol and Port
Note: This field may return `null`, indicating that no valid value was found.
|
void |
setSourceContent(String SourceContent)
Set Source example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
|
void |
setSourceType(String SourceType)
Set Access source type.
|
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 SecurityGroupRule()
public SecurityGroupRule(SecurityGroupRule source)
public String getSourceContent()
public void setSourceContent(String SourceContent)
SourceContent
- Source example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)public String getSourceType()
public void setSourceType(String SourceType)
SourceType
- Access source type. Valid values: net|template|instance|resourcegroup|tag|regionpublic String getDestContent()
public void setDestContent(String DestContent)
DestContent
- Destination example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)public String getDestType()
public void setDestType(String DestType)
DestType
- Access destination type. Valid values: net|template|instance|resourcegroup|tag|regionpublic String getRuleAction()
public void setRuleAction(String RuleAction)
RuleAction
- The action that Cloud Firewall performs on the traffic. Valid values:
accept: allow
drop: denypublic String getDescription()
public void setDescription(String Description)
Description
- Descriptionpublic String getOrderIndex()
public void setOrderIndex(String OrderIndex)
OrderIndex
- Rule priority. -1: lowest; 1: highestpublic String getProtocol()
public void setProtocol(String Protocol)
Protocol
- Protocol. TCP/UDP/ICMP/ANY
Note: This field may return `null`, indicating that no valid value was found.public String getPort()
public void setPort(String Port)
Port
- The port to apply access control rules. Valid values:
-1/-1: all ports
80: port 80
Note: This field may return `null`, indicating that no valid value was found.public String getServiceTemplateId()
public void setServiceTemplateId(String ServiceTemplateId)
ServiceTemplateId
- Parameter template ID of port and protocol type; mutually exclusive with Protocol and Port
Note: This field may return `null`, indicating that no valid value was found.public String getId()
public void setId(String Id)
Id
- The unique ID of the rulepublic String getEnable()
public void setEnable(String Enable)
Enable
- Rule status. true: enabled; false: disabledCopyright © 2023. All rights reserved.