/* * Copyright 2018-2023 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains details about an Amazon EC2 network access control list (ACL). *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2NetworkAclDetails implements Serializable, Cloneable, StructuredPojo { /** ** Whether this is the default network ACL for the VPC. *
*/ private Boolean isDefault; /** ** The identifier of the network ACL. *
*/ private String networkAclId; /** ** The identifier of the Amazon Web Services account that owns the network ACL. *
*/ private String ownerId; /** ** The identifier of the VPC for the network ACL. *
*/ private String vpcId; /** ** Associations between the network ACL and subnets. *
*/ private java.util.List* The set of rules in the network ACL. *
*/ private java.util.List* Whether this is the default network ACL for the VPC. *
* * @param isDefault * Whether this is the default network ACL for the VPC. */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** ** Whether this is the default network ACL for the VPC. *
* * @return Whether this is the default network ACL for the VPC. */ public Boolean getIsDefault() { return this.isDefault; } /** ** Whether this is the default network ACL for the VPC. *
* * @param isDefault * Whether this is the default network ACL for the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withIsDefault(Boolean isDefault) { setIsDefault(isDefault); return this; } /** ** Whether this is the default network ACL for the VPC. *
* * @return Whether this is the default network ACL for the VPC. */ public Boolean isDefault() { return this.isDefault; } /** ** The identifier of the network ACL. *
* * @param networkAclId * The identifier of the network ACL. */ public void setNetworkAclId(String networkAclId) { this.networkAclId = networkAclId; } /** ** The identifier of the network ACL. *
* * @return The identifier of the network ACL. */ public String getNetworkAclId() { return this.networkAclId; } /** ** The identifier of the network ACL. *
* * @param networkAclId * The identifier of the network ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withNetworkAclId(String networkAclId) { setNetworkAclId(networkAclId); return this; } /** ** The identifier of the Amazon Web Services account that owns the network ACL. *
* * @param ownerId * The identifier of the Amazon Web Services account that owns the network ACL. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** ** The identifier of the Amazon Web Services account that owns the network ACL. *
* * @return The identifier of the Amazon Web Services account that owns the network ACL. */ public String getOwnerId() { return this.ownerId; } /** ** The identifier of the Amazon Web Services account that owns the network ACL. *
* * @param ownerId * The identifier of the Amazon Web Services account that owns the network ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** ** The identifier of the VPC for the network ACL. *
* * @param vpcId * The identifier of the VPC for the network ACL. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The identifier of the VPC for the network ACL. *
* * @return The identifier of the VPC for the network ACL. */ public String getVpcId() { return this.vpcId; } /** ** The identifier of the VPC for the network ACL. *
* * @param vpcId * The identifier of the VPC for the network ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** Associations between the network ACL and subnets. *
* * @return Associations between the network ACL and subnets. */ public java.util.List* Associations between the network ACL and subnets. *
* * @param associations * Associations between the network ACL and subnets. */ public void setAssociations(java.util.Collection* Associations between the network ACL and subnets. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAssociations(java.util.Collection)} or {@link #withAssociations(java.util.Collection)} if you want to * override the existing values. *
* * @param associations * Associations between the network ACL and subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withAssociations(AwsEc2NetworkAclAssociation... associations) { if (this.associations == null) { setAssociations(new java.util.ArrayList* Associations between the network ACL and subnets. *
* * @param associations * Associations between the network ACL and subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withAssociations(java.util.Collection* The set of rules in the network ACL. *
* * @return The set of rules in the network ACL. */ public java.util.List* The set of rules in the network ACL. *
* * @param entries * The set of rules in the network ACL. */ public void setEntries(java.util.Collection* The set of rules in the network ACL. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntries(java.util.Collection)} or {@link #withEntries(java.util.Collection)} if you want to override * the existing values. *
* * @param entries * The set of rules in the network ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withEntries(AwsEc2NetworkAclEntry... entries) { if (this.entries == null) { setEntries(new java.util.ArrayList* The set of rules in the network ACL. *
* * @param entries * The set of rules in the network ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkAclDetails withEntries(java.util.Collection