@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkAclEntry extends Object implements Serializable, Cloneable
Describes an entry in a network ACL.
Constructor and Description |
---|
NetworkAclEntry() |
Modifier and Type | Method and Description |
---|---|
NetworkAclEntry |
clone() |
boolean |
equals(Object obj) |
String |
getCidrBlock()
The IPv4 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.
|
String |
getIpv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation.
|
PortRange |
getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
String |
getProtocol()
The protocol number.
|
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 IPv4 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 |
setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
|
void |
setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
void |
setProtocol(String protocol)
The protocol number.
|
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.
|
NetworkAclEntry |
withCidrBlock(String cidrBlock)
The IPv4 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 |
withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
|
NetworkAclEntry |
withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
NetworkAclEntry |
withProtocol(String protocol)
The protocol number.
|
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 void setCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation.
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation.public String getCidrBlock()
The IPv4 network range to allow or deny, in CIDR notation.
public NetworkAclEntry withCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation.
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation.public void setEgress(Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
egress
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).public Boolean getEgress()
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
public NetworkAclEntry withEgress(Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
egress
- Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).public Boolean isEgress()
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
icmpTypeCode
- ICMP protocol: The ICMP type and code.public IcmpTypeCode getIcmpTypeCode()
ICMP protocol: The ICMP type and code.
public NetworkAclEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
icmpTypeCode
- ICMP protocol: The ICMP type and code.public void setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation.public String getIpv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation.
public NetworkAclEntry withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation.public void setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
public NetworkAclEntry withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public void setProtocol(String protocol)
The protocol number. A value of "-1" means all protocols.
protocol
- The protocol number. A value of "-1" means all protocols.public String getProtocol()
The protocol number. A value of "-1" means all protocols.
public NetworkAclEntry withProtocol(String protocol)
The protocol number. A value of "-1" means all protocols.
protocol
- The protocol number. A value of "-1" means all protocols.public void setRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public String getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
RuleAction
public NetworkAclEntry withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public void setRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public NetworkAclEntry withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public void setRuleNumber(Integer ruleNumber)
The rule number for the entry. ACL entries are processed in ascending order by rule number.
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending order by rule number.public Integer getRuleNumber()
The rule number for the entry. ACL entries are processed in ascending order by rule number.
public NetworkAclEntry withRuleNumber(Integer ruleNumber)
The rule number for the entry. ACL entries are processed in ascending order by rule number.
ruleNumber
- The rule number for the entry. ACL entries are processed in ascending order by rule number.public String toString()
toString
in class Object
Object.toString()
public NetworkAclEntry clone()