/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes an IPv6 CIDR block associated with a VPC.

See Also:

* AWS * API Reference

*/ class VpcIpv6CidrBlockAssociation { public: AWS_EC2_API VpcIpv6CidrBlockAssociation(); AWS_EC2_API VpcIpv6CidrBlockAssociation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VpcIpv6CidrBlockAssociation& 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 association ID for the IPv6 CIDR block.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The association ID for the IPv6 CIDR block.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The association ID for the IPv6 CIDR block.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The association ID for the IPv6 CIDR block.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The association ID for the IPv6 CIDR block.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The association ID for the IPv6 CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The association ID for the IPv6 CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The association ID for the IPv6 CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The IPv6 CIDR block.

*/ inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; } /** *

The IPv6 CIDR block.

*/ inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; } /** *

The IPv6 CIDR block.

*/ inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; } /** *

The IPv6 CIDR block.

*/ inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); } /** *

The IPv6 CIDR block.

*/ inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); } /** *

The IPv6 CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;} /** *

The IPv6 CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;} /** *

The IPv6 CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;} /** *

Information about the state of the CIDR block.

*/ inline const VpcCidrBlockState& GetIpv6CidrBlockState() const{ return m_ipv6CidrBlockState; } /** *

Information about the state of the CIDR block.

*/ inline bool Ipv6CidrBlockStateHasBeenSet() const { return m_ipv6CidrBlockStateHasBeenSet; } /** *

Information about the state of the CIDR block.

*/ inline void SetIpv6CidrBlockState(const VpcCidrBlockState& value) { m_ipv6CidrBlockStateHasBeenSet = true; m_ipv6CidrBlockState = value; } /** *

Information about the state of the CIDR block.

*/ inline void SetIpv6CidrBlockState(VpcCidrBlockState&& value) { m_ipv6CidrBlockStateHasBeenSet = true; m_ipv6CidrBlockState = std::move(value); } /** *

Information about the state of the CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6CidrBlockState(const VpcCidrBlockState& value) { SetIpv6CidrBlockState(value); return *this;} /** *

Information about the state of the CIDR block.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6CidrBlockState(VpcCidrBlockState&& value) { SetIpv6CidrBlockState(std::move(value)); return *this;} /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

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

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses, for example, * us-east-1-wl1-bos-wlz-1.

*/ inline VpcIpv6CidrBlockAssociation& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;} /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline const Aws::String& GetIpv6Pool() const{ return m_ipv6Pool; } /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline bool Ipv6PoolHasBeenSet() const { return m_ipv6PoolHasBeenSet; } /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline void SetIpv6Pool(const Aws::String& value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool = value; } /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline void SetIpv6Pool(Aws::String&& value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool = std::move(value); } /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline void SetIpv6Pool(const char* value) { m_ipv6PoolHasBeenSet = true; m_ipv6Pool.assign(value); } /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6Pool(const Aws::String& value) { SetIpv6Pool(value); return *this;} /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6Pool(Aws::String&& value) { SetIpv6Pool(std::move(value)); return *this;} /** *

The ID of the IPv6 address pool from which the IPv6 CIDR block is * allocated.

*/ inline VpcIpv6CidrBlockAssociation& WithIpv6Pool(const char* value) { SetIpv6Pool(value); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_ipv6CidrBlock; bool m_ipv6CidrBlockHasBeenSet = false; VpcCidrBlockState m_ipv6CidrBlockState; bool m_ipv6CidrBlockStateHasBeenSet = false; Aws::String m_networkBorderGroup; bool m_networkBorderGroupHasBeenSet = false; Aws::String m_ipv6Pool; bool m_ipv6PoolHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws