@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplaceNetworkAclEntryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
Contains the parameters for ReplaceNetworkAclEntry.
NOOP
Constructor and Description |
---|
ReplaceNetworkAclEntryRequest() |
Modifier and Type | Method and Description |
---|---|
ReplaceNetworkAclEntryRequest |
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<ReplaceNetworkAclEntryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEgress()
Indicates whether to replace the egress rule.
|
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:bd8:1234:1a00::/64 ). |
String |
getNetworkAclId()
The ID of the ACL.
|
PortRange |
getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
String |
getProtocol()
The IP protocol.
|
String |
getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
|
Integer |
getRuleNumber()
The rule number of the entry to replace.
|
int |
hashCode() |
Boolean |
isEgress()
Indicates whether to replace the egress rule.
|
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 to replace the egress rule.
|
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:bd8:1234:1a00::/64 ). |
void |
setNetworkAclId(String networkAclId)
The ID of the ACL.
|
void |
setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
void |
setProtocol(String protocol)
The IP 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 of the entry to replace.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ReplaceNetworkAclEntryRequest |
withCidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
ReplaceNetworkAclEntryRequest |
withEgress(Boolean egress)
Indicates whether to replace the egress rule.
|
ReplaceNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP or ICMPv6 type and code.
|
ReplaceNetworkAclEntryRequest |
withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation (for example
2001:bd8:1234:1a00::/64 ). |
ReplaceNetworkAclEntryRequest |
withNetworkAclId(String networkAclId)
The ID of the ACL.
|
ReplaceNetworkAclEntryRequest |
withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
ReplaceNetworkAclEntryRequest |
withProtocol(String protocol)
The IP protocol.
|
ReplaceNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
ReplaceNetworkAclEntryRequest |
withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
ReplaceNetworkAclEntryRequest |
withRuleNumber(Integer ruleNumber)
The rule number of the entry to replace.
|
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 ReplaceNetworkAclEntryRequest 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 to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
egress
- Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
public Boolean getEgress()
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 ReplaceNetworkAclEntryRequest withEgress(Boolean egress)
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
egress
- Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
public Boolean isEgress()
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 void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP (1) 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 (1) 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 (1) protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP (1) 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 (1) 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:bd8:1234:1a00::/64
).
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation (for example
2001:bd8:1234:1a00::/64
).public String getIpv6CidrBlock()
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64
).
2001:bd8:1234:1a00::/64
).public ReplaceNetworkAclEntryRequest withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64
).
ipv6CidrBlock
- The IPv6 network range to allow or deny, in CIDR notation (for example
2001:bd8:1234:1a00::/64
).public void setNetworkAclId(String networkAclId)
The ID of the ACL.
networkAclId
- The ID of the ACL.public String getNetworkAclId()
The ID of the ACL.
public ReplaceNetworkAclEntryRequest withNetworkAclId(String networkAclId)
The ID of the ACL.
networkAclId
- The ID of the ACL.public void setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying TCP (6) or UDP (17) for the protocol.
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying TCP (6) or UDP (17)
for the protocol.public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying TCP (6) or UDP (17) for the protocol.
public ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying TCP (6) or UDP (17) for the protocol.
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying TCP (6) or UDP (17)
for the protocol.public void setProtocol(String protocol)
The IP protocol. You can specify all
or -1
to mean 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 IP protocol. You can specify all
or -1
to mean 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 IP protocol. You can specify all
or -1
to mean 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.
all
or -1
to mean 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 ReplaceNetworkAclEntryRequest withProtocol(String protocol)
The IP protocol. You can specify all
or -1
to mean 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 IP protocol. You can specify all
or -1
to mean 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 ReplaceNetworkAclEntryRequest 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 ReplaceNetworkAclEntryRequest 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 of the entry to replace.
ruleNumber
- The rule number of the entry to replace.public Integer getRuleNumber()
The rule number of the entry to replace.
public ReplaceNetworkAclEntryRequest withRuleNumber(Integer ruleNumber)
The rule number of the entry to replace.
ruleNumber
- The rule number of the entry to replace.public Request<ReplaceNetworkAclEntryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
public String toString()
toString
in class Object
Object.toString()
public ReplaceNetworkAclEntryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.