@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNetworkAclEntryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkAclEntryRequest>
NOOP
Constructor and Description |
---|
CreateNetworkAclEntryRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNetworkAclEntryRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCidrBlock()
The IPv4 network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
Request<CreateNetworkAclEntryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
|
IcmpTypeCode |
getIcmpTypeCode()
ICMP protocol: The ICMP or ICMPv6 type and code.
|
String |
getIpv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation (for example
2001:db8:1234:1a00::/64 ). |
String |
getNetworkAclId()
The ID of the network ACL.
|
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 (for example, 100).
|
int |
hashCode() |
Boolean |
isEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
|
void |
setCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
void |
setEgress(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
|
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP or ICMPv6 type and code.
|
void |
setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation (for example
2001:db8:1234:1a00::/64 ). |
void |
setNetworkAclId(String networkAclId)
The ID of the network ACL.
|
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 (for example, 100).
|
String |
toString()
Returns a string representation of this object.
|
CreateNetworkAclEntryRequest |
withCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
CreateNetworkAclEntryRequest |
withEgress(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
|
CreateNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP or ICMPv6 type and code.
|
CreateNetworkAclEntryRequest |
withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation (for example
2001:db8:1234:1a00::/64 ). |
CreateNetworkAclEntryRequest |
withNetworkAclId(String networkAclId)
The ID of the network ACL.
|
CreateNetworkAclEntryRequest |
withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
CreateNetworkAclEntryRequest |
withProtocol(String protocol)
The protocol number.
|
CreateNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
CreateNetworkAclEntryRequest |
withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
CreateNetworkAclEntryRequest |
withRuleNumber(Integer ruleNumber)
The rule number for the entry (for example, 100).
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 CreateNetworkAclEntryRequest 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 void setEgress(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
egress
- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).public Boolean getEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
public CreateNetworkAclEntryRequest withEgress(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
egress
- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).public Boolean isEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
public void setIcmpTypeCode(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.
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 IcmpTypeCode getIcmpTypeCode()
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 CreateNetworkAclEntryRequest withIcmpTypeCode(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.
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 void setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64
).
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation (for example
2001:db8:1234:1a00::/64
).public String getIpv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64
).
2001:db8:1234:1a00::/64
).public CreateNetworkAclEntryRequest withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64
).
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation (for example
2001:db8:1234:1a00::/64
).public void setNetworkAclId(String networkAclId)
The ID of the network ACL.
networkAclId
- The ID of the network ACL.public String getNetworkAclId()
The ID of the network ACL.
public CreateNetworkAclEntryRequest withNetworkAclId(String networkAclId)
The ID of the network ACL.
networkAclId
- The ID of the network ACL.public void setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or
17 (UDP).public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).
public CreateNetworkAclEntryRequest withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or
17 (UDP).public void setProtocol(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.
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 String getProtocol()
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 CreateNetworkAclEntryRequest withProtocol(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.
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 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 CreateNetworkAclEntryRequest 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 CreateNetworkAclEntryRequest 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 (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.
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.
public Integer getRuleNumber()
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 withRuleNumber(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.
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.
public Request<CreateNetworkAclEntryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateNetworkAclEntryRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateNetworkAclEntryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()