@Generated(value="software.amazon.awssdk:codegen") public class CreateNetworkAclEntryRequest extends EC2Request implements ToCopyableBuilder<CreateNetworkAclEntryRequest.Builder,CreateNetworkAclEntryRequest>
Contains the parameters for CreateNetworkAclEntry.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateNetworkAclEntryRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateNetworkAclEntryRequest.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 this is an egress rule (rule is applied to traffic leaving the subnet).
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
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:db8:1234:1a00::/64 ). |
String |
networkAclId()
The ID of the network ACL.
|
PortRange |
portRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
String |
protocol()
The protocol.
|
RuleAction |
ruleAction()
Indicates whether to allow or deny the traffic that matches the rule.
|
String |
ruleActionString()
Indicates whether to allow or deny the traffic that matches the rule.
|
Integer |
ruleNumber()
The rule number for the entry (for example, 100).
|
static Class<? extends CreateNetworkAclEntryRequest.Builder> |
serializableBuilderClass() |
CreateNetworkAclEntryRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public 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 Boolean egress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
public IcmpTypeCode icmpTypeCode()
ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
public String ipv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64
).
2001:db8:1234:1a00::/64
).public String networkAclId()
The ID of the network ACL.
public PortRange portRange()
TCP or UDP protocols: The range of ports the rule applies to.
public String protocol()
The protocol. A value of -1
or all
means all protocols. If you specify all
, -1
, or a protocol number other than tcp
, udp
, or icmp
,
traffic on all ports is allowed, regardless of any ports or ICMP types or codes 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.
-1
or all
means all protocols. If you specify
all
, -1
, or a protocol number other than tcp
, udp
, or
icmp
, traffic on all ports is allowed, regardless of any ports or ICMP types or codes 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 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
ruleActionString()
.
RuleAction
public String ruleActionString()
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
ruleActionString()
.
RuleAction
public Integer ruleNumber()
The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.
Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.
Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.
public CreateNetworkAclEntryRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateNetworkAclEntryRequest.Builder,CreateNetworkAclEntryRequest>
toBuilder
in class EC2Request
public static CreateNetworkAclEntryRequest.Builder builder()
public static Class<? extends CreateNetworkAclEntryRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.