public class NetworkAclEntry
extends java.lang.Object
implements java.io.Serializable
Describes an entry in a network ACL.
| Constructor and Description | 
|---|
| NetworkAclEntry() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| java.lang.String | getCidrBlock()The network range to allow or deny, in CIDR notation. | 
| java.lang.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. | 
| java.lang.String | getProtocol()The protocol. | 
| java.lang.String | getRuleAction()Indicates whether to allow or deny the traffic that matches the rule. | 
| java.lang.Integer | getRuleNumber()The rule number for the entry. | 
| int | hashCode() | 
| java.lang.Boolean | isEgress()Indicates whether the rule is an egress rule (applied to traffic
 leaving the subnet). | 
| void | setCidrBlock(java.lang.String cidrBlock)The network range to allow or deny, in CIDR notation. | 
| void | setEgress(java.lang.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(java.lang.String protocol)The protocol. | 
| void | setRuleAction(RuleAction ruleAction)Indicates whether to allow or deny the traffic that matches the rule. | 
| void | setRuleAction(java.lang.String ruleAction)Indicates whether to allow or deny the traffic that matches the rule. | 
| void | setRuleNumber(java.lang.Integer ruleNumber)The rule number for the entry. | 
| java.lang.String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| NetworkAclEntry | withCidrBlock(java.lang.String cidrBlock)The network range to allow or deny, in CIDR notation. | 
| NetworkAclEntry | withEgress(java.lang.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(java.lang.String protocol)The protocol. | 
| NetworkAclEntry | withRuleAction(RuleAction ruleAction)Indicates whether to allow or deny the traffic that matches the rule. | 
| NetworkAclEntry | withRuleAction(java.lang.String ruleAction)Indicates whether to allow or deny the traffic that matches the rule. | 
| NetworkAclEntry | withRuleNumber(java.lang.Integer ruleNumber)The rule number for the entry. | 
public java.lang.Integer getRuleNumber()
public void setRuleNumber(java.lang.Integer ruleNumber)
ruleNumber - The rule number for the entry. ACL entries are processed in ascending
         order by rule number.public NetworkAclEntry withRuleNumber(java.lang.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 java.lang.String getProtocol()
-1 means all protocols.-1 means all protocols.public void setProtocol(java.lang.String protocol)
-1 means all protocols.protocol - The protocol. A value of -1 means all protocols.public NetworkAclEntry withProtocol(java.lang.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 java.lang.String getRuleAction()
 Constraints:
 Allowed Values: allow, deny
RuleActionpublic void setRuleAction(java.lang.String ruleAction)
 Constraints:
 Allowed Values: allow, deny
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.RuleActionpublic NetworkAclEntry withRuleAction(java.lang.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.RuleActionpublic void setRuleAction(RuleAction ruleAction)
 Constraints:
 Allowed Values: allow, deny
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.RuleActionpublic 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.RuleActionpublic java.lang.Boolean isEgress()
public void setEgress(java.lang.Boolean egress)
egress - Indicates whether the rule is an egress rule (applied to traffic
         leaving the subnet).public NetworkAclEntry withEgress(java.lang.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 java.lang.Boolean getEgress()
public java.lang.String getCidrBlock()
public void setCidrBlock(java.lang.String cidrBlock)
cidrBlock - The network range to allow or deny, in CIDR notation.public NetworkAclEntry withCidrBlock(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.