/** * 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 Route53 { namespace Model { /** *

A complex type that contains information about the CIDR collection * change.

See Also:

AWS * API Reference

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

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

Name of the location that is associated with the CIDR collection.

*/ inline CidrCollectionChange& WithLocationName(const char* value) { SetLocationName(value); return *this;} /** *

CIDR collection change action.

*/ inline const CidrCollectionChangeAction& GetAction() const{ return m_action; } /** *

CIDR collection change action.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

CIDR collection change action.

*/ inline void SetAction(const CidrCollectionChangeAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

CIDR collection change action.

*/ inline void SetAction(CidrCollectionChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

CIDR collection change action.

*/ inline CidrCollectionChange& WithAction(const CidrCollectionChangeAction& value) { SetAction(value); return *this;} /** *

CIDR collection change action.

*/ inline CidrCollectionChange& WithAction(CidrCollectionChangeAction&& value) { SetAction(std::move(value)); return *this;} /** *

List of CIDR blocks.

*/ inline const Aws::Vector& GetCidrList() const{ return m_cidrList; } /** *

List of CIDR blocks.

*/ inline bool CidrListHasBeenSet() const { return m_cidrListHasBeenSet; } /** *

List of CIDR blocks.

*/ inline void SetCidrList(const Aws::Vector& value) { m_cidrListHasBeenSet = true; m_cidrList = value; } /** *

List of CIDR blocks.

*/ inline void SetCidrList(Aws::Vector&& value) { m_cidrListHasBeenSet = true; m_cidrList = std::move(value); } /** *

List of CIDR blocks.

*/ inline CidrCollectionChange& WithCidrList(const Aws::Vector& value) { SetCidrList(value); return *this;} /** *

List of CIDR blocks.

*/ inline CidrCollectionChange& WithCidrList(Aws::Vector&& value) { SetCidrList(std::move(value)); return *this;} /** *

List of CIDR blocks.

*/ inline CidrCollectionChange& AddCidrList(const Aws::String& value) { m_cidrListHasBeenSet = true; m_cidrList.push_back(value); return *this; } /** *

List of CIDR blocks.

*/ inline CidrCollectionChange& AddCidrList(Aws::String&& value) { m_cidrListHasBeenSet = true; m_cidrList.push_back(std::move(value)); return *this; } /** *

List of CIDR blocks.

*/ inline CidrCollectionChange& AddCidrList(const char* value) { m_cidrListHasBeenSet = true; m_cidrList.push_back(value); return *this; } private: Aws::String m_locationName; bool m_locationNameHasBeenSet = false; CidrCollectionChangeAction m_action; bool m_actionHasBeenSet = false; Aws::Vector m_cidrList; bool m_cidrListHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws