/** * 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 namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes an IPv6 address pool.

See Also:

AWS API * Reference

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

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } /** *

The ID of the address pool.

*/ inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } /** *

The ID of the address pool.

*/ inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; } /** *

The ID of the address pool.

*/ inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); } /** *

The ID of the address pool.

*/ inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); } /** *

The ID of the address pool.

*/ inline Ipv6Pool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;} /** *

The ID of the address pool.

*/ inline Ipv6Pool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;} /** *

The ID of the address pool.

*/ inline Ipv6Pool& WithPoolId(const char* value) { SetPoolId(value); return *this;} /** *

The description for the address pool.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the address pool.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the address pool.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for the address pool.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for the address pool.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for the address pool.

*/ inline Ipv6Pool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the address pool.

*/ inline Ipv6Pool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the address pool.

*/ inline Ipv6Pool& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The CIDR blocks for the address pool.

*/ inline const Aws::Vector& GetPoolCidrBlocks() const{ return m_poolCidrBlocks; } /** *

The CIDR blocks for the address pool.

*/ inline bool PoolCidrBlocksHasBeenSet() const { return m_poolCidrBlocksHasBeenSet; } /** *

The CIDR blocks for the address pool.

*/ inline void SetPoolCidrBlocks(const Aws::Vector& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = value; } /** *

The CIDR blocks for the address pool.

*/ inline void SetPoolCidrBlocks(Aws::Vector&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks = std::move(value); } /** *

The CIDR blocks for the address pool.

*/ inline Ipv6Pool& WithPoolCidrBlocks(const Aws::Vector& value) { SetPoolCidrBlocks(value); return *this;} /** *

The CIDR blocks for the address pool.

*/ inline Ipv6Pool& WithPoolCidrBlocks(Aws::Vector&& value) { SetPoolCidrBlocks(std::move(value)); return *this;} /** *

The CIDR blocks for the address pool.

*/ inline Ipv6Pool& AddPoolCidrBlocks(const PoolCidrBlock& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.push_back(value); return *this; } /** *

The CIDR blocks for the address pool.

*/ inline Ipv6Pool& AddPoolCidrBlocks(PoolCidrBlock&& value) { m_poolCidrBlocksHasBeenSet = true; m_poolCidrBlocks.push_back(std::move(value)); return *this; } /** *

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

*/ inline Ipv6Pool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_poolId; bool m_poolIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_poolCidrBlocks; bool m_poolCidrBlocksHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws