Class NetworkAclEntry
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an entry in a network ACL.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The network range to allow or deny, in CIDR notation.Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).ICMP protocol: The ICMP type and code.TCP or UDP protocols: The range of ports the rule applies to.The protocol.Indicates whether to allow or deny the traffic that matches the rule.The rule number for the entry.int
hashCode()
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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withCidrBlock
(String cidrBlock) The network range to allow or deny, in CIDR notation.withEgress
(Boolean egress) Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).withIcmpTypeCode
(IcmpTypeCode icmpTypeCode) ICMP protocol: The ICMP type and code.withPortRange
(PortRange portRange) TCP or UDP protocols: The range of ports the rule applies to.withProtocol
(String protocol) The protocol.withRuleAction
(RuleAction ruleAction) Indicates whether to allow or deny the traffic that matches the rule.withRuleAction
(String ruleAction) Indicates whether to allow or deny the traffic that matches the rule.withRuleNumber
(Integer ruleNumber) The rule number for the entry.
-
Constructor Details
-
NetworkAclEntry
public NetworkAclEntry()
-
-
Method Details
-
setRuleNumber
The rule number for the entry. ACL entries are processed in ascending order by rule number.
- Parameters:
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending order by rule number.
-
getRuleNumber
The rule number for the entry. ACL entries are processed in ascending order by rule number.
- Returns:
- The rule number for the entry. ACL entries are processed in ascending order by rule number.
-
withRuleNumber
The rule number for the entry. ACL entries are processed in ascending order by rule number.
- Parameters:
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending order by rule number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
The protocol. A value of
-1
means all protocols.- Parameters:
protocol
- The protocol. A value of-1
means all protocols.
-
getProtocol
The protocol. A value of
-1
means all protocols.- Returns:
- The protocol. A value of
-1
means all protocols.
-
withProtocol
The protocol. A value of
-1
means all protocols.- Parameters:
protocol
- The protocol. A value of-1
means all protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- See Also:
-
getRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Returns:
- Indicates whether to allow or deny the traffic that matches the rule.
- See Also:
-
withRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- See Also:
-
withRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setEgress
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
- Parameters:
egress
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
-
getEgress
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
- Returns:
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
-
withEgress
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
- Parameters:
egress
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEgress
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
- Returns:
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
-
setCidrBlock
The network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation.
-
getCidrBlock
The network range to allow or deny, in CIDR notation.
- Returns:
- The network range to allow or deny, in CIDR notation.
-
withCidrBlock
The network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIcmpTypeCode
ICMP protocol: The ICMP type and code.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code.
-
getIcmpTypeCode
ICMP protocol: The ICMP type and code.
- Returns:
- ICMP protocol: The ICMP type and code.
-
withIcmpTypeCode
ICMP protocol: The ICMP type and code.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPortRange
TCP or UDP protocols: The range of ports the rule applies to.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to.
-
getPortRange
TCP or UDP protocols: The range of ports the rule applies to.
- Returns:
- TCP or UDP protocols: The range of ports the rule applies to.
-
withPortRange
TCP or UDP protocols: The range of ports the rule applies to.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-