/** * 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 general information about the hosted * zone.

See Also:

AWS * API Reference

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The ID that Amazon Route 53 assigned to the hosted zone when you created * it.

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

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline HostedZone& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline HostedZone& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the domain. For public hosted zones, this is the name that you * have registered with your DNS registrar.

For information about how to * specify characters other than a-z, 0-9, and * - (hyphen) and how to specify internationalized domain names, see * CreateHostedZone.

*/ inline HostedZone& WithName(const char* value) { SetName(value); return *this;} /** *

The value that you specified for CallerReference when you * created the hosted zone.

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

The value that you specified for CallerReference when you * created the hosted zone.

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

The value that you specified for CallerReference when you * created the hosted zone.

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

The value that you specified for CallerReference when you * created the hosted zone.

*/ 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 hosted zone.

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

The value that you specified for CallerReference when you * created the hosted zone.

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

The value that you specified for CallerReference when you * created the hosted zone.

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

The value that you specified for CallerReference when you * created the hosted zone.

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

A complex type that includes the Comment and * PrivateZone elements. If you omitted the * HostedZoneConfig and Comment elements from the * request, the Config and Comment elements don't appear * in the response.

*/ inline const HostedZoneConfig& GetConfig() const{ return m_config; } /** *

A complex type that includes the Comment and * PrivateZone elements. If you omitted the * HostedZoneConfig and Comment elements from the * request, the Config and Comment elements don't appear * in the response.

*/ inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; } /** *

A complex type that includes the Comment and * PrivateZone elements. If you omitted the * HostedZoneConfig and Comment elements from the * request, the Config and Comment elements don't appear * in the response.

*/ inline void SetConfig(const HostedZoneConfig& value) { m_configHasBeenSet = true; m_config = value; } /** *

A complex type that includes the Comment and * PrivateZone elements. If you omitted the * HostedZoneConfig and Comment elements from the * request, the Config and Comment elements don't appear * in the response.

*/ inline void SetConfig(HostedZoneConfig&& value) { m_configHasBeenSet = true; m_config = std::move(value); } /** *

A complex type that includes the Comment and * PrivateZone elements. If you omitted the * HostedZoneConfig and Comment elements from the * request, the Config and Comment elements don't appear * in the response.

*/ inline HostedZone& WithConfig(const HostedZoneConfig& value) { SetConfig(value); return *this;} /** *

A complex type that includes the Comment and * PrivateZone elements. If you omitted the * HostedZoneConfig and Comment elements from the * request, the Config and Comment elements don't appear * in the response.

*/ inline HostedZone& WithConfig(HostedZoneConfig&& value) { SetConfig(std::move(value)); return *this;} /** *

The number of resource record sets in the hosted zone.

*/ inline long long GetResourceRecordSetCount() const{ return m_resourceRecordSetCount; } /** *

The number of resource record sets in the hosted zone.

*/ inline bool ResourceRecordSetCountHasBeenSet() const { return m_resourceRecordSetCountHasBeenSet; } /** *

The number of resource record sets in the hosted zone.

*/ inline void SetResourceRecordSetCount(long long value) { m_resourceRecordSetCountHasBeenSet = true; m_resourceRecordSetCount = value; } /** *

The number of resource record sets in the hosted zone.

*/ inline HostedZone& WithResourceRecordSetCount(long long value) { SetResourceRecordSetCount(value); return *this;} /** *

If the hosted zone was created by another service, the service that created * the hosted zone. When a hosted zone is created by another service, you can't * edit or delete it using Route 53.

*/ inline const LinkedService& GetLinkedService() const{ return m_linkedService; } /** *

If the hosted zone was created by another service, the service that created * the hosted zone. When a hosted zone is created by another service, you can't * edit or delete it using Route 53.

*/ inline bool LinkedServiceHasBeenSet() const { return m_linkedServiceHasBeenSet; } /** *

If the hosted zone was created by another service, the service that created * the hosted zone. When a hosted zone is created by another service, you can't * edit or delete it using Route 53.

*/ inline void SetLinkedService(const LinkedService& value) { m_linkedServiceHasBeenSet = true; m_linkedService = value; } /** *

If the hosted zone was created by another service, the service that created * the hosted zone. When a hosted zone is created by another service, you can't * edit or delete it using Route 53.

*/ inline void SetLinkedService(LinkedService&& value) { m_linkedServiceHasBeenSet = true; m_linkedService = std::move(value); } /** *

If the hosted zone was created by another service, the service that created * the hosted zone. When a hosted zone is created by another service, you can't * edit or delete it using Route 53.

*/ inline HostedZone& WithLinkedService(const LinkedService& value) { SetLinkedService(value); return *this;} /** *

If the hosted zone was created by another service, the service that created * the hosted zone. When a hosted zone is created by another service, you can't * edit or delete it using Route 53.

*/ inline HostedZone& WithLinkedService(LinkedService&& value) { SetLinkedService(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; HostedZoneConfig m_config; bool m_configHasBeenSet = false; long long m_resourceRecordSetCount; bool m_resourceRecordSetCountHasBeenSet = false; LinkedService m_linkedService; bool m_linkedServiceHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws