public class ReplaceNetworkAclEntryRequest extends AmazonWebServiceRequest implements 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 .
NOOP
Constructor and Description |
---|
ReplaceNetworkAclEntryRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCidrBlock()
The network range to allow or deny, in CIDR notation.
|
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 type and code.
|
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 network range to allow or deny, in CIDR notation.
|
void |
setEgress(Boolean egress)
Indicates whether to replace the egress rule.
|
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
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 network range to allow or deny, in CIDR notation.
|
ReplaceNetworkAclEntryRequest |
withEgress(Boolean egress)
Indicates whether to replace the egress rule.
|
ReplaceNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
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.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getNetworkAclId()
public void setNetworkAclId(String networkAclId)
networkAclId
- The ID of the ACL.public ReplaceNetworkAclEntryRequest withNetworkAclId(String networkAclId)
Returns a reference to this object so that method calls can be chained together.
networkAclId
- The ID of the ACL.public Integer getRuleNumber()
public void setRuleNumber(Integer ruleNumber)
ruleNumber
- The rule number of the entry to replace.public ReplaceNetworkAclEntryRequest withRuleNumber(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 String getProtocol()
all
or -1
to mean all protocols.all
or -1
to mean all protocols.public void setProtocol(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(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 String getRuleAction()
Constraints:
Allowed Values: allow, deny
RuleAction
public void setRuleAction(String ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public ReplaceNetworkAclEntryRequest withRuleAction(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.RuleAction
public void setRuleAction(RuleAction ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.RuleAction
public 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.RuleAction
public 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(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(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 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 String getCidrBlock()
public void setCidrBlock(String cidrBlock)
cidrBlock
- The network range to allow or deny, in CIDR notation.public ReplaceNetworkAclEntryRequest withCidrBlock(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.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.public PortRange getPortRange()
public void setPortRange(PortRange portRange)
portRange
- TCP or UDP protocols: The range of ports the rule applies to.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.public Request<ReplaceNetworkAclEntryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.