Class ReplaceNetworkAclEntryRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
,Serializable
,Cloneable
Contains the parameters for ReplaceNetworkAclEntry.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The network range to allow or deny, in CIDR notation.This method is intended for internal use only.Indicates whether to replace the egress rule.ICMP protocol: The ICMP type and code.The ID of the ACL.TCP or UDP protocols: The range of ports the rule applies to.The IP protocol.Indicates whether to allow or deny the traffic that matches the rule.The rule number of the entry to replace.int
hashCode()
isEgress()
Indicates whether to replace the egress rule.void
setCidrBlock
(String cidrBlock) The network range to allow or deny, in CIDR notation.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withCidrBlock
(String cidrBlock) The network range to allow or deny, in CIDR notation.withEgress
(Boolean egress) Indicates whether to replace the egress rule.withIcmpTypeCode
(IcmpTypeCode icmpTypeCode) ICMP protocol: The ICMP type and code.withNetworkAclId
(String networkAclId) The ID of the ACL.withPortRange
(PortRange portRange) TCP or UDP protocols: The range of ports the rule applies to.withProtocol
(String protocol) The IP protocol.withRuleAction
(RuleAction ruleAction) Indicates whether to allow or deny the traffic that matches the rule.withRuleAction
(String ruleAction) Indicates whether to allow or deny the traffic that matches the rule.withRuleNumber
(Integer ruleNumber) The rule number of the entry to replace.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ReplaceNetworkAclEntryRequest
public ReplaceNetworkAclEntryRequest()
-
-
Method Details
-
setNetworkAclId
The ID of the ACL.
- Parameters:
networkAclId
- The ID of the ACL.
-
getNetworkAclId
The ID of the ACL.
- Returns:
- The ID of the ACL.
-
withNetworkAclId
The ID of the ACL.
- Parameters:
networkAclId
- The ID of the ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleNumber
The rule number of the entry to replace.
- Parameters:
ruleNumber
- The rule number of the entry to replace.
-
getRuleNumber
The rule number of the entry to replace.
- Returns:
- The rule number of the entry to replace.
-
withRuleNumber
The rule number of the entry to replace.
- Parameters:
ruleNumber
- The rule number of the entry to replace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
The IP protocol. You can specify
all
or-1
to mean all protocols.- Parameters:
protocol
- The IP protocol. You can specifyall
or-1
to mean all protocols.
-
getProtocol
The IP protocol. You can specify
all
or-1
to mean all protocols.- Returns:
- The IP protocol. You can specify
all
or-1
to mean all protocols.
-
withProtocol
The IP protocol. You can specify
all
or-1
to mean all protocols.- Parameters:
protocol
- The IP protocol. You can specifyall
or-1
to mean all protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- See Also:
-
getRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Returns:
- Indicates whether to allow or deny the traffic that matches the rule.
- See Also:
-
withRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- See Also:
-
withRuleAction
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setEgress
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Parameters:
egress
- Indicates whether to replace the egress rule.Default: If no value is specified, we replace the ingress rule.
-
getEgress
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Returns:
- Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
-
withEgress
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Parameters:
egress
- Indicates whether to replace the egress rule.Default: If no value is specified, we replace the ingress rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEgress
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Returns:
- Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
-
setCidrBlock
The network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation.
-
getCidrBlock
The network range to allow or deny, in CIDR notation.
- Returns:
- The network range to allow or deny, in CIDR notation.
-
withCidrBlock
The network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIcmpTypeCode
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
-
getIcmpTypeCode
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
- Returns:
- ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
-
withIcmpTypeCode
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPortRange
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
-
getPortRange
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
- Returns:
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
-
withPortRange
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-