|
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)
,
Serialized FormConstructor Summary | |
---|---|
CreateNetworkAclEntryRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCidrBlock()
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24 ). |
Boolean |
getEgress()
Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet
(false ). |
IcmpTypeCode |
getIcmpTypeCode()
ICMP values. |
String |
getNetworkAclId()
ID of the ACL where the entry will be created. |
PortRange |
getPortRange()
Port ranges. |
String |
getProtocol()
IP protocol the rule applies to. |
String |
getRuleAction()
Whether to allow or deny traffic that matches the rule. |
Integer |
getRuleNumber()
Rule number to assign to the entry (e.g., 100). |
int |
hashCode()
|
Boolean |
isEgress()
Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet
(false ). |
void |
setCidrBlock(String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24 ). |
void |
setEgress(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(String networkAclId)
ID of the ACL where the entry will be created. |
void |
setPortRange(PortRange portRange)
Port ranges. |
void |
setProtocol(String protocol)
IP protocol the rule applies to. |
void |
setRuleAction(RuleAction ruleAction)
Whether to allow or deny traffic that matches the rule. |
void |
setRuleAction(String ruleAction)
Whether to allow or deny traffic that matches the rule. |
void |
setRuleNumber(Integer ruleNumber)
Rule number to assign to the entry (e.g., 100). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateNetworkAclEntryRequest |
withCidrBlock(String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24 ). |
CreateNetworkAclEntryRequest |
withEgress(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(String networkAclId)
ID of the ACL where the entry will be created. |
CreateNetworkAclEntryRequest |
withPortRange(PortRange portRange)
Port ranges. |
CreateNetworkAclEntryRequest |
withProtocol(String protocol)
IP protocol the rule applies to. |
CreateNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Whether to allow or deny traffic that matches the rule. |
CreateNetworkAclEntryRequest |
withRuleAction(String ruleAction)
Whether to allow or deny traffic that matches the rule. |
CreateNetworkAclEntryRequest |
withRuleNumber(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 String getNetworkAclId()
public void setNetworkAclId(String networkAclId)
networkAclId
- ID of the ACL where the entry will be created.public CreateNetworkAclEntryRequest withNetworkAclId(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 Integer getRuleNumber()
public void setRuleNumber(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(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 String getProtocol()
tcp
,
udp
, icmp
or an IP protocol number.
tcp
,
udp
, icmp
or an IP protocol number.public void setProtocol(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(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 String getRuleAction()
Constraints:
Allowed Values: allow, deny
RuleAction
public void setRuleAction(String ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction
- Whether to allow or deny traffic that matches the rule.RuleAction
public CreateNetworkAclEntryRequest withRuleAction(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 Boolean isEgress()
true
) or ingress traffic to the subnet
(false
).
true
) or ingress traffic to the subnet
(false
).public void setEgress(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(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 Boolean getEgress()
true
) or ingress traffic to the subnet
(false
).
true
) or ingress traffic to the subnet
(false
).public String getCidrBlock()
172.16.0.0/24
).
172.16.0.0/24
).public void setCidrBlock(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(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |