@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkACLEntry extends Object implements Serializable, Cloneable, StructuredPojo
The network access control list (ACL) is an optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more subnets. The entry is a set of numbered ingress and egress rules that determine whether a packet should be allowed in or out of a subnet associated with the ACL. We process the entries in the ACL according to the rule numbers, in ascending order.
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.
|
IcmpTypeCode |
getIcmpTypeCode()
Defines the ICMP protocol that consists of the ICMP type and code.
|
PortRange |
getPortRange()
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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation.
|
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Defines the ICMP protocol that consists of the ICMP type and code.
|
void |
setPortRange(PortRange portRange)
The range of ports the rule applies to.
|
void |
setProtocol(String protocol)
The protocol number.
|
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 |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Defines the ICMP protocol that consists of the ICMP type and code.
|
NetworkACLEntry |
withPortRange(PortRange portRange)
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 setRuleNumber(Integer ruleNumber)
The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
ruleNumber
- The rule number for the entry. For example 100. All the network ACL entries are processed in
ascending order by rule number.public Integer getRuleNumber()
The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
public NetworkACLEntry withRuleNumber(Integer ruleNumber)
The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
ruleNumber
- The rule number for the entry. For example 100. All the network ACL entries are processed in
ascending order by rule number.public void setProtocol(String protocol)
The protocol number. A value of -1 means all the protocols.
protocol
- The protocol number. A value of -1 means all the protocols.public String getProtocol()
The protocol number. A value of -1 means all the protocols.
public NetworkACLEntry withProtocol(String protocol)
The protocol number. A value of -1 means all the protocols.
protocol
- The protocol number. A value of -1 means all the 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 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 setPortRange(PortRange portRange)
The range of ports the rule applies to.
portRange
- The range of ports the rule applies to.public PortRange getPortRange()
The range of ports the rule applies to.
public NetworkACLEntry withPortRange(PortRange portRange)
The range of ports the rule applies to.
portRange
- The range of ports the rule applies to.public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Defines the ICMP protocol that consists of the ICMP type and code.
icmpTypeCode
- Defines the ICMP protocol that consists of the ICMP type and code.public IcmpTypeCode getIcmpTypeCode()
Defines the ICMP protocol that consists of the ICMP type and code.
public NetworkACLEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Defines the ICMP protocol that consists of the ICMP type and code.
icmpTypeCode
- Defines the ICMP protocol that consists of the ICMP type and code.public void setCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation. For example, 172.16.0.0/24
. We modify the
specified CIDR block to its canonical form. For example, if you specify 100.68.0.18/18
, we modify it
to 100.68.0.0/18
.
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation. For example, 172.16.0.0/24
. We
modify the specified CIDR block to its canonical form. For example, if you specify
100.68.0.18/18
, we modify it to 100.68.0.0/18
.public String getCidrBlock()
The IPv4 network range to allow or deny, in CIDR notation. For example, 172.16.0.0/24
. We modify the
specified CIDR block to its canonical form. For example, if you specify 100.68.0.18/18
, we modify it
to 100.68.0.0/18
.
172.16.0.0/24
. We
modify the specified CIDR block to its canonical form. For example, if you specify
100.68.0.18/18
, we modify it to 100.68.0.0/18
.public NetworkACLEntry withCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation. For example, 172.16.0.0/24
. We modify the
specified CIDR block to its canonical form. For example, if you specify 100.68.0.18/18
, we modify it
to 100.68.0.0/18
.
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation. For example, 172.16.0.0/24
. We
modify the specified CIDR block to its canonical form. For example, if you specify
100.68.0.18/18
, we modify it to 100.68.0.0/18
.public String toString()
toString
in class Object
Object.toString()
public NetworkACLEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.