|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateNetworkAclEntryRequest
public class CreateNetworkAclEntryRequest
Container for the parameters to the CreateNetworkAclEntry operation
.
Creates an entry (i.e., rule) in a network ACL with a rule number you specify. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, Amazon VPC processes the entries in the ACL according to the rule numbers, in ascending order.
Important: We recommend that you leave room between the rules (e.g., 100, 110, 120, etc.), and not number them sequentially (101, 102, 103, etc.). This allows you to easily add a new rule between existing ones without having to renumber the rules.
After you add an entry, you can't modify it; you must either replace it, or create a new entry and delete the old one.
For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
AmazonEC2.createNetworkAclEntry(CreateNetworkAclEntryRequest)
Constructor Summary | |
---|---|
CreateNetworkAclEntryRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCidrBlock()
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24 ). |
java.lang.Boolean |
getEgress()
Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet
(false ). |
IcmpTypeCode |
getIcmpTypeCode()
ICMP values. |
java.lang.String |
getNetworkAclId()
ID of the ACL where the entry will be created. |
PortRange |
getPortRange()
Port ranges. |
java.lang.String |
getProtocol()
IP protocol the rule applies to. |
java.lang.String |
getRuleAction()
Whether to allow or deny traffic that matches the rule. |
java.lang.Integer |
getRuleNumber()
Rule number to assign to the entry (e.g., 100). |
int |
hashCode()
|
java.lang.Boolean |
isEgress()
Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet
(false ). |
void |
setCidrBlock(java.lang.String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24 ). |
void |
setEgress(java.lang.Boolean egress)
Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet
(false ). |
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP values. |
void |
setNetworkAclId(java.lang.String networkAclId)
ID of the ACL where the entry will be created. |
void |
setPortRange(PortRange portRange)
Port ranges. |
void |
setProtocol(java.lang.String protocol)
IP protocol the rule applies to. |
void |
setRuleAction(RuleAction ruleAction)
Whether to allow or deny traffic that matches the rule. |
void |
setRuleAction(java.lang.String ruleAction)
Whether to allow or deny traffic that matches the rule. |
void |
setRuleNumber(java.lang.Integer ruleNumber)
Rule number to assign to the entry (e.g., 100). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateNetworkAclEntryRequest |
withCidrBlock(java.lang.String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24 ). |
CreateNetworkAclEntryRequest |
withEgress(java.lang.Boolean egress)
Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet
(false ). |
CreateNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP values. |
CreateNetworkAclEntryRequest |
withNetworkAclId(java.lang.String networkAclId)
ID of the ACL where the entry will be created. |
CreateNetworkAclEntryRequest |
withPortRange(PortRange portRange)
Port ranges. |
CreateNetworkAclEntryRequest |
withProtocol(java.lang.String protocol)
IP protocol the rule applies to. |
CreateNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Whether to allow or deny traffic that matches the rule. |
CreateNetworkAclEntryRequest |
withRuleAction(java.lang.String ruleAction)
Whether to allow or deny traffic that matches the rule. |
CreateNetworkAclEntryRequest |
withRuleNumber(java.lang.Integer ruleNumber)
Rule number to assign to the entry (e.g., 100). |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateNetworkAclEntryRequest()
Method Detail |
---|
public java.lang.String getNetworkAclId()
public void setNetworkAclId(java.lang.String networkAclId)
networkAclId
- ID of the ACL where the entry will be created.public CreateNetworkAclEntryRequest withNetworkAclId(java.lang.String networkAclId)
Returns a reference to this object so that method calls can be chained together.
networkAclId
- ID of the ACL where the entry will be created.
public java.lang.Integer getRuleNumber()
public void setRuleNumber(java.lang.Integer ruleNumber)
ruleNumber
- Rule number to assign to the entry (e.g., 100). ACL entries are
processed in ascending order by rule number.public CreateNetworkAclEntryRequest withRuleNumber(java.lang.Integer ruleNumber)
Returns a reference to this object so that method calls can be chained together.
ruleNumber
- Rule number to assign to the entry (e.g., 100). ACL entries are
processed in ascending order by rule number.
public java.lang.String getProtocol()
tcp
,
udp
, icmp
or an IP protocol number.
tcp
,
udp
, icmp
or an IP protocol number.public void setProtocol(java.lang.String protocol)
tcp
,
udp
, icmp
or an IP protocol number.
protocol
- IP protocol the rule applies to. Valid Values: tcp
,
udp
, icmp
or an IP protocol number.public CreateNetworkAclEntryRequest withProtocol(java.lang.String protocol)
tcp
,
udp
, icmp
or an IP protocol number.
Returns a reference to this object so that method calls can be chained together.
protocol
- IP protocol the rule applies to. Valid Values: tcp
,
udp
, icmp
or an IP protocol number.
public java.lang.String getRuleAction()
Constraints:
Allowed Values: allow, deny
RuleAction
public void setRuleAction(java.lang.String ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Whether to allow or deny traffic that matches the rule.RuleAction
public CreateNetworkAclEntryRequest withRuleAction(java.lang.String ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction
- Whether to allow or deny traffic that matches the rule.
RuleAction
public void setRuleAction(RuleAction ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Whether to allow or deny traffic that matches the rule.RuleAction
public CreateNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction
- Whether to allow or deny traffic that matches the rule.
RuleAction
public java.lang.Boolean isEgress()
true
) or ingress traffic to the subnet
(false
).
true
) or ingress traffic to the subnet
(false
).public void setEgress(java.lang.Boolean egress)
true
) or ingress traffic to the subnet
(false
).
egress
- Whether this rule applies to egress traffic from the subnet
(true
) or ingress traffic to the subnet
(false
).public CreateNetworkAclEntryRequest withEgress(java.lang.Boolean egress)
true
) or ingress traffic to the subnet
(false
).
Returns a reference to this object so that method calls can be chained together.
egress
- Whether this rule applies to egress traffic from the subnet
(true
) or ingress traffic to the subnet
(false
).
public java.lang.Boolean getEgress()
true
) or ingress traffic to the subnet
(false
).
true
) or ingress traffic to the subnet
(false
).public java.lang.String getCidrBlock()
172.16.0.0/24
).
172.16.0.0/24
).public void setCidrBlock(java.lang.String cidrBlock)
172.16.0.0/24
).
cidrBlock
- The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24
).public CreateNetworkAclEntryRequest withCidrBlock(java.lang.String cidrBlock)
172.16.0.0/24
).
Returns a reference to this object so that method calls can be chained together.
cidrBlock
- The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24
).
public IcmpTypeCode getIcmpTypeCode()
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
icmpTypeCode
- ICMP values.public CreateNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Returns a reference to this object so that method calls can be chained together.
icmpTypeCode
- ICMP values.
public PortRange getPortRange()
public void setPortRange(PortRange portRange)
portRange
- Port ranges.public CreateNetworkAclEntryRequest withPortRange(PortRange portRange)
Returns a reference to this object so that method calls can be chained together.
portRange
- Port ranges.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |