com.amazonaws.services.ec2.model
Class NetworkAclEntry

java.lang.Object
  extended by com.amazonaws.services.ec2.model.NetworkAclEntry
All Implemented Interfaces:
java.io.Serializable

public class NetworkAclEntry
extends java.lang.Object
implements java.io.Serializable

Describes an entry in a network ACL.

See Also:
Serialized Form

Constructor Summary
NetworkAclEntry()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCidrBlock()
          The network range to allow or deny, in CIDR notation.
 java.lang.Boolean getEgress()
          Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
 IcmpTypeCode getIcmpTypeCode()
          ICMP protocol: The ICMP type and code.
 PortRange getPortRange()
          TCP or UDP protocols: The range of ports the rule applies to.
 java.lang.String getProtocol()
          The protocol.
 java.lang.String getRuleAction()
          Indicates whether to allow or deny the traffic that matches the rule.
 java.lang.Integer getRuleNumber()
          The rule number for the entry.
 int hashCode()
           
 java.lang.Boolean isEgress()
          Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
 void setCidrBlock(java.lang.String cidrBlock)
          The network range to allow or deny, in CIDR notation.
 void setEgress(java.lang.Boolean egress)
          Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
 void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
          ICMP protocol: The ICMP type and code.
 void setPortRange(PortRange portRange)
          TCP or UDP protocols: The range of ports the rule applies to.
 void setProtocol(java.lang.String protocol)
          The protocol.
 void setRuleAction(RuleAction ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 void setRuleAction(java.lang.String ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 void setRuleNumber(java.lang.Integer ruleNumber)
          The rule number for the entry.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 NetworkAclEntry withCidrBlock(java.lang.String cidrBlock)
          The network range to allow or deny, in CIDR notation.
 NetworkAclEntry withEgress(java.lang.Boolean egress)
          Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
 NetworkAclEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
          ICMP protocol: The ICMP type and code.
 NetworkAclEntry withPortRange(PortRange portRange)
          TCP or UDP protocols: The range of ports the rule applies to.
 NetworkAclEntry withProtocol(java.lang.String protocol)
          The protocol.
 NetworkAclEntry withRuleAction(RuleAction ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 NetworkAclEntry withRuleAction(java.lang.String ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 NetworkAclEntry withRuleNumber(java.lang.Integer ruleNumber)
          The rule number for the entry.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkAclEntry

public NetworkAclEntry()
Method Detail

getRuleNumber

public java.lang.Integer getRuleNumber()
The rule number for the entry. ACL entries are processed in ascending order by rule number.

Returns:
The rule number for the entry. ACL entries are processed in ascending order by rule number.

setRuleNumber

public void setRuleNumber(java.lang.Integer ruleNumber)
The rule number for the entry. ACL entries are processed in ascending order by rule number.

Parameters:
ruleNumber - The rule number for the entry. ACL entries are processed in ascending order by rule number.

withRuleNumber

public NetworkAclEntry withRuleNumber(java.lang.Integer ruleNumber)
The rule number for the entry. ACL entries are processed in ascending order by rule number.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ruleNumber - The rule number for the entry. ACL entries are processed in ascending order by rule number.
Returns:
A reference to this updated object so that method calls can be chained together.

getProtocol

public java.lang.String getProtocol()
The protocol. A value of -1 means all protocols.

Returns:
The protocol. A value of -1 means all protocols.

setProtocol

public void setProtocol(java.lang.String protocol)
The protocol. A value of -1 means all protocols.

Parameters:
protocol - The protocol. A value of -1 means all protocols.

withProtocol

public NetworkAclEntry withProtocol(java.lang.String protocol)
The protocol. A value of -1 means all protocols.

Returns a reference to this object so that method calls can be chained together.

Parameters:
protocol - The protocol. A value of -1 means all protocols.
Returns:
A reference to this updated object so that method calls can be chained together.

getRuleAction

public java.lang.String getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

Returns:
Indicates whether to allow or deny the traffic that matches the rule.
See Also:
RuleAction

setRuleAction

public void setRuleAction(java.lang.String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
See Also:
RuleAction

withRuleAction

public NetworkAclEntry withRuleAction(java.lang.String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
See Also:
RuleAction

withRuleAction

public NetworkAclEntry withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RuleAction

isEgress

public java.lang.Boolean isEgress()
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

Returns:
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

setEgress

public void setEgress(java.lang.Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

Parameters:
egress - Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

withEgress

public NetworkAclEntry withEgress(java.lang.Boolean egress)
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

Returns a reference to this object so that method calls can be chained together.

Parameters:
egress - Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
Returns:
A reference to this updated object so that method calls can be chained together.

getEgress

public java.lang.Boolean getEgress()
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

Returns:
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

getCidrBlock

public java.lang.String getCidrBlock()
The network range to allow or deny, in CIDR notation.

Returns:
The network range to allow or deny, in CIDR notation.

setCidrBlock

public void setCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.

Parameters:
cidrBlock - The network range to allow or deny, in CIDR notation.

withCidrBlock

public NetworkAclEntry withCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cidrBlock - The network range to allow or deny, in CIDR notation.
Returns:
A reference to this updated object so that method calls can be chained together.

getIcmpTypeCode

public IcmpTypeCode getIcmpTypeCode()
ICMP protocol: The ICMP type and code.

Returns:
ICMP protocol: The ICMP type and code.

setIcmpTypeCode

public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.

Parameters:
icmpTypeCode - ICMP protocol: The ICMP type and code.

withIcmpTypeCode

public NetworkAclEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.

Returns a reference to this object so that method calls can be chained together.

Parameters:
icmpTypeCode - ICMP protocol: The ICMP type and code.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withPortRange

public NetworkAclEntry withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.

Returns a reference to this object so that method calls can be chained together.

Parameters:
portRange - TCP or UDP protocols: The range of ports the rule applies to.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.