public class NetworkAcl
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a network ACL.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<NetworkAclAssociation> |
associations
Any associations between the network ACL and one or more subnets
|
private SdkInternalList<NetworkAclEntry> |
entries
One or more entries (rules) in the network ACL.
|
private java.lang.Boolean |
isDefault
Indicates whether this is the default network ACL for the VPC.
|
private java.lang.String |
networkAclId
The ID of the network ACL.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the network ACL.
|
private java.lang.String |
vpcId
The ID of the VPC for the network ACL.
|
Constructor and Description |
---|
NetworkAcl() |
Modifier and Type | Method and Description |
---|---|
NetworkAcl |
clone() |
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.
|
private java.lang.String networkAclId
The ID of the network ACL.
private java.lang.String vpcId
The ID of the VPC for the network ACL.
private java.lang.Boolean isDefault
Indicates whether this is the default network ACL for the VPC.
private SdkInternalList<NetworkAclEntry> entries
One or more entries (rules) in the network ACL.
private SdkInternalList<NetworkAclAssociation> associations
Any associations between the network ACL and one or more subnets
private SdkInternalList<Tag> tags
Any tags assigned to the network ACL.
public void setNetworkAclId(java.lang.String networkAclId)
The ID of the network ACL.
networkAclId
- The ID of the network ACL.public java.lang.String getNetworkAclId()
The ID of the network ACL.
public NetworkAcl withNetworkAclId(java.lang.String networkAclId)
The ID of the network ACL.
networkAclId
- The ID of the network ACL.public void setVpcId(java.lang.String vpcId)
The ID of the VPC for the network ACL.
vpcId
- The ID of the VPC for the network ACL.public java.lang.String getVpcId()
The ID of the VPC for the network ACL.
public NetworkAcl withVpcId(java.lang.String vpcId)
The ID of the VPC for the network ACL.
vpcId
- The ID of the VPC for the network ACL.public void setIsDefault(java.lang.Boolean isDefault)
Indicates whether this is the default network ACL for the VPC.
isDefault
- Indicates whether this is the default network ACL for the VPC.public java.lang.Boolean getIsDefault()
Indicates whether this is the default network ACL for the VPC.
public NetworkAcl withIsDefault(java.lang.Boolean isDefault)
Indicates whether this is the default network ACL for the VPC.
isDefault
- Indicates whether this is the default network ACL for the VPC.public java.lang.Boolean isDefault()
Indicates whether this is the default network ACL for the VPC.
public java.util.List<NetworkAclEntry> getEntries()
One or more entries (rules) in the network ACL.
public void setEntries(java.util.Collection<NetworkAclEntry> entries)
One or more entries (rules) in the network ACL.
entries
- One or more entries (rules) in the network ACL.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)
or
withEntries(java.util.Collection)
if you want to override the
existing values.
entries
- One or more entries (rules) in the network ACL.public NetworkAcl withEntries(java.util.Collection<NetworkAclEntry> entries)
One or more entries (rules) in the network ACL.
entries
- One or more entries (rules) in the network ACL.public java.util.List<NetworkAclAssociation> getAssociations()
Any associations between the network ACL and one or more subnets
public void setAssociations(java.util.Collection<NetworkAclAssociation> associations)
Any associations between the network ACL and one or more subnets
associations
- Any associations between the network ACL and one or more subnetspublic 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)
or
withAssociations(java.util.Collection)
if you want to override
the existing values.
associations
- Any associations between the network ACL and one or more subnetspublic NetworkAcl withAssociations(java.util.Collection<NetworkAclAssociation> associations)
Any associations between the network ACL and one or more subnets
associations
- Any associations between the network ACL and one or more subnetspublic java.util.List<Tag> getTags()
Any tags assigned to the network ACL.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the network ACL.
tags
- Any tags assigned to the network ACL.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)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the network ACL.public NetworkAcl withTags(java.util.Collection<Tag> tags)
Any tags assigned to the network ACL.
tags
- Any tags assigned to the network ACL.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NetworkAcl clone()
clone
in class java.lang.Object