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

See Also:

* AWS * API Reference

*/ class PublicIpv4PoolRange { public: AWS_EC2_API PublicIpv4PoolRange(); AWS_EC2_API PublicIpv4PoolRange(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PublicIpv4PoolRange& 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 first IP address in the range.

*/ inline const Aws::String& GetFirstAddress() const{ return m_firstAddress; } /** *

The first IP address in the range.

*/ inline bool FirstAddressHasBeenSet() const { return m_firstAddressHasBeenSet; } /** *

The first IP address in the range.

*/ inline void SetFirstAddress(const Aws::String& value) { m_firstAddressHasBeenSet = true; m_firstAddress = value; } /** *

The first IP address in the range.

*/ inline void SetFirstAddress(Aws::String&& value) { m_firstAddressHasBeenSet = true; m_firstAddress = std::move(value); } /** *

The first IP address in the range.

*/ inline void SetFirstAddress(const char* value) { m_firstAddressHasBeenSet = true; m_firstAddress.assign(value); } /** *

The first IP address in the range.

*/ inline PublicIpv4PoolRange& WithFirstAddress(const Aws::String& value) { SetFirstAddress(value); return *this;} /** *

The first IP address in the range.

*/ inline PublicIpv4PoolRange& WithFirstAddress(Aws::String&& value) { SetFirstAddress(std::move(value)); return *this;} /** *

The first IP address in the range.

*/ inline PublicIpv4PoolRange& WithFirstAddress(const char* value) { SetFirstAddress(value); return *this;} /** *

The last IP address in the range.

*/ inline const Aws::String& GetLastAddress() const{ return m_lastAddress; } /** *

The last IP address in the range.

*/ inline bool LastAddressHasBeenSet() const { return m_lastAddressHasBeenSet; } /** *

The last IP address in the range.

*/ inline void SetLastAddress(const Aws::String& value) { m_lastAddressHasBeenSet = true; m_lastAddress = value; } /** *

The last IP address in the range.

*/ inline void SetLastAddress(Aws::String&& value) { m_lastAddressHasBeenSet = true; m_lastAddress = std::move(value); } /** *

The last IP address in the range.

*/ inline void SetLastAddress(const char* value) { m_lastAddressHasBeenSet = true; m_lastAddress.assign(value); } /** *

The last IP address in the range.

*/ inline PublicIpv4PoolRange& WithLastAddress(const Aws::String& value) { SetLastAddress(value); return *this;} /** *

The last IP address in the range.

*/ inline PublicIpv4PoolRange& WithLastAddress(Aws::String&& value) { SetLastAddress(std::move(value)); return *this;} /** *

The last IP address in the range.

*/ inline PublicIpv4PoolRange& WithLastAddress(const char* value) { SetLastAddress(value); return *this;} /** *

The number of addresses in the range.

*/ inline int GetAddressCount() const{ return m_addressCount; } /** *

The number of addresses in the range.

*/ inline bool AddressCountHasBeenSet() const { return m_addressCountHasBeenSet; } /** *

The number of addresses in the range.

*/ inline void SetAddressCount(int value) { m_addressCountHasBeenSet = true; m_addressCount = value; } /** *

The number of addresses in the range.

*/ inline PublicIpv4PoolRange& WithAddressCount(int value) { SetAddressCount(value); return *this;} /** *

The number of available addresses in the range.

*/ inline int GetAvailableAddressCount() const{ return m_availableAddressCount; } /** *

The number of available addresses in the range.

*/ inline bool AvailableAddressCountHasBeenSet() const { return m_availableAddressCountHasBeenSet; } /** *

The number of available addresses in the range.

*/ inline void SetAvailableAddressCount(int value) { m_availableAddressCountHasBeenSet = true; m_availableAddressCount = value; } /** *

The number of available addresses in the range.

*/ inline PublicIpv4PoolRange& WithAvailableAddressCount(int value) { SetAvailableAddressCount(value); return *this;} private: Aws::String m_firstAddress; bool m_firstAddressHasBeenSet = false; Aws::String m_lastAddress; bool m_lastAddressHasBeenSet = false; int m_addressCount; bool m_addressCountHasBeenSet = false; int m_availableAddressCount; bool m_availableAddressCountHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws