Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class NetworkAclEntry

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

public class NetworkAclEntry
extends Object
implements Serializable

Network Acl Entry

See Also:
Serialized Form

Constructor Summary
NetworkAclEntry()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCidrBlock()
          Returns the value of the CidrBlock property for this object.
 Boolean getEgress()
          Returns the value of the Egress property for this object.
 IcmpTypeCode getIcmpTypeCode()
           
 PortRange getPortRange()
           
 String getProtocol()
          Returns the value of the Protocol property for this object.
 String getRuleAction()
          Returns the value of the RuleAction property for this object.
 Integer getRuleNumber()
          Returns the value of the RuleNumber property for this object.
 int hashCode()
           
 Boolean isEgress()
          Returns the value of the Egress property for this object.
 void setCidrBlock(String cidrBlock)
          Sets the value of the CidrBlock property for this object.
 void setEgress(Boolean egress)
          Sets the value of the Egress property for this object.
 void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
           
 void setPortRange(PortRange portRange)
           
 void setProtocol(String protocol)
          Sets the value of the Protocol property for this object.
 void setRuleAction(RuleAction ruleAction)
          Sets the value of the RuleAction property for this object.
 void setRuleAction(String ruleAction)
          Sets the value of the RuleAction property for this object.
 void setRuleNumber(Integer ruleNumber)
          Sets the value of the RuleNumber property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 NetworkAclEntry withCidrBlock(String cidrBlock)
          Sets the value of the CidrBlock property for this object.
 NetworkAclEntry withEgress(Boolean egress)
          Sets the value of the Egress property for this object.
 NetworkAclEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
           Returns a reference to this object so that method calls can be chained together.
 NetworkAclEntry withPortRange(PortRange portRange)
           Returns a reference to this object so that method calls can be chained together.
 NetworkAclEntry withProtocol(String protocol)
          Sets the value of the Protocol property for this object.
 NetworkAclEntry withRuleAction(RuleAction ruleAction)
          Sets the value of the RuleAction property for this object.
 NetworkAclEntry withRuleAction(String ruleAction)
          Sets the value of the RuleAction property for this object.
 NetworkAclEntry withRuleNumber(Integer ruleNumber)
          Sets the value of the RuleNumber property for this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkAclEntry

public NetworkAclEntry()
Method Detail

getRuleNumber

public Integer getRuleNumber()
Returns the value of the RuleNumber property for this object.

Returns:
The value of the RuleNumber property for this object.

setRuleNumber

public void setRuleNumber(Integer ruleNumber)
Sets the value of the RuleNumber property for this object.

Parameters:
ruleNumber - The new value for the RuleNumber property for this object.

withRuleNumber

public NetworkAclEntry withRuleNumber(Integer ruleNumber)
Sets the value of the RuleNumber property for this object.

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

Parameters:
ruleNumber - The new value for the RuleNumber property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getProtocol

public String getProtocol()
Returns the value of the Protocol property for this object.

Returns:
The value of the Protocol property for this object.

setProtocol

public void setProtocol(String protocol)
Sets the value of the Protocol property for this object.

Parameters:
protocol - The new value for the Protocol property for this object.

withProtocol

public NetworkAclEntry withProtocol(String protocol)
Sets the value of the Protocol property for this object.

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

Parameters:
protocol - The new value for the Protocol property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getRuleAction

public String getRuleAction()
Returns the value of the RuleAction property for this object.

Constraints:
Allowed Values: allow, deny

Returns:
The value of the RuleAction property for this object.
See Also:
RuleAction

setRuleAction

public void setRuleAction(String ruleAction)
Sets the value of the RuleAction property for this object.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - The new value for the RuleAction property for this object.
See Also:
RuleAction

withRuleAction

public NetworkAclEntry withRuleAction(String ruleAction)
Sets the value of the RuleAction property for this object.

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

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - The new value for the RuleAction property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RuleAction

setRuleAction

public void setRuleAction(RuleAction ruleAction)
Sets the value of the RuleAction property for this object.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - The new value for the RuleAction property for this object.
See Also:
RuleAction

withRuleAction

public NetworkAclEntry withRuleAction(RuleAction ruleAction)
Sets the value of the RuleAction property for this object.

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

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - The new value for the RuleAction property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RuleAction

isEgress

public Boolean isEgress()
Returns the value of the Egress property for this object.

Returns:
The value of the Egress property for this object.

setEgress

public void setEgress(Boolean egress)
Sets the value of the Egress property for this object.

Parameters:
egress - The new value for the Egress property for this object.

withEgress

public NetworkAclEntry withEgress(Boolean egress)
Sets the value of the Egress property for this object.

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

Parameters:
egress - The new value for the Egress property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getEgress

public Boolean getEgress()
Returns the value of the Egress property for this object.

Returns:
The value of the Egress property for this object.

getCidrBlock

public String getCidrBlock()
Returns the value of the CidrBlock property for this object.

Returns:
The value of the CidrBlock property for this object.

setCidrBlock

public void setCidrBlock(String cidrBlock)
Sets the value of the CidrBlock property for this object.

Parameters:
cidrBlock - The new value for the CidrBlock property for this object.

withCidrBlock

public NetworkAclEntry withCidrBlock(String cidrBlock)
Sets the value of the CidrBlock property for this object.

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

Parameters:
cidrBlock - The new value for the CidrBlock property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getIcmpTypeCode

public IcmpTypeCode getIcmpTypeCode()
Returns:

setIcmpTypeCode

public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Parameters:
icmpTypeCode -

withIcmpTypeCode

public NetworkAclEntry withIcmpTypeCode(IcmpTypeCode icmpTypeCode)

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

Parameters:
icmpTypeCode -
Returns:
A reference to this updated object so that method calls can be chained together.

getPortRange

public PortRange getPortRange()
Returns:

setPortRange

public void setPortRange(PortRange portRange)
Parameters:
portRange -

withPortRange

public NetworkAclEntry withPortRange(PortRange portRange)

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

Parameters:
portRange -
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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