/** * 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 IPv4 address pool.

See Also:

AWS * API Reference

*/ class PublicIpv4Pool { public: AWS_EC2_API PublicIpv4Pool(); AWS_EC2_API PublicIpv4Pool(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PublicIpv4Pool& 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 PublicIpv4Pool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;} /** *

The ID of the address pool.

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

The ID of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

A description of the address pool.

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

The address ranges.

*/ inline const Aws::Vector& GetPoolAddressRanges() const{ return m_poolAddressRanges; } /** *

The address ranges.

*/ inline bool PoolAddressRangesHasBeenSet() const { return m_poolAddressRangesHasBeenSet; } /** *

The address ranges.

*/ inline void SetPoolAddressRanges(const Aws::Vector& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges = value; } /** *

The address ranges.

*/ inline void SetPoolAddressRanges(Aws::Vector&& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges = std::move(value); } /** *

The address ranges.

*/ inline PublicIpv4Pool& WithPoolAddressRanges(const Aws::Vector& value) { SetPoolAddressRanges(value); return *this;} /** *

The address ranges.

*/ inline PublicIpv4Pool& WithPoolAddressRanges(Aws::Vector&& value) { SetPoolAddressRanges(std::move(value)); return *this;} /** *

The address ranges.

*/ inline PublicIpv4Pool& AddPoolAddressRanges(const PublicIpv4PoolRange& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges.push_back(value); return *this; } /** *

The address ranges.

*/ inline PublicIpv4Pool& AddPoolAddressRanges(PublicIpv4PoolRange&& value) { m_poolAddressRangesHasBeenSet = true; m_poolAddressRanges.push_back(std::move(value)); return *this; } /** *

The total number of addresses.

*/ inline int GetTotalAddressCount() const{ return m_totalAddressCount; } /** *

The total number of addresses.

*/ inline bool TotalAddressCountHasBeenSet() const { return m_totalAddressCountHasBeenSet; } /** *

The total number of addresses.

*/ inline void SetTotalAddressCount(int value) { m_totalAddressCountHasBeenSet = true; m_totalAddressCount = value; } /** *

The total number of addresses.

*/ inline PublicIpv4Pool& WithTotalAddressCount(int value) { SetTotalAddressCount(value); return *this;} /** *

The total number of available addresses.

*/ inline int GetTotalAvailableAddressCount() const{ return m_totalAvailableAddressCount; } /** *

The total number of available addresses.

*/ inline bool TotalAvailableAddressCountHasBeenSet() const { return m_totalAvailableAddressCountHasBeenSet; } /** *

The total number of available addresses.

*/ inline void SetTotalAvailableAddressCount(int value) { m_totalAvailableAddressCountHasBeenSet = true; m_totalAvailableAddressCount = value; } /** *

The total number of available addresses.

*/ inline PublicIpv4Pool& WithTotalAvailableAddressCount(int value) { SetTotalAvailableAddressCount(value); return *this;} /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; } /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; } /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; } /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); } /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); } /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline PublicIpv4Pool& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;} /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline PublicIpv4Pool& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;} /** *

The name of the location from which the address pool is advertised. A network * border group is a unique set of Availability Zones or Local Zones from where * Amazon Web Services advertises public IP addresses.

*/ inline PublicIpv4Pool& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(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 PublicIpv4Pool& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Any tags for the address pool.

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

Any tags for the address pool.

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

Any tags for the address pool.

*/ inline PublicIpv4Pool& 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_poolAddressRanges; bool m_poolAddressRangesHasBeenSet = false; int m_totalAddressCount; bool m_totalAddressCountHasBeenSet = false; int m_totalAvailableAddressCount; bool m_totalAvailableAddressCountHasBeenSet = false; Aws::String m_networkBorderGroup; bool m_networkBorderGroupHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws