@Generated(value="software.amazon.awssdk:codegen") public final class ReplaceNetworkAclEntryRequest extends Ec2Request implements ToCopyableBuilder<ReplaceNetworkAclEntryRequest.Builder,ReplaceNetworkAclEntryRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
ReplaceNetworkAclEntryRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static ReplaceNetworkAclEntryRequest.Builder |
builder() |
String |
cidrBlock()
The IPv4 network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
Boolean |
egress()
Indicates whether to replace the egress rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IcmpTypeCode |
icmpTypeCode()
ICMP protocol: The ICMP or ICMPv6 type and code.
|
String |
ipv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation (for example
2001:bd8:1234:1a00::/64 ). |
String |
networkAclId()
The ID of the ACL.
|
PortRange |
portRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
String |
protocol()
The protocol number.
|
RuleAction |
ruleAction()
Indicates whether to allow or deny the traffic that matches the rule.
|
String |
ruleActionAsString()
Indicates whether to allow or deny the traffic that matches the rule.
|
Integer |
ruleNumber()
The rule number of the entry to replace.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReplaceNetworkAclEntryRequest.Builder> |
serializableBuilderClass() |
ReplaceNetworkAclEntryRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String cidrBlock()
The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24
).
172.16.0.0/24
).public final Boolean egress()
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
Default: If no value is specified, we replace the ingress rule.
public final IcmpTypeCode icmpTypeCode()
ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
public final String ipv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64
).
2001:bd8:1234:1a00::/64
).public final String networkAclId()
The ID of the ACL.
public final PortRange portRange()
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).
public final String protocol()
The protocol number. A value of "-1" means all protocols. If you specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.
public final RuleAction ruleAction()
Indicates whether to allow or deny the traffic that matches the rule.
If the service returns an enum value that is not available in the current SDK version, ruleAction
will
return RuleAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
ruleActionAsString()
.
RuleAction
public final String ruleActionAsString()
Indicates whether to allow or deny the traffic that matches the rule.
If the service returns an enum value that is not available in the current SDK version, ruleAction
will
return RuleAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
ruleActionAsString()
.
RuleAction
public final Integer ruleNumber()
The rule number of the entry to replace.
public ReplaceNetworkAclEntryRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ReplaceNetworkAclEntryRequest.Builder,ReplaceNetworkAclEntryRequest>
toBuilder
in class Ec2Request
public static ReplaceNetworkAclEntryRequest.Builder builder()
public static Class<? extends ReplaceNetworkAclEntryRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.