/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an address range that is provisioned for use with your
* Amazon Web Services resources through bring your own IP addresses
* (BYOIP).See Also:
AWS API
* Reference
The address range, in CIDR notation.
*/ inline const Aws::String& GetCidr() const{ return m_cidr; } /** *The address range, in CIDR notation.
*/ inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; } /** *The address range, in CIDR notation.
*/ inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; } /** *The address range, in CIDR notation.
*/ inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); } /** *The address range, in CIDR notation.
*/ inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); } /** *The address range, in CIDR notation.
*/ inline ByoipCidr& WithCidr(const Aws::String& value) { SetCidr(value); return *this;} /** *The address range, in CIDR notation.
*/ inline ByoipCidr& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;} /** *The address range, in CIDR notation.
*/ inline ByoipCidr& WithCidr(const char* value) { SetCidr(value); return *this;} /** *The description of the address range.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the address range.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the address range.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the address range.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the address range.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the address range.
*/ inline ByoipCidr& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the address range.
*/ inline ByoipCidr& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the address range.
*/ inline ByoipCidr& WithDescription(const char* value) { SetDescription(value); return *this;} /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline ByoipCidr& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline ByoipCidr& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *Upon success, contains the ID of the address pool. Otherwise, contains an * error message.
*/ inline ByoipCidr& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The state of the address pool.
*/ inline const ByoipCidrState& GetState() const{ return m_state; } /** *The state of the address pool.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the address pool.
*/ inline void SetState(const ByoipCidrState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the address pool.
*/ inline void SetState(ByoipCidrState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the address pool.
*/ inline ByoipCidr& WithState(const ByoipCidrState& value) { SetState(value); return *this;} /** *The state of the address pool.
*/ inline ByoipCidr& WithState(ByoipCidrState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_cidr; bool m_cidrHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; ByoipCidrState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws