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

A complex type that lists the name servers in a delegation set, as well as * the CallerReference and the ID for the delegation * set.

See Also:

AWS * API Reference

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

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline DelegationSet& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline DelegationSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID that Amazon Route 53 assigns to a reusable delegation set.

*/ inline DelegationSet& WithId(const char* value) { SetId(value); return *this;} /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline const Aws::String& GetCallerReference() const{ return m_callerReference; } /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; } /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; } /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); } /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); } /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline DelegationSet& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;} /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline DelegationSet& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;} /** *

The value that you specified for CallerReference when you * created the reusable delegation set.

*/ inline DelegationSet& WithCallerReference(const char* value) { SetCallerReference(value); return *this;} /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline const Aws::Vector& GetNameServers() const{ return m_nameServers; } /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline bool NameServersHasBeenSet() const { return m_nameServersHasBeenSet; } /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline void SetNameServers(const Aws::Vector& value) { m_nameServersHasBeenSet = true; m_nameServers = value; } /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline void SetNameServers(Aws::Vector&& value) { m_nameServersHasBeenSet = true; m_nameServers = std::move(value); } /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline DelegationSet& WithNameServers(const Aws::Vector& value) { SetNameServers(value); return *this;} /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline DelegationSet& WithNameServers(Aws::Vector&& value) { SetNameServers(std::move(value)); return *this;} /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline DelegationSet& AddNameServers(const Aws::String& value) { m_nameServersHasBeenSet = true; m_nameServers.push_back(value); return *this; } /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline DelegationSet& AddNameServers(Aws::String&& value) { m_nameServersHasBeenSet = true; m_nameServers.push_back(std::move(value)); return *this; } /** *

A complex type that contains a list of the authoritative name servers for a * hosted zone or for a reusable delegation set.

*/ inline DelegationSet& AddNameServers(const char* value) { m_nameServersHasBeenSet = true; m_nameServers.push_back(value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; Aws::Vector m_nameServers; bool m_nameServersHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws