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

Describes an association between a network ACL and a subnet.

See * Also:

AWS * API Reference

*/ class NetworkAclAssociation { public: AWS_EC2_API NetworkAclAssociation(); AWS_EC2_API NetworkAclAssociation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API NetworkAclAssociation& 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; /** *

The ID of the association between a network ACL and a subnet.

*/ inline const Aws::String& GetNetworkAclAssociationId() const{ return m_networkAclAssociationId; } /** *

The ID of the association between a network ACL and a subnet.

*/ inline bool NetworkAclAssociationIdHasBeenSet() const { return m_networkAclAssociationIdHasBeenSet; } /** *

The ID of the association between a network ACL and a subnet.

*/ inline void SetNetworkAclAssociationId(const Aws::String& value) { m_networkAclAssociationIdHasBeenSet = true; m_networkAclAssociationId = value; } /** *

The ID of the association between a network ACL and a subnet.

*/ inline void SetNetworkAclAssociationId(Aws::String&& value) { m_networkAclAssociationIdHasBeenSet = true; m_networkAclAssociationId = std::move(value); } /** *

The ID of the association between a network ACL and a subnet.

*/ inline void SetNetworkAclAssociationId(const char* value) { m_networkAclAssociationIdHasBeenSet = true; m_networkAclAssociationId.assign(value); } /** *

The ID of the association between a network ACL and a subnet.

*/ inline NetworkAclAssociation& WithNetworkAclAssociationId(const Aws::String& value) { SetNetworkAclAssociationId(value); return *this;} /** *

The ID of the association between a network ACL and a subnet.

*/ inline NetworkAclAssociation& WithNetworkAclAssociationId(Aws::String&& value) { SetNetworkAclAssociationId(std::move(value)); return *this;} /** *

The ID of the association between a network ACL and a subnet.

*/ inline NetworkAclAssociation& WithNetworkAclAssociationId(const char* value) { SetNetworkAclAssociationId(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 NetworkAclAssociation& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;} /** *

The ID of the network ACL.

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

The ID of the network ACL.

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

The ID of the subnet.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet.

*/ inline NetworkAclAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet.

*/ inline NetworkAclAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet.

*/ inline NetworkAclAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} private: Aws::String m_networkAclAssociationId; bool m_networkAclAssociationIdHasBeenSet = false; Aws::String m_networkAclId; bool m_networkAclIdHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws