public class ReplaceNetworkAclEntryRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
Contains the parameters for ReplaceNetworkAclEntry.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cidrBlock
The network range to allow or deny, in CIDR notation.
|
private java.lang.Boolean |
egress
Indicates whether to replace the egress rule.
|
private IcmpTypeCode |
icmpTypeCode
ICMP protocol: The ICMP type and code.
|
private java.lang.String |
networkAclId
The ID of the ACL.
|
private PortRange |
portRange
TCP or UDP protocols: The range of ports the rule applies to.
|
private java.lang.String |
protocol
The IP protocol.
|
private java.lang.String |
ruleAction
Indicates whether to allow or deny the traffic that matches the rule.
|
private java.lang.Integer |
ruleNumber
The rule number of the entry to replace.
|
NOOP
Constructor and Description |
---|
ReplaceNetworkAclEntryRequest() |
Modifier and Type | Method and Description |
---|---|
ReplaceNetworkAclEntryRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String networkAclId
The ID of the ACL.
private java.lang.Integer ruleNumber
The rule number of the entry to replace.
private java.lang.String protocol
The IP protocol. You can specify all
or -1
to
mean all protocols.
private java.lang.String ruleAction
Indicates whether to allow or deny the traffic that matches the rule.
private java.lang.Boolean egress
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
private java.lang.String cidrBlock
The network range to allow or deny, in CIDR notation.
private IcmpTypeCode icmpTypeCode
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
private 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 void setNetworkAclId(java.lang.String networkAclId)
The ID of the ACL.
networkAclId
- The ID of the ACL.public java.lang.String getNetworkAclId()
The ID of the ACL.
public ReplaceNetworkAclEntryRequest withNetworkAclId(java.lang.String networkAclId)
The ID of the ACL.
networkAclId
- The ID of the ACL.public void setRuleNumber(java.lang.Integer ruleNumber)
The rule number of the entry to replace.
ruleNumber
- The rule number of the entry to replace.public java.lang.Integer getRuleNumber()
The rule number of the entry to replace.
public ReplaceNetworkAclEntryRequest withRuleNumber(java.lang.Integer ruleNumber)
The rule number of the entry to replace.
ruleNumber
- The rule number of the entry to replace.public void setProtocol(java.lang.String protocol)
The IP protocol. You can specify all
or -1
to
mean all protocols.
protocol
- The IP protocol. You can specify all
or
-1
to mean all protocols.public java.lang.String getProtocol()
The IP protocol. You can specify all
or -1
to
mean all protocols.
all
or
-1
to mean all protocols.public ReplaceNetworkAclEntryRequest withProtocol(java.lang.String protocol)
The IP protocol. You can specify all
or -1
to
mean all protocols.
protocol
- The IP protocol. You can specify all
or
-1
to mean all protocols.public void setRuleAction(java.lang.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 java.lang.String getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
RuleAction
public ReplaceNetworkAclEntryRequest withRuleAction(java.lang.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 setEgress(java.lang.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 java.lang.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(java.lang.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 java.lang.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 setCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.
cidrBlock
- The network range to allow or deny, in CIDR notation.public java.lang.String getCidrBlock()
The network range to allow or deny, in CIDR notation.
public ReplaceNetworkAclEntryRequest withCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.
cidrBlock
- The network range to allow or deny, in CIDR notation.public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 1
(ICMP) for the protocol.public IcmpTypeCode getIcmpTypeCode()
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 1
(ICMP) for the protocol.public void setPortRange(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.
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 PortRange getPortRange()
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)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
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.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReplaceNetworkAclEntryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()