Class CreateNetworkAclEntryRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateNetworkAclEntryRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<CreateNetworkAclEntryRequest>,Serializable,Cloneable
public class CreateNetworkAclEntryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkAclEntryRequest>
Contains the parameters for CreateNetworkAclEntry.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateNetworkAclEntryRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateNetworkAclEntryRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetCidrBlock()The network range to allow or deny, in CIDR notation (for example172.16.0.0/24).Request<CreateNetworkAclEntryRequest>getDryRunRequest()This method is intended for internal use only.BooleangetEgress()Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).IcmpTypeCodegetIcmpTypeCode()ICMP protocol: The ICMP type and code.StringgetNetworkAclId()The ID of the network ACL.PortRangegetPortRange()TCP or UDP protocols: The range of ports the rule applies to.StringgetProtocol()The protocol.StringgetRuleAction()Indicates whether to allow or deny the traffic that matches the rule.IntegergetRuleNumber()The rule number for the entry (for example, 100).inthashCode()BooleanisEgress()Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).voidsetCidrBlock(String cidrBlock)The network range to allow or deny, in CIDR notation (for example172.16.0.0/24).voidsetEgress(Boolean egress)Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).voidsetIcmpTypeCode(IcmpTypeCode icmpTypeCode)ICMP protocol: The ICMP type and code.voidsetNetworkAclId(String networkAclId)The ID of the network ACL.voidsetPortRange(PortRange portRange)TCP or UDP protocols: The range of ports the rule applies to.voidsetProtocol(String protocol)The protocol.voidsetRuleAction(RuleAction ruleAction)Indicates whether to allow or deny the traffic that matches the rule.voidsetRuleAction(String ruleAction)Indicates whether to allow or deny the traffic that matches the rule.voidsetRuleNumber(Integer ruleNumber)The rule number for the entry (for example, 100).StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateNetworkAclEntryRequestwithCidrBlock(String cidrBlock)The network range to allow or deny, in CIDR notation (for example172.16.0.0/24).CreateNetworkAclEntryRequestwithEgress(Boolean egress)Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).CreateNetworkAclEntryRequestwithIcmpTypeCode(IcmpTypeCode icmpTypeCode)ICMP protocol: The ICMP type and code.CreateNetworkAclEntryRequestwithNetworkAclId(String networkAclId)The ID of the network ACL.CreateNetworkAclEntryRequestwithPortRange(PortRange portRange)TCP or UDP protocols: The range of ports the rule applies to.CreateNetworkAclEntryRequestwithProtocol(String protocol)The protocol.CreateNetworkAclEntryRequestwithRuleAction(RuleAction ruleAction)Indicates whether to allow or deny the traffic that matches the rule.CreateNetworkAclEntryRequestwithRuleAction(String ruleAction)Indicates whether to allow or deny the traffic that matches the rule.CreateNetworkAclEntryRequestwithRuleNumber(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
-
-
-
-
Method Detail
-
setNetworkAclId
public void setNetworkAclId(String networkAclId)
The ID of the network ACL.
- Parameters:
networkAclId- The ID of the network ACL.
-
getNetworkAclId
public String getNetworkAclId()
The ID of the network ACL.
- Returns:
- The ID of the network ACL.
-
withNetworkAclId
public CreateNetworkAclEntryRequest withNetworkAclId(String networkAclId)
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
public void setRuleNumber(Integer 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
- 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
public Integer 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
public CreateNetworkAclEntryRequest withRuleNumber(Integer 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
- 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
public void setProtocol(String protocol)
The protocol. A value of -1 means all protocols.
- Parameters:
protocol- The protocol. A value of -1 means all protocols.
-
getProtocol
public String getProtocol()
The protocol. A value of -1 means all protocols.
- Returns:
- The protocol. A value of -1 means all protocols.
-
withProtocol
public CreateNetworkAclEntryRequest withProtocol(String protocol)
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
public void setRuleAction(String ruleAction)
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:
RuleAction
-
getRuleAction
public String 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:
RuleAction
-
withRuleAction
public CreateNetworkAclEntryRequest withRuleAction(String ruleAction)
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:
RuleAction
-
setRuleAction
public void setRuleAction(RuleAction ruleAction)
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:
RuleAction
-
withRuleAction
public CreateNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
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:
RuleAction
-
setEgress
public void setEgress(Boolean egress)
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
public Boolean 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
public CreateNetworkAclEntryRequest withEgress(Boolean egress)
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
public Boolean 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
public void setCidrBlock(String cidrBlock)
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
public String 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
public CreateNetworkAclEntryRequest withCidrBlock(String cidrBlock)
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
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
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
public IcmpTypeCode 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
public CreateNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
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
public void setPortRange(PortRange portRange)
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
public PortRange 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
public CreateNetworkAclEntryRequest withPortRange(PortRange portRange)
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
public Request<CreateNetworkAclEntryRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<CreateNetworkAclEntryRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateNetworkAclEntryRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-