public class CreateNetworkAclEntryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkAclEntryRequest>
Contains the parameters for CreateNetworkAclEntry.
NOOP
Constructor and Description |
---|
CreateNetworkAclEntryRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNetworkAclEntryRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCidrBlock()
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
Request<CreateNetworkAclEntryRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEgress()
Indicates whether this is an egress rule (rule is applied to traffic
leaving the subnet).
|
IcmpTypeCode |
getIcmpTypeCode()
ICMP protocol: The ICMP type and code.
|
String |
getNetworkAclId()
The ID of the network ACL.
|
PortRange |
getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
|
String |
getProtocol()
The protocol.
|
String |
getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
|
Integer |
getRuleNumber()
The rule number for the entry (for example, 100).
|
int |
hashCode() |
Boolean |
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 example
172.16.0.0/24 ). |
void |
setEgress(Boolean egress)
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).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateNetworkAclEntryRequest |
withCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24 ). |
CreateNetworkAclEntryRequest |
withEgress(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic
leaving the subnet).
|
CreateNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
|
CreateNetworkAclEntryRequest |
withNetworkAclId(String networkAclId)
The ID of the network ACL.
|
CreateNetworkAclEntryRequest |
withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
|
CreateNetworkAclEntryRequest |
withProtocol(String protocol)
The protocol.
|
CreateNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
CreateNetworkAclEntryRequest |
withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
|
CreateNetworkAclEntryRequest |
withRuleNumber(Integer ruleNumber)
The rule number for the entry (for example, 100).
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setNetworkAclId(String networkAclId)
The ID of the network ACL.
networkAclId
- The ID of the network ACL.public String getNetworkAclId()
The ID of the network ACL.
public CreateNetworkAclEntryRequest withNetworkAclId(String networkAclId)
The ID of the network ACL.
networkAclId
- The ID of the network ACL.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
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
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
Constraints: Positive integer from 1 to 32766
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
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
public void setProtocol(String protocol)
The protocol. A value of -1 means all protocols.
protocol
- The protocol. A value of -1 means all protocols.public String getProtocol()
The protocol. A value of -1 means all protocols.
public CreateNetworkAclEntryRequest withProtocol(String protocol)
The protocol. A value of -1 means all protocols.
protocol
- The protocol. A value of -1 means all protocols.public void setRuleAction(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 String getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
RuleAction
public CreateNetworkAclEntryRequest withRuleAction(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 CreateNetworkAclEntryRequest 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(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
egress
- Indicates whether this is an egress rule (rule is applied to
traffic leaving the subnet).public Boolean getEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
public CreateNetworkAclEntryRequest withEgress(Boolean egress)
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
egress
- Indicates whether this is an egress rule (rule is applied to
traffic leaving the subnet).public Boolean isEgress()
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
public void setCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).
cidrBlock
- The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).public String getCidrBlock()
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).
172.16.0.0/24
).public CreateNetworkAclEntryRequest withCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).
cidrBlock
- The network range to allow or deny, in CIDR notation (for example
172.16.0.0/24
).public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying ICMP
for the protocol.public IcmpTypeCode getIcmpTypeCode()
ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
public CreateNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying ICMP
for the protocol.public void setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.
public CreateNetworkAclEntryRequest withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
portRange
- TCP or UDP protocols: The range of ports the rule applies to.public Request<CreateNetworkAclEntryRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateNetworkAclEntryRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateNetworkAclEntryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.