com.amazonaws.services.ec2.model
Class NetworkAcl

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

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

Describes a network ACL.

See Also:
Serialized Form

Constructor Summary
NetworkAcl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<NetworkAclAssociation> getAssociations()
          Any associations between the network ACL and one or more subnets
 java.util.List<NetworkAclEntry> getEntries()
          One or more entries (rules) in the network ACL.
 java.lang.Boolean getIsDefault()
          Indicates whether this is the default network ACL for the VPC.
 java.lang.String getNetworkAclId()
          The ID of the network ACL.
 java.util.List<Tag> getTags()
          Any tags assigned to the network ACL.
 java.lang.String getVpcId()
          The ID of the VPC for the network ACL.
 int hashCode()
           
 java.lang.Boolean isDefault()
          Indicates whether this is the default network ACL for the VPC.
 void setAssociations(java.util.Collection<NetworkAclAssociation> associations)
          Any associations between the network ACL and one or more subnets
 void setEntries(java.util.Collection<NetworkAclEntry> entries)
          One or more entries (rules) in the network ACL.
 void setIsDefault(java.lang.Boolean isDefault)
          Indicates whether this is the default network ACL for the VPC.
 void setNetworkAclId(java.lang.String networkAclId)
          The ID of the network ACL.
 void setTags(java.util.Collection<Tag> tags)
          Any tags assigned to the network ACL.
 void setVpcId(java.lang.String vpcId)
          The ID of the VPC for the network ACL.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 NetworkAcl withAssociations(java.util.Collection<NetworkAclAssociation> associations)
          Any associations between the network ACL and one or more subnets
 NetworkAcl withAssociations(NetworkAclAssociation... associations)
          Any associations between the network ACL and one or more subnets
 NetworkAcl withEntries(java.util.Collection<NetworkAclEntry> entries)
          One or more entries (rules) in the network ACL.
 NetworkAcl withEntries(NetworkAclEntry... entries)
          One or more entries (rules) in the network ACL.
 NetworkAcl withIsDefault(java.lang.Boolean isDefault)
          Indicates whether this is the default network ACL for the VPC.
 NetworkAcl withNetworkAclId(java.lang.String networkAclId)
          The ID of the network ACL.
 NetworkAcl withTags(java.util.Collection<Tag> tags)
          Any tags assigned to the network ACL.
 NetworkAcl withTags(Tag... tags)
          Any tags assigned to the network ACL.
 NetworkAcl withVpcId(java.lang.String vpcId)
          The ID of the VPC for the network ACL.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkAcl

public NetworkAcl()
Method Detail

getNetworkAclId

public java.lang.String getNetworkAclId()
The ID of the network ACL.

Returns:
The ID of the network ACL.

setNetworkAclId

public void setNetworkAclId(java.lang.String networkAclId)
The ID of the network ACL.

Parameters:
networkAclId - The ID of the network ACL.

withNetworkAclId

public NetworkAcl withNetworkAclId(java.lang.String networkAclId)
The ID of the network ACL.

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

Parameters:
networkAclId - The ID of the network ACL.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public java.lang.String getVpcId()
The ID of the VPC for the network ACL.

Returns:
The ID of the VPC for the network ACL.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the VPC for the network ACL.

Parameters:
vpcId - The ID of the VPC for the network ACL.

withVpcId

public NetworkAcl withVpcId(java.lang.String vpcId)
The ID of the VPC for the network ACL.

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

Parameters:
vpcId - The ID of the VPC for the network ACL.
Returns:
A reference to this updated object so that method calls can be chained together.

isDefault

public java.lang.Boolean isDefault()
Indicates whether this is the default network ACL for the VPC.

Returns:
Indicates whether this is the default network ACL for the VPC.

setIsDefault

public void setIsDefault(java.lang.Boolean isDefault)
Indicates whether this is the default network ACL for the VPC.

Parameters:
isDefault - Indicates whether this is the default network ACL for the VPC.

withIsDefault

public NetworkAcl withIsDefault(java.lang.Boolean isDefault)
Indicates whether this is the default network ACL for the VPC.

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

Parameters:
isDefault - Indicates whether this is the default network ACL for the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getIsDefault

public java.lang.Boolean getIsDefault()
Indicates whether this is the default network ACL for the VPC.

Returns:
Indicates whether this is the default network ACL for the VPC.

getEntries

public java.util.List<NetworkAclEntry> getEntries()
One or more entries (rules) in the network ACL.

Returns:
One or more entries (rules) in the network ACL.

setEntries

public void setEntries(java.util.Collection<NetworkAclEntry> entries)
One or more entries (rules) in the network ACL.

Parameters:
entries - One or more entries (rules) in the network ACL.

withEntries

public NetworkAcl withEntries(NetworkAclEntry... entries)
One or more entries (rules) in the network ACL.

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

Parameters:
entries - One or more entries (rules) in the network ACL.
Returns:
A reference to this updated object so that method calls can be chained together.

withEntries

public NetworkAcl withEntries(java.util.Collection<NetworkAclEntry> entries)
One or more entries (rules) in the network ACL.

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

Parameters:
entries - One or more entries (rules) in the network ACL.
Returns:
A reference to this updated object so that method calls can be chained together.

getAssociations

public java.util.List<NetworkAclAssociation> getAssociations()
Any associations between the network ACL and one or more subnets

Returns:
Any associations between the network ACL and one or more subnets

setAssociations

public void setAssociations(java.util.Collection<NetworkAclAssociation> associations)
Any associations between the network ACL and one or more subnets

Parameters:
associations - Any associations between the network ACL and one or more subnets

withAssociations

public NetworkAcl withAssociations(NetworkAclAssociation... associations)
Any associations between the network ACL and one or more subnets

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

Parameters:
associations - Any associations between the network ACL and one or more subnets
Returns:
A reference to this updated object so that method calls can be chained together.

withAssociations

public NetworkAcl withAssociations(java.util.Collection<NetworkAclAssociation> associations)
Any associations between the network ACL and one or more subnets

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

Parameters:
associations - Any associations between the network ACL and one or more subnets
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the network ACL.

Returns:
Any tags assigned to the network ACL.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the network ACL.

Parameters:
tags - Any tags assigned to the network ACL.

withTags

public NetworkAcl withTags(Tag... tags)
Any tags assigned to the network ACL.

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

Parameters:
tags - Any tags assigned to the network ACL.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public NetworkAcl withTags(java.util.Collection<Tag> tags)
Any tags assigned to the network ACL.

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

Parameters:
tags - Any tags assigned to the network ACL.
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.