@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2NetworkAclEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2NetworkAclEntry.Builder,AwsEc2NetworkAclEntry>
A rule for the network ACL. Each rule allows or denies access based on the IP address, traffic direction, port, and protocol.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2NetworkAclEntry.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsEc2NetworkAclEntry.Builder |
builder() |
String |
cidrBlock()
The IPV4 network range for which to deny or allow access.
|
Boolean |
egress()
Whether the rule is an egress rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IcmpTypeCode |
icmpTypeCode()
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
|
String |
ipv6CidrBlock()
The IPV6 network range for which to deny or allow access.
|
PortRangeFromTo |
portRange()
For TCP or UDP protocols, the range of ports that the rule applies to.
|
String |
protocol()
The protocol that the rule applies to.
|
String |
ruleAction()
Whether the rule is used to allow access or deny access.
|
Integer |
ruleNumber()
The rule number.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEc2NetworkAclEntry.Builder> |
serializableBuilderClass() |
AwsEc2NetworkAclEntry.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String cidrBlock()
The IPV4 network range for which to deny or allow access.
public final Boolean egress()
Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.
public final IcmpTypeCode icmpTypeCode()
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
public final String ipv6CidrBlock()
The IPV6 network range for which to deny or allow access.
public final PortRangeFromTo portRange()
For TCP or UDP protocols, the range of ports that the rule applies to.
public final String protocol()
The protocol that the rule applies to. To deny or allow access to all protocols, use the value -1.
-1.public final String ruleAction()
Whether the rule is used to allow access or deny access.
public final Integer ruleNumber()
The rule number. The rules are processed in order by their number.
public AwsEc2NetworkAclEntry.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2NetworkAclEntry.Builder,AwsEc2NetworkAclEntry>public static AwsEc2NetworkAclEntry.Builder builder()
public static Class<? extends AwsEc2NetworkAclEntry.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.