public class ReplaceNetworkAclEntryRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
ReplaceNetworkAclEntry operation.
Replaces an entry (rule) in a network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide .
| Constructor and Description |
|---|
ReplaceNetworkAclEntryRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrBlock()
The network range to allow or deny, in CIDR notation.
|
Request<ReplaceNetworkAclEntryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.Boolean |
getEgress()
Indicates whether to replace the egress rule.
|
IcmpTypeCode |
getIcmpTypeCode()
ICMP protocol: The ICMP type and code.
|
java.lang.String |
getNetworkAclId()
The ID of the ACL.
|
PortRange |
getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
java.lang.String |
getProtocol()
The IP protocol.
|
java.lang.String |
getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
|
java.lang.Integer |
getRuleNumber()
The rule number of the entry to replace.
|
int |
hashCode() |
java.lang.Boolean |
isEgress()
Indicates whether to replace the egress rule.
|
void |
setCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.
|
void |
setEgress(java.lang.Boolean egress)
Indicates whether to replace the egress rule.
|
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
void |
setNetworkAclId(java.lang.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(java.lang.String protocol)
The IP protocol.
|
void |
setRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
void |
setRuleAction(java.lang.String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
void |
setRuleNumber(java.lang.Integer ruleNumber)
The rule number of the entry to replace.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceNetworkAclEntryRequest |
withCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.
|
ReplaceNetworkAclEntryRequest |
withEgress(java.lang.Boolean egress)
Indicates whether to replace the egress rule.
|
ReplaceNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
ReplaceNetworkAclEntryRequest |
withNetworkAclId(java.lang.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(java.lang.String protocol)
The IP protocol.
|
ReplaceNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
ReplaceNetworkAclEntryRequest |
withRuleAction(java.lang.String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
ReplaceNetworkAclEntryRequest |
withRuleNumber(java.lang.Integer ruleNumber)
The rule number of the entry to replace.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getNetworkAclId()
public void setNetworkAclId(java.lang.String networkAclId)
networkAclId - The ID of the ACL.public ReplaceNetworkAclEntryRequest withNetworkAclId(java.lang.String networkAclId)
Returns a reference to this object so that method calls can be chained together.
networkAclId - The ID of the ACL.public java.lang.Integer getRuleNumber()
public void setRuleNumber(java.lang.Integer ruleNumber)
ruleNumber - The rule number of the entry to replace.public ReplaceNetworkAclEntryRequest withRuleNumber(java.lang.Integer ruleNumber)
Returns a reference to this object so that method calls can be chained together.
ruleNumber - The rule number of the entry to replace.public java.lang.String getProtocol()
all or -1
to mean all protocols.all or -1
to mean all protocols.public void setProtocol(java.lang.String protocol)
all or -1
to mean all protocols.protocol - The IP protocol. You can specify all or -1
to mean all protocols.public ReplaceNetworkAclEntryRequest withProtocol(java.lang.String protocol)
all or -1
to mean all protocols.
Returns a reference to this object so that method calls can be chained together.
protocol - The IP protocol. You can specify all or -1
to mean all protocols.public java.lang.String getRuleAction()
Constraints:
Allowed Values: allow, deny
RuleActionpublic void setRuleAction(java.lang.String ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.RuleActionpublic ReplaceNetworkAclEntryRequest withRuleAction(java.lang.String ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.RuleActionpublic void setRuleAction(RuleAction ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.RuleActionpublic ReplaceNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.RuleActionpublic java.lang.Boolean isEgress()
Default: If no value is specified, we replace the ingress rule.
Default: If no value is specified, we replace the ingress rule.
public void setEgress(java.lang.Boolean egress)
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 ReplaceNetworkAclEntryRequest withEgress(java.lang.Boolean egress)
Default: If no value is specified, we replace the ingress rule.
Returns a reference to this object so that method calls can be chained together.
egress - Indicates whether to replace the egress rule. Default: If no value is specified, we replace the ingress rule.
public java.lang.Boolean getEgress()
Default: If no value is specified, we replace the ingress rule.
Default: If no value is specified, we replace the ingress rule.
public java.lang.String getCidrBlock()
public void setCidrBlock(java.lang.String cidrBlock)
cidrBlock - The network range to allow or deny, in CIDR notation.public ReplaceNetworkAclEntryRequest withCidrBlock(java.lang.String cidrBlock)
Returns a reference to this object so that method calls can be chained together.
cidrBlock - The network range to allow or deny, in CIDR notation.public IcmpTypeCode getIcmpTypeCode()
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
icmpTypeCode - ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP)
for the protocol.public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Returns a reference to this object so that method calls can be chained together.
icmpTypeCode - ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP)
for the protocol.public PortRange getPortRange()
public void setPortRange(PortRange portRange)
portRange - TCP or UDP protocols: The range of ports the rule applies to. Required
if specifying 6 (TCP) or 17 (UDP) for the protocol.public ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
Returns a reference to this object so that method calls can be chained together.
portRange - TCP or UDP protocols: The range of ports the rule applies to. Required
if specifying 6 (TCP) or 17 (UDP) for the protocol.public Request<ReplaceNetworkAclEntryRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.