/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.ec2.model; import java.io.Serializable; /** *
* Describes a network ACL. *
*/ public class NetworkAcl implements Serializable { /** * The ID of the network ACL. */ private String networkAclId; /** * The ID of the VPC for the network ACL. */ private String vpcId; /** * Indicates whether this is the default network ACL for the VPC. */ private Boolean isDefault; /** * One or more entries (rules) in the network ACL. */ private com.amazonaws.internal.ListWithAutoConstructFlag* Returns a reference to this object so that method calls can be chained together. * * @param networkAclId The ID of the network ACL. * * @return A reference to this updated object so that method calls can be chained * together. */ public NetworkAcl withNetworkAclId(String networkAclId) { this.networkAclId = networkAclId; return this; } /** * The ID of the VPC for the network ACL. * * @return The ID of the VPC for the network ACL. */ public String getVpcId() { return vpcId; } /** * The ID of the VPC for the network ACL. * * @param vpcId The ID of the VPC for the network ACL. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** * The ID of the VPC for the network ACL. *
* Returns a reference to this object so that method calls can be chained together. * * @param vpcId The ID of the VPC for the network ACL. * * @return A reference to this updated object so that method calls can be chained * together. */ public NetworkAcl withVpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * Indicates whether this is the default network ACL for the VPC. * * @return Indicates whether this is the default network ACL for the VPC. */ public Boolean isDefault() { return isDefault; } /** * Indicates whether this is the default network ACL for the VPC. * * @param isDefault Indicates whether this is the default network ACL for the VPC. */ public void setIsDefault(Boolean isDefault) { this.isDefault = 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.
*
* @param isDefault Indicates whether this is the default network ACL for the VPC.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* Indicates whether this is the default network ACL for the VPC.
*
* @return Indicates whether this is the default network ACL for the VPC.
*/
public Boolean getIsDefault() {
return isDefault;
}
/**
* One or more entries (rules) in the network ACL.
*
* @return One or more entries (rules) in the network ACL.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param entries One or more entries (rules) in the network ACL.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withEntries(NetworkAclEntry... entries) {
if (getEntries() == null) setEntries(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param entries One or more entries (rules) in the network ACL.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withEntries(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param associations Any associations between the network ACL and one or more subnets
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withAssociations(NetworkAclAssociation... associations) {
if (getAssociations() == null) setAssociations(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param associations Any associations between the network ACL and one or more subnets
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withAssociations(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param tags Any tags assigned to the network ACL.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withTags(Tag... tags) {
if (getTags() == null) setTags(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param tags Any tags assigned to the network ACL.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkAcl withTags(java.util.Collection