/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A CIDR provisioned to an IPAM pool.See Also:
AWS
* API Reference
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP
* address and its associated network mask (or netmask) and refers to a range of IP
* addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR
* example is 2001:DB8::/32
.
The state of the CIDR.
*/ inline const IpamPoolCidrState& GetState() const{ return m_state; } /** *The state of the CIDR.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the CIDR.
*/ inline void SetState(const IpamPoolCidrState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the CIDR.
*/ inline void SetState(IpamPoolCidrState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the CIDR.
*/ inline IpamPoolCidr& WithState(const IpamPoolCidrState& value) { SetState(value); return *this;} /** *The state of the CIDR.
*/ inline IpamPoolCidr& WithState(IpamPoolCidrState&& value) { SetState(std::move(value)); return *this;} /** *Details related to why an IPAM pool CIDR failed to be provisioned.
*/ inline const IpamPoolCidrFailureReason& GetFailureReason() const{ return m_failureReason; } /** *Details related to why an IPAM pool CIDR failed to be provisioned.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *Details related to why an IPAM pool CIDR failed to be provisioned.
*/ inline void SetFailureReason(const IpamPoolCidrFailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *Details related to why an IPAM pool CIDR failed to be provisioned.
*/ inline void SetFailureReason(IpamPoolCidrFailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *Details related to why an IPAM pool CIDR failed to be provisioned.
*/ inline IpamPoolCidr& WithFailureReason(const IpamPoolCidrFailureReason& value) { SetFailureReason(value); return *this;} /** *Details related to why an IPAM pool CIDR failed to be provisioned.
*/ inline IpamPoolCidr& WithFailureReason(IpamPoolCidrFailureReason&& value) { SetFailureReason(std::move(value)); return *this;} /** *The IPAM pool CIDR ID.
*/ inline const Aws::String& GetIpamPoolCidrId() const{ return m_ipamPoolCidrId; } /** *The IPAM pool CIDR ID.
*/ inline bool IpamPoolCidrIdHasBeenSet() const { return m_ipamPoolCidrIdHasBeenSet; } /** *The IPAM pool CIDR ID.
*/ inline void SetIpamPoolCidrId(const Aws::String& value) { m_ipamPoolCidrIdHasBeenSet = true; m_ipamPoolCidrId = value; } /** *The IPAM pool CIDR ID.
*/ inline void SetIpamPoolCidrId(Aws::String&& value) { m_ipamPoolCidrIdHasBeenSet = true; m_ipamPoolCidrId = std::move(value); } /** *The IPAM pool CIDR ID.
*/ inline void SetIpamPoolCidrId(const char* value) { m_ipamPoolCidrIdHasBeenSet = true; m_ipamPoolCidrId.assign(value); } /** *The IPAM pool CIDR ID.
*/ inline IpamPoolCidr& WithIpamPoolCidrId(const Aws::String& value) { SetIpamPoolCidrId(value); return *this;} /** *The IPAM pool CIDR ID.
*/ inline IpamPoolCidr& WithIpamPoolCidrId(Aws::String&& value) { SetIpamPoolCidrId(std::move(value)); return *this;} /** *The IPAM pool CIDR ID.
*/ inline IpamPoolCidr& WithIpamPoolCidrId(const char* value) { SetIpamPoolCidrId(value); return *this;} /** *The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.
*/ inline int GetNetmaskLength() const{ return m_netmaskLength; } /** *The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.
*/ inline bool NetmaskLengthHasBeenSet() const { return m_netmaskLengthHasBeenSet; } /** *The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.
*/ inline void SetNetmaskLength(int value) { m_netmaskLengthHasBeenSet = true; m_netmaskLength = value; } /** *The netmask length of the CIDR you'd like to provision to a pool. Can be used * for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for * provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP * CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.
*/ inline IpamPoolCidr& WithNetmaskLength(int value) { SetNetmaskLength(value); return *this;} private: Aws::String m_cidr; bool m_cidrHasBeenSet = false; IpamPoolCidrState m_state; bool m_stateHasBeenSet = false; IpamPoolCidrFailureReason m_failureReason; bool m_failureReasonHasBeenSet = false; Aws::String m_ipamPoolCidrId; bool m_ipamPoolCidrIdHasBeenSet = false; int m_netmaskLength; bool m_netmaskLengthHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws