Class CreateNetworkAclEntryRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateNetworkAclEntryRequest>
,Serializable
,Cloneable
Contains the parameters for CreateNetworkAclEntry.
- 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 (for example172.16.0.0/24
).This method is intended for internal use only.Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).ICMP protocol: The ICMP type and code.The ID of the network ACL.TCP or UDP protocols: The range of ports the rule applies to.The protocol.Indicates whether to allow or deny the traffic that matches the rule.The rule number for the entry (for example, 100).int
hashCode()
isEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).void
setCidrBlock
(String cidrBlock) The network range to allow or deny, in CIDR notation (for example172.16.0.0/24
).void
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).void
setIcmpTypeCode
(IcmpTypeCode icmpTypeCode) ICMP protocol: The ICMP type and code.void
setNetworkAclId
(String networkAclId) The ID of the network ACL.void
setPortRange
(PortRange portRange) TCP or UDP protocols: The range of ports the rule applies to.void
setProtocol
(String protocol) The 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 for the entry (for example, 100).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 (for example172.16.0.0/24
).withEgress
(Boolean egress) Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).withIcmpTypeCode
(IcmpTypeCode icmpTypeCode) ICMP protocol: The ICMP type and code.withNetworkAclId
(String networkAclId) The ID of the network ACL.withPortRange
(PortRange portRange) TCP or UDP protocols: The range of ports the rule applies to.withProtocol
(String protocol) The 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 for the entry (for example, 100).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
-
CreateNetworkAclEntryRequest
public CreateNetworkAclEntryRequest()
-
-
Method Details
-
setNetworkAclId
The ID of the network ACL.
- Parameters:
networkAclId
- The ID of the network ACL.
-
getNetworkAclId
The ID of the network ACL.
- Returns:
- The ID of the network ACL.
-
withNetworkAclId
The ID of the network ACL.
- Parameters:
networkAclId
- The ID of the network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleNumber
The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.
Constraints: Positive integer from 1 to 32766
- Parameters:
ruleNumber
- The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.Constraints: Positive integer from 1 to 32766
-
getRuleNumber
The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.
Constraints: Positive integer from 1 to 32766
- Returns:
- The rule number for the entry (for example, 100). ACL entries are
processed in ascending order by rule number.
Constraints: Positive integer from 1 to 32766
-
withRuleNumber
The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.
Constraints: Positive integer from 1 to 32766
- Parameters:
ruleNumber
- The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.Constraints: Positive integer from 1 to 32766
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
The protocol. A value of -1 means all protocols.
- Parameters:
protocol
- The protocol. A value of -1 means all protocols.
-
getProtocol
The protocol. A value of -1 means all protocols.
- Returns:
- The protocol. A value of -1 means all protocols.
-
withProtocol
The protocol. A value of -1 means all protocols.
- Parameters:
protocol
- The protocol. A value of -1 means 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 this is an egress rule (rule is applied to traffic leaving the subnet).
- Parameters:
egress
- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
-
getEgress
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
- Returns:
- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
-
withEgress
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
- Parameters:
egress
- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEgress
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
- Returns:
- Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
-
setCidrBlock
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation (for example172.16.0.0/24
).
-
getCidrBlock
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).- Returns:
- The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).
-
withCidrBlock
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation (for example172.16.0.0/24
).- 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 ICMP for the protocol.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
-
getIcmpTypeCode
ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
- Returns:
- ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
-
withIcmpTypeCode
ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 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.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to.
-
getPortRange
TCP or UDP protocols: The range of ports the rule applies to.
- Returns:
- TCP or UDP protocols: The range of ports the rule applies to.
-
withPortRange
TCP or UDP protocols: The range of ports the rule applies to.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to.- 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<CreateNetworkAclEntryRequest>
-
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:
-