/** * 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 IPv4 CIDR block associated with a VPC.

See Also:

* AWS * API Reference

*/ class VpcCidrBlockAssociation { public: AWS_EC2_API VpcCidrBlockAssociation(); AWS_EC2_API VpcCidrBlockAssociation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VpcCidrBlockAssociation& 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 IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The association ID for the IPv4 CIDR block.

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

The IPv4 CIDR block.

*/ inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; } /** *

The IPv4 CIDR block.

*/ inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; } /** *

The IPv4 CIDR block.

*/ inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; } /** *

The IPv4 CIDR block.

*/ inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); } /** *

The IPv4 CIDR block.

*/ inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); } /** *

The IPv4 CIDR block.

*/ inline VpcCidrBlockAssociation& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;} /** *

The IPv4 CIDR block.

*/ inline VpcCidrBlockAssociation& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;} /** *

The IPv4 CIDR block.

*/ inline VpcCidrBlockAssociation& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;} /** *

Information about the state of the CIDR block.

*/ inline const VpcCidrBlockState& GetCidrBlockState() const{ return m_cidrBlockState; } /** *

Information about the state of the CIDR block.

*/ inline bool CidrBlockStateHasBeenSet() const { return m_cidrBlockStateHasBeenSet; } /** *

Information about the state of the CIDR block.

*/ inline void SetCidrBlockState(const VpcCidrBlockState& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = value; } /** *

Information about the state of the CIDR block.

*/ inline void SetCidrBlockState(VpcCidrBlockState&& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = std::move(value); } /** *

Information about the state of the CIDR block.

*/ inline VpcCidrBlockAssociation& WithCidrBlockState(const VpcCidrBlockState& value) { SetCidrBlockState(value); return *this;} /** *

Information about the state of the CIDR block.

*/ inline VpcCidrBlockAssociation& WithCidrBlockState(VpcCidrBlockState&& value) { SetCidrBlockState(std::move(value)); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_cidrBlock; bool m_cidrBlockHasBeenSet = false; VpcCidrBlockState m_cidrBlockState; bool m_cidrBlockStateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws