@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnalysisAclRule extends Object implements Serializable, Cloneable
Describes a network access control (ACL) rule.
Constructor and Description |
---|
AnalysisAclRule() |
Modifier and Type | Method and Description |
---|---|
AnalysisAclRule |
clone() |
boolean |
equals(Object obj) |
String |
getCidr()
The IPv4 address range, in CIDR notation.
|
Boolean |
getEgress()
Indicates whether the rule is an outbound rule.
|
PortRange |
getPortRange()
The range of ports.
|
String |
getProtocol()
The protocol.
|
String |
getRuleAction()
Indicates whether to allow or deny traffic that matches the rule.
|
Integer |
getRuleNumber()
The rule number.
|
int |
hashCode() |
Boolean |
isEgress()
Indicates whether the rule is an outbound rule.
|
void |
setCidr(String cidr)
The IPv4 address range, in CIDR notation.
|
void |
setEgress(Boolean egress)
Indicates whether the rule is an outbound rule.
|
void |
setPortRange(PortRange portRange)
The range of ports.
|
void |
setProtocol(String protocol)
The protocol.
|
void |
setRuleAction(String ruleAction)
Indicates whether to allow or deny traffic that matches the rule.
|
void |
setRuleNumber(Integer ruleNumber)
The rule number.
|
String |
toString()
Returns a string representation of this object.
|
AnalysisAclRule |
withCidr(String cidr)
The IPv4 address range, in CIDR notation.
|
AnalysisAclRule |
withEgress(Boolean egress)
Indicates whether the rule is an outbound rule.
|
AnalysisAclRule |
withPortRange(PortRange portRange)
The range of ports.
|
AnalysisAclRule |
withProtocol(String protocol)
The protocol.
|
AnalysisAclRule |
withRuleAction(String ruleAction)
Indicates whether to allow or deny traffic that matches the rule.
|
AnalysisAclRule |
withRuleNumber(Integer ruleNumber)
The rule number.
|
public void setCidr(String cidr)
The IPv4 address range, in CIDR notation.
cidr
- The IPv4 address range, in CIDR notation.public String getCidr()
The IPv4 address range, in CIDR notation.
public AnalysisAclRule withCidr(String cidr)
The IPv4 address range, in CIDR notation.
cidr
- The IPv4 address range, in CIDR notation.public void setEgress(Boolean egress)
Indicates whether the rule is an outbound rule.
egress
- Indicates whether the rule is an outbound rule.public Boolean getEgress()
Indicates whether the rule is an outbound rule.
public AnalysisAclRule withEgress(Boolean egress)
Indicates whether the rule is an outbound rule.
egress
- Indicates whether the rule is an outbound rule.public Boolean isEgress()
Indicates whether the rule is an outbound rule.
public void setPortRange(PortRange portRange)
The range of ports.
portRange
- The range of ports.public PortRange getPortRange()
The range of ports.
public AnalysisAclRule withPortRange(PortRange portRange)
The range of ports.
portRange
- The range of ports.public void setProtocol(String protocol)
The protocol.
protocol
- The protocol.public String getProtocol()
The protocol.
public AnalysisAclRule withProtocol(String protocol)
The protocol.
protocol
- The protocol.public void setRuleAction(String ruleAction)
Indicates whether to allow or deny traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny traffic that matches the rule.public String getRuleAction()
Indicates whether to allow or deny traffic that matches the rule.
public AnalysisAclRule withRuleAction(String ruleAction)
Indicates whether to allow or deny traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny traffic that matches the rule.public void setRuleNumber(Integer ruleNumber)
The rule number.
ruleNumber
- The rule number.public Integer getRuleNumber()
The rule number.
public AnalysisAclRule withRuleNumber(Integer ruleNumber)
The rule number.
ruleNumber
- The rule number.public String toString()
toString
in class Object
Object.toString()
public AnalysisAclRule clone()