@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNetworkAclEntryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkAclEntryRequest>
Contains the parameters for CreateNetworkAclEntry.
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.
|
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.
|
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; useful for testing and debugging.
|
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.
|
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
).
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24
).public String getCidrBlock()
The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24
).
172.16.0.0/24
).public CreateNetworkAclEntryRequest withCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24
).
cidrBlock
- The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24
).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 the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
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 IcmpTypeCode getIcmpTypeCode()
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 CreateNetworkAclEntryRequest withIcmpTypeCode(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.
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 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.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
public CreateNetworkAclEntryRequest withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public void setProtocol(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.
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.public String getProtocol()
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 CreateNetworkAclEntryRequest withProtocol(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.
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.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.