public class CreateNatRuleItem extends AbstractModel
Constructor and Description |
---|
CreateNatRuleItem() |
CreateNatRuleItem(CreateNatRuleItem 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
|
Long |
getDirection()
Get Rule direction.
|
String |
getEnable()
Get Rule status.
|
Long |
getOrderIndex()
Get Rule sequence number
|
String |
getPort()
Get The port of the access control rule.
|
String |
getProtocol()
Get Protocol.
|
String |
getRuleAction()
Get Specify how the CFW instance deals with the traffic hit the access control rule.
|
String |
getSourceContent()
Get Access source.
|
String |
getSourceType()
Get Access source type.
|
String |
getTargetContent()
Get Access target.
|
String |
getTargetType()
Get Access target type.
|
Long |
getUuid()
Get The unique ID of the rule, which is not required when you create a rule.
|
void |
setDescription(String Description)
Set Description
|
void |
setDirection(Long Direction)
Set Rule direction.
|
void |
setEnable(String Enable)
Set Rule status.
|
void |
setOrderIndex(Long OrderIndex)
Set Rule sequence number
|
void |
setPort(String Port)
Set The port of the access control rule.
|
void |
setProtocol(String Protocol)
Set Protocol.
|
void |
setRuleAction(String RuleAction)
Set Specify how the CFW instance deals with the traffic hit the access control rule.
|
void |
setSourceContent(String SourceContent)
Set Access source.
|
void |
setSourceType(String SourceType)
Set Access source type.
|
void |
setTargetContent(String TargetContent)
Set Access target.
|
void |
setTargetType(String TargetType)
Set Access target type.
|
void |
setUuid(Long Uuid)
Set The unique ID of the rule, which is not required when you create a rule.
|
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 CreateNatRuleItem()
public CreateNatRuleItem(CreateNatRuleItem source)
public String getSourceContent()
public void setSourceContent(String SourceContent)
SourceContent
- Access source. Example: `net: IP/CIDR(192.168.0.2)`public String getSourceType()
public void setSourceType(String SourceType)
SourceType
- Access source type. Values for inbound rules: `ip`, `net`, `template`, and `location`. Values for outbound rules: `ip`, `net`, `template`, `instance`, `group`, and `tag`.public String getTargetContent()
public void setTargetContent(String TargetContent)
TargetContent
- Access target. Example: `net: IP/CIDR(192.168.0.2); domain: domain name rule, e.g., *.qq.compublic String getTargetType()
public void setTargetType(String TargetType)
TargetType
- Access target type. Values for inbound rules: `ip`, `net`, `template`, `instance`, `group`, and `tag`. Values for outbound rules: `ip`, `net`, `domain`, `template`, and `location`.public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- Protocol. Values: `TCP`, `UDP`, `ICMP`, `ANY`, `HTTP`, `HTTPS`, `HTTP/HTTPS`, `SMTP`, `SMTPS`, `SMTP/SMTPS`, `FTP`, and `DNS`.public String getRuleAction()
public void setRuleAction(String RuleAction)
RuleAction
- Specify how the CFW instance deals with the traffic hit the access control rule. Values: `accept` (allow), `drop` (reject), and `log` (observe).public String getPort()
public void setPort(String Port)
Port
- The port of the access control rule. Values: `-1/-1` (all ports) and `80` (Port 80)public Long getDirection()
public void setDirection(Long Direction)
Direction
- Rule direction. Values: `1` (Inbound) and `0` (Outbound)public Long getOrderIndex()
public void setOrderIndex(Long OrderIndex)
OrderIndex
- Rule sequence numberpublic String getEnable()
public void setEnable(String Enable)
Enable
- Rule status. `true` (Enabled); `false` (Disabled)public Long getUuid()
public void setUuid(Long Uuid)
Uuid
- The unique ID of the rule, which is not required when you create a rule.public String getDescription()
public void setDescription(String Description)
Description
- DescriptionCopyright © 2023. All rights reserved.