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

Describes a customer-owned address pool.

See Also:

AWS API * Reference

*/ class CoipPool { public: AWS_EC2_API CoipPool(); AWS_EC2_API CoipPool(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CoipPool& 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 ID of the address pool.

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } /** *

The ID of the address pool.

*/ inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } /** *

The ID of the address pool.

*/ inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; } /** *

The ID of the address pool.

*/ inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); } /** *

The ID of the address pool.

*/ inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); } /** *

The ID of the address pool.

*/ inline CoipPool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;} /** *

The ID of the address pool.

*/ inline CoipPool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;} /** *

The ID of the address pool.

*/ inline CoipPool& WithPoolId(const char* value) { SetPoolId(value); return *this;} /** *

The address ranges of the address pool.

*/ inline const Aws::Vector& GetPoolCidrs() const{ return m_poolCidrs; } /** *

The address ranges of the address pool.

*/ inline bool PoolCidrsHasBeenSet() const { return m_poolCidrsHasBeenSet; } /** *

The address ranges of the address pool.

*/ inline void SetPoolCidrs(const Aws::Vector& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs = value; } /** *

The address ranges of the address pool.

*/ inline void SetPoolCidrs(Aws::Vector&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs = std::move(value); } /** *

The address ranges of the address pool.

*/ inline CoipPool& WithPoolCidrs(const Aws::Vector& value) { SetPoolCidrs(value); return *this;} /** *

The address ranges of the address pool.

*/ inline CoipPool& WithPoolCidrs(Aws::Vector&& value) { SetPoolCidrs(std::move(value)); return *this;} /** *

The address ranges of the address pool.

*/ inline CoipPool& AddPoolCidrs(const Aws::String& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(value); return *this; } /** *

The address ranges of the address pool.

*/ inline CoipPool& AddPoolCidrs(Aws::String&& value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(std::move(value)); return *this; } /** *

The address ranges of the address pool.

*/ inline CoipPool& AddPoolCidrs(const char* value) { m_poolCidrsHasBeenSet = true; m_poolCidrs.push_back(value); return *this; } /** *

The ID of the local gateway route table.

*/ inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; } /** *

The ID of the local gateway route table.

*/ inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); } /** *

The ID of the local gateway route table.

*/ inline CoipPool& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;} /** *

The ID of the local gateway route table.

*/ inline CoipPool& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;} /** *

The ID of the local gateway route table.

*/ inline CoipPool& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;} /** *

The tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags.

*/ inline CoipPool& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags.

*/ inline CoipPool& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags.

*/ inline CoipPool& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags.

*/ inline CoipPool& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The ARN of the address pool.

*/ inline const Aws::String& GetPoolArn() const{ return m_poolArn; } /** *

The ARN of the address pool.

*/ inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; } /** *

The ARN of the address pool.

*/ inline void SetPoolArn(const Aws::String& value) { m_poolArnHasBeenSet = true; m_poolArn = value; } /** *

The ARN of the address pool.

*/ inline void SetPoolArn(Aws::String&& value) { m_poolArnHasBeenSet = true; m_poolArn = std::move(value); } /** *

The ARN of the address pool.

*/ inline void SetPoolArn(const char* value) { m_poolArnHasBeenSet = true; m_poolArn.assign(value); } /** *

The ARN of the address pool.

*/ inline CoipPool& WithPoolArn(const Aws::String& value) { SetPoolArn(value); return *this;} /** *

The ARN of the address pool.

*/ inline CoipPool& WithPoolArn(Aws::String&& value) { SetPoolArn(std::move(value)); return *this;} /** *

The ARN of the address pool.

*/ inline CoipPool& WithPoolArn(const char* value) { SetPoolArn(value); return *this;} private: Aws::String m_poolId; bool m_poolIdHasBeenSet = false; Aws::Vector m_poolCidrs; bool m_poolCidrsHasBeenSet = false; Aws::String m_localGatewayRouteTableId; bool m_localGatewayRouteTableIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_poolArn; bool m_poolArnHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws