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

In IPAM, a scope is the highest-level container within IPAM. An IPAM contains * two default scopes. Each scope represents the IP space for a single network. The * private scope is intended for all private IP address space. The public scope is * intended for all public IP address space. Scopes enable you to reuse IP * addresses across multiple unconnected networks without causing IP address * overlap or conflict.

For more information, see How * IPAM works in the Amazon VPC IPAM User Guide.

See * Also:

AWS API * Reference

*/ class IpamScope { public: AWS_EC2_API IpamScope(); AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API IpamScope& 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 Amazon Web Services account ID of the owner of the scope.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline IpamScope& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline IpamScope& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the owner of the scope.

*/ inline IpamScope& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The ID of the scope.

*/ inline const Aws::String& GetIpamScopeId() const{ return m_ipamScopeId; } /** *

The ID of the scope.

*/ inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; } /** *

The ID of the scope.

*/ inline void SetIpamScopeId(const Aws::String& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = value; } /** *

The ID of the scope.

*/ inline void SetIpamScopeId(Aws::String&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::move(value); } /** *

The ID of the scope.

*/ inline void SetIpamScopeId(const char* value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId.assign(value); } /** *

The ID of the scope.

*/ inline IpamScope& WithIpamScopeId(const Aws::String& value) { SetIpamScopeId(value); return *this;} /** *

The ID of the scope.

*/ inline IpamScope& WithIpamScopeId(Aws::String&& value) { SetIpamScopeId(std::move(value)); return *this;} /** *

The ID of the scope.

*/ inline IpamScope& WithIpamScopeId(const char* value) { SetIpamScopeId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline const Aws::String& GetIpamScopeArn() const{ return m_ipamScopeArn; } /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline bool IpamScopeArnHasBeenSet() const { return m_ipamScopeArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline void SetIpamScopeArn(const Aws::String& value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn = value; } /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline void SetIpamScopeArn(Aws::String&& value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline void SetIpamScopeArn(const char* value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline IpamScope& WithIpamScopeArn(const Aws::String& value) { SetIpamScopeArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline IpamScope& WithIpamScopeArn(Aws::String&& value) { SetIpamScopeArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the scope.

*/ inline IpamScope& WithIpamScopeArn(const char* value) { SetIpamScopeArn(value); return *this;} /** *

The ARN of the IPAM.

*/ inline const Aws::String& GetIpamArn() const{ return m_ipamArn; } /** *

The ARN of the IPAM.

*/ inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; } /** *

The ARN of the IPAM.

*/ inline void SetIpamArn(const Aws::String& value) { m_ipamArnHasBeenSet = true; m_ipamArn = value; } /** *

The ARN of the IPAM.

*/ inline void SetIpamArn(Aws::String&& value) { m_ipamArnHasBeenSet = true; m_ipamArn = std::move(value); } /** *

The ARN of the IPAM.

*/ inline void SetIpamArn(const char* value) { m_ipamArnHasBeenSet = true; m_ipamArn.assign(value); } /** *

The ARN of the IPAM.

*/ inline IpamScope& WithIpamArn(const Aws::String& value) { SetIpamArn(value); return *this;} /** *

The ARN of the IPAM.

*/ inline IpamScope& WithIpamArn(Aws::String&& value) { SetIpamArn(std::move(value)); return *this;} /** *

The ARN of the IPAM.

*/ inline IpamScope& WithIpamArn(const char* value) { SetIpamArn(value); return *this;} /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline const Aws::String& GetIpamRegion() const{ return m_ipamRegion; } /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; } /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline void SetIpamRegion(const Aws::String& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = value; } /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline void SetIpamRegion(Aws::String&& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = std::move(value); } /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline void SetIpamRegion(const char* value) { m_ipamRegionHasBeenSet = true; m_ipamRegion.assign(value); } /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline IpamScope& WithIpamRegion(const Aws::String& value) { SetIpamRegion(value); return *this;} /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline IpamScope& WithIpamRegion(Aws::String&& value) { SetIpamRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region of the IPAM scope.

*/ inline IpamScope& WithIpamRegion(const char* value) { SetIpamRegion(value); return *this;} /** *

The type of the scope.

*/ inline const IpamScopeType& GetIpamScopeType() const{ return m_ipamScopeType; } /** *

The type of the scope.

*/ inline bool IpamScopeTypeHasBeenSet() const { return m_ipamScopeTypeHasBeenSet; } /** *

The type of the scope.

*/ inline void SetIpamScopeType(const IpamScopeType& value) { m_ipamScopeTypeHasBeenSet = true; m_ipamScopeType = value; } /** *

The type of the scope.

*/ inline void SetIpamScopeType(IpamScopeType&& value) { m_ipamScopeTypeHasBeenSet = true; m_ipamScopeType = std::move(value); } /** *

The type of the scope.

*/ inline IpamScope& WithIpamScopeType(const IpamScopeType& value) { SetIpamScopeType(value); return *this;} /** *

The type of the scope.

*/ inline IpamScope& WithIpamScopeType(IpamScopeType&& value) { SetIpamScopeType(std::move(value)); return *this;} /** *

Defines if the scope is the default scope or not.

*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *

Defines if the scope is the default scope or not.

*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *

Defines if the scope is the default scope or not.

*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *

Defines if the scope is the default scope or not.

*/ inline IpamScope& WithIsDefault(bool value) { SetIsDefault(value); return *this;} /** *

The description of the scope.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the scope.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the scope.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the scope.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the scope.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the scope.

*/ inline IpamScope& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the scope.

*/ inline IpamScope& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the scope.

*/ inline IpamScope& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The number of pools in the scope.

*/ inline int GetPoolCount() const{ return m_poolCount; } /** *

The number of pools in the scope.

*/ inline bool PoolCountHasBeenSet() const { return m_poolCountHasBeenSet; } /** *

The number of pools in the scope.

*/ inline void SetPoolCount(int value) { m_poolCountHasBeenSet = true; m_poolCount = value; } /** *

The number of pools in the scope.

*/ inline IpamScope& WithPoolCount(int value) { SetPoolCount(value); return *this;} /** *

The state of the IPAM scope.

*/ inline const IpamScopeState& GetState() const{ return m_state; } /** *

The state of the IPAM scope.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the IPAM scope.

*/ inline void SetState(const IpamScopeState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the IPAM scope.

*/ inline void SetState(IpamScopeState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the IPAM scope.

*/ inline IpamScope& WithState(const IpamScopeState& value) { SetState(value); return *this;} /** *

The state of the IPAM scope.

*/ inline IpamScope& WithState(IpamScopeState&& value) { SetState(std::move(value)); return *this;} /** *

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

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

The key/value combination of a tag assigned to the resource. Use the tag key * in the filter name and the tag value as the filter value. For example, to find * all resources that have a tag with the key Owner and the value * TeamA, specify tag:Owner for the filter name and * TeamA for the filter value.

*/ inline IpamScope& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_ipamScopeId; bool m_ipamScopeIdHasBeenSet = false; Aws::String m_ipamScopeArn; bool m_ipamScopeArnHasBeenSet = false; Aws::String m_ipamArn; bool m_ipamArnHasBeenSet = false; Aws::String m_ipamRegion; bool m_ipamRegionHasBeenSet = false; IpamScopeType m_ipamScopeType; bool m_ipamScopeTypeHasBeenSet = false; bool m_isDefault; bool m_isDefaultHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_poolCount; bool m_poolCountHasBeenSet = false; IpamScopeState m_state; bool m_stateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws