public class NetworkAclEntry extends Object implements Serializable
Describes an entry in a network ACL.
Constructor and Description |
---|
NetworkAclEntry() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCidrBlock()
The network range to allow or deny, in CIDR notation.
|
Boolean |
getEgress()
Indicates whether the rule is an egress rule (applied to traffic
leaving the subnet).
|
IcmpTypeCode |
getIcmpTypeCode()
ICMP protocol: The ICMP type and code.
|
PortRange |
getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
String |
getProtocol()
The protocol.
|
String |
getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
|
Integer |
getRuleNumber()
The rule number for the entry.
|
int |
hashCode() |
Boolean |
isEgress()
Indicates whether the rule is an egress rule (applied to traffic
leaving the subnet).
|
void |
setCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation.
|
void |
setEgress(Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic
leaving the subnet).
|
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
void |
setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
void |
setProtocol(String protocol)
The protocol.
|
void |
setRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
void |
setRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
void |
setRuleNumber(Integer ruleNumber)
The rule number for the entry.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NetworkAclEntry |
withCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation.
|
NetworkAclEntry |
withEgress(Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic
leaving the subnet).
|
NetworkAclEntry |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
NetworkAclEntry |
withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
NetworkAclEntry |
withProtocol(String protocol)
The protocol.
|
NetworkAclEntry |
withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
NetworkAclEntry |
withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
NetworkAclEntry |
withRuleNumber(Integer ruleNumber)
The rule number for the entry.
|
public Integer getRuleNumber()
public void setRuleNumber(Integer ruleNumber)
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending
order by rule number.public NetworkAclEntry withRuleNumber(Integer ruleNumber)
Returns a reference to this object so that method calls can be chained together.
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending
order by rule number.public String getProtocol()
-1
means all protocols.-1
means all protocols.public void setProtocol(String protocol)
-1
means all protocols.protocol
- The protocol. A value of -1
means all protocols.public NetworkAclEntry withProtocol(String protocol)
-1
means all protocols.
Returns a reference to this object so that method calls can be chained together.
protocol
- The protocol. A value of -1
means all protocols.public String getRuleAction()
Constraints:
Allowed Values: allow, deny
RuleAction
public void setRuleAction(String ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public NetworkAclEntry withRuleAction(String ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public void setRuleAction(RuleAction ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public NetworkAclEntry withRuleAction(RuleAction ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public Boolean isEgress()
public void setEgress(Boolean egress)
egress
- Indicates whether the rule is an egress rule (applied to traffic
leaving the subnet).public NetworkAclEntry withEgress(Boolean egress)
Returns a reference to this object so that method calls can be chained together.
egress
- Indicates whether the rule is an egress rule (applied to traffic
leaving the subnet).public Boolean getEgress()
public String getCidrBlock()
public void setCidrBlock(String cidrBlock)
cidrBlock
- The network range to allow or deny, in CIDR notation.public NetworkAclEntry withCidrBlock(String cidrBlock)
Returns a reference to this object so that method calls can be chained together.
cidrBlock
- The network range to allow or deny, in CIDR notation.public IcmpTypeCode getIcmpTypeCode()
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
icmpTypeCode
- ICMP protocol: The ICMP type and code.public NetworkAclEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Returns a reference to this object so that method calls can be chained together.
icmpTypeCode
- ICMP protocol: The ICMP type and code.public PortRange getPortRange()
public void setPortRange(PortRange portRange)
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public NetworkAclEntry withPortRange(PortRange portRange)
Returns a reference to this object so that method calls can be chained together.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.