/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a network ACL.

See Also:

AWS API * Reference

*/ class NetworkAcl { public: AWS_EC2_API NetworkAcl(); AWS_EC2_API NetworkAcl(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API NetworkAcl& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Any associations between the network ACL and one or more subnets

*/ inline const Aws::Vector& GetAssociations() const{ return m_associations; } /** *

Any associations between the network ACL and one or more subnets

*/ inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; } /** *

Any associations between the network ACL and one or more subnets

*/ inline void SetAssociations(const Aws::Vector& value) { m_associationsHasBeenSet = true; m_associations = value; } /** *

Any associations between the network ACL and one or more subnets

*/ inline void SetAssociations(Aws::Vector&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); } /** *

Any associations between the network ACL and one or more subnets

*/ inline NetworkAcl& WithAssociations(const Aws::Vector& value) { SetAssociations(value); return *this;} /** *

Any associations between the network ACL and one or more subnets

*/ inline NetworkAcl& WithAssociations(Aws::Vector&& value) { SetAssociations(std::move(value)); return *this;} /** *

Any associations between the network ACL and one or more subnets

*/ inline NetworkAcl& AddAssociations(const NetworkAclAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; } /** *

Any associations between the network ACL and one or more subnets

*/ inline NetworkAcl& AddAssociations(NetworkAclAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; } /** *

The entries (rules) in the network ACL.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } /** *

The entries (rules) in the network ACL.

*/ inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } /** *

The entries (rules) in the network ACL.

*/ inline void SetEntries(const Aws::Vector& value) { m_entriesHasBeenSet = true; m_entries = value; } /** *

The entries (rules) in the network ACL.

*/ inline void SetEntries(Aws::Vector&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } /** *

The entries (rules) in the network ACL.

*/ inline NetworkAcl& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} /** *

The entries (rules) in the network ACL.

*/ inline NetworkAcl& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} /** *

The entries (rules) in the network ACL.

*/ inline NetworkAcl& AddEntries(const NetworkAclEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } /** *

The entries (rules) in the network ACL.

*/ inline NetworkAcl& AddEntries(NetworkAclEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; } /** *

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

*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *

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

*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *

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

*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *

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

*/ inline NetworkAcl& WithIsDefault(bool value) { SetIsDefault(value); return *this;} /** *

The ID of the network ACL.

*/ inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; } /** *

The ID of the network ACL.

*/ inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; } /** *

The ID of the network ACL.

*/ inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; } /** *

The ID of the network ACL.

*/ inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); } /** *

The ID of the network ACL.

*/ inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); } /** *

The ID of the network ACL.

*/ inline NetworkAcl& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;} /** *

The ID of the network ACL.

*/ inline NetworkAcl& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;} /** *

The ID of the network ACL.

*/ inline NetworkAcl& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;} /** *

Any tags assigned to the network ACL.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Any tags assigned to the network ACL.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Any tags assigned to the network ACL.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Any tags assigned to the network ACL.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Any tags assigned to the network ACL.

*/ inline NetworkAcl& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Any tags assigned to the network ACL.

*/ inline NetworkAcl& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Any tags assigned to the network ACL.

*/ inline NetworkAcl& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Any tags assigned to the network ACL.

*/ inline NetworkAcl& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The ID of the VPC for the network ACL.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC for the network ACL.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC for the network ACL.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC for the network ACL.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC for the network ACL.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC for the network ACL.

*/ inline NetworkAcl& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC for the network ACL.

*/ inline NetworkAcl& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC for the network ACL.

*/ inline NetworkAcl& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline NetworkAcl& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline NetworkAcl& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the network ACL.

*/ inline NetworkAcl& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} private: Aws::Vector m_associations; bool m_associationsHasBeenSet = false; Aws::Vector m_entries; bool m_entriesHasBeenSet = false; bool m_isDefault; bool m_isDefaultHasBeenSet = false; Aws::String m_networkAclId; bool m_networkAclIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws