Class NetworkAcl
- java.lang.Object
-
- com.amazonaws.services.ec2.model.NetworkAcl
-
- All Implemented Interfaces:
Serializable,Cloneable
public class NetworkAcl extends Object implements Serializable, Cloneable
Describes a network ACL.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkAcl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkAclclone()booleanequals(Object obj)List<NetworkAclAssociation>getAssociations()Any associations between the network ACL and one or more subnetsList<NetworkAclEntry>getEntries()One or more entries (rules) in the network ACL.BooleangetIsDefault()Indicates whether this is the default network ACL for the VPC.StringgetNetworkAclId()The ID of the network ACL.List<Tag>getTags()Any tags assigned to the network ACL.StringgetVpcId()The ID of the VPC for the network ACL.inthashCode()BooleanisDefault()Indicates whether this is the default network ACL for the VPC.voidsetAssociations(Collection<NetworkAclAssociation> associations)Any associations between the network ACL and one or more subnetsvoidsetEntries(Collection<NetworkAclEntry> entries)One or more entries (rules) in the network ACL.voidsetIsDefault(Boolean isDefault)Indicates whether this is the default network ACL for the VPC.voidsetNetworkAclId(String networkAclId)The ID of the network ACL.voidsetTags(Collection<Tag> tags)Any tags assigned to the network ACL.voidsetVpcId(String vpcId)The ID of the VPC for the network ACL.StringtoString()Returns a string representation of this object; useful for testing and debugging.NetworkAclwithAssociations(NetworkAclAssociation... associations)Any associations between the network ACL and one or more subnetsNetworkAclwithAssociations(Collection<NetworkAclAssociation> associations)Any associations between the network ACL and one or more subnetsNetworkAclwithEntries(NetworkAclEntry... entries)One or more entries (rules) in the network ACL.NetworkAclwithEntries(Collection<NetworkAclEntry> entries)One or more entries (rules) in the network ACL.NetworkAclwithIsDefault(Boolean isDefault)Indicates whether this is the default network ACL for the VPC.NetworkAclwithNetworkAclId(String networkAclId)The ID of the network ACL.NetworkAclwithTags(Tag... tags)Any tags assigned to the network ACL.NetworkAclwithTags(Collection<Tag> tags)Any tags assigned to the network ACL.NetworkAclwithVpcId(String vpcId)The ID of the VPC for the network ACL.
-
-
-
Method Detail
-
setNetworkAclId
public void setNetworkAclId(String networkAclId)
The ID of the network ACL.
- Parameters:
networkAclId- The ID of the network ACL.
-
getNetworkAclId
public String getNetworkAclId()
The ID of the network ACL.
- Returns:
- The ID of the network ACL.
-
withNetworkAclId
public NetworkAcl withNetworkAclId(String networkAclId)
The ID of the network ACL.
- Parameters:
networkAclId- The ID of the network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC for the network ACL.
- Parameters:
vpcId- The ID of the VPC for the network ACL.
-
getVpcId
public String getVpcId()
The ID of the VPC for the network ACL.
- Returns:
- The ID of the VPC for the network ACL.
-
withVpcId
public NetworkAcl withVpcId(String vpcId)
The ID of the VPC for the network ACL.
- Parameters:
vpcId- The ID of the VPC for the network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIsDefault
public void setIsDefault(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.
-
getIsDefault
public 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.
-
withIsDefault
public NetworkAcl withIsDefault(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDefault
public 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.
-
getEntries
public 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(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.
NOTE: This method appends the values to the existing list (if any). Use
setEntries(java.util.Collection)orwithEntries(java.util.Collection)if you want to override the existing values.- Parameters:
entries- One or more entries (rules) in the network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEntries
public NetworkAcl withEntries(Collection<NetworkAclEntry> entries)
One or more entries (rules) in the network ACL.
- Parameters:
entries- One or more entries (rules) in the network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAssociations
public 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(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
NOTE: This method appends the values to the existing list (if any). Use
setAssociations(java.util.Collection)orwithAssociations(java.util.Collection)if you want to override the existing values.- Parameters:
associations- Any associations between the network ACL and one or more subnets- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAssociations
public NetworkAcl withAssociations(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- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the network ACL.
- Returns:
- Any tags assigned to the network ACL.
-
setTags
public void setTags(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.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- Any tags assigned to the network ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public NetworkAcl withTags(Collection<Tag> tags)
Any tags assigned to the network ACL.
- Parameters:
tags- Any tags assigned to the network ACL.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NetworkAcl clone()
-
-