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

The object that is specified in resource record set object when you are * linking a resource record set to a CIDR location.

A * LocationName with an asterisk “*” can be used to create a default * CIDR record. CollectionId is still required for default * record.

See Also:

AWS * API Reference

*/ class CidrRoutingConfig { public: AWS_ROUTE53_API CidrRoutingConfig(); AWS_ROUTE53_API CidrRoutingConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API CidrRoutingConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The CIDR collection ID.

*/ inline const Aws::String& GetCollectionId() const{ return m_collectionId; } /** *

The CIDR collection ID.

*/ inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; } /** *

The CIDR collection ID.

*/ inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; } /** *

The CIDR collection ID.

*/ inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); } /** *

The CIDR collection ID.

*/ inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); } /** *

The CIDR collection ID.

*/ inline CidrRoutingConfig& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;} /** *

The CIDR collection ID.

*/ inline CidrRoutingConfig& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;} /** *

The CIDR collection ID.

*/ inline CidrRoutingConfig& WithCollectionId(const char* value) { SetCollectionId(value); return *this;} /** *

The CIDR collection location name.

*/ inline const Aws::String& GetLocationName() const{ return m_locationName; } /** *

The CIDR collection location name.

*/ inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; } /** *

The CIDR collection location name.

*/ inline void SetLocationName(const Aws::String& value) { m_locationNameHasBeenSet = true; m_locationName = value; } /** *

The CIDR collection location name.

*/ inline void SetLocationName(Aws::String&& value) { m_locationNameHasBeenSet = true; m_locationName = std::move(value); } /** *

The CIDR collection location name.

*/ inline void SetLocationName(const char* value) { m_locationNameHasBeenSet = true; m_locationName.assign(value); } /** *

The CIDR collection location name.

*/ inline CidrRoutingConfig& WithLocationName(const Aws::String& value) { SetLocationName(value); return *this;} /** *

The CIDR collection location name.

*/ inline CidrRoutingConfig& WithLocationName(Aws::String&& value) { SetLocationName(std::move(value)); return *this;} /** *

The CIDR collection location name.

*/ inline CidrRoutingConfig& WithLocationName(const char* value) { SetLocationName(value); return *this;} private: Aws::String m_collectionId; bool m_collectionIdHasBeenSet = false; Aws::String m_locationName; bool m_locationNameHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws