AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HostedZone.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/model/HostedZoneConfig.h>
10#include <aws/route53/model/LinkedService.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Route53
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ROUTE53_API HostedZone() = default;
37 AWS_ROUTE53_API HostedZone(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ROUTE53_API HostedZone& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 HostedZone& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template<typename NameT = Aws::String>
68 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 HostedZone& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
78 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
79 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
80 template<typename CallerReferenceT = Aws::String>
81 void SetCallerReference(CallerReferenceT&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::forward<CallerReferenceT>(value); }
82 template<typename CallerReferenceT = Aws::String>
83 HostedZone& WithCallerReference(CallerReferenceT&& value) { SetCallerReference(std::forward<CallerReferenceT>(value)); return *this;}
85
87
94 inline const HostedZoneConfig& GetConfig() const { return m_config; }
95 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
96 template<typename ConfigT = HostedZoneConfig>
97 void SetConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config = std::forward<ConfigT>(value); }
98 template<typename ConfigT = HostedZoneConfig>
99 HostedZone& WithConfig(ConfigT&& value) { SetConfig(std::forward<ConfigT>(value)); return *this;}
101
103
106 inline long long GetResourceRecordSetCount() const { return m_resourceRecordSetCount; }
107 inline bool ResourceRecordSetCountHasBeenSet() const { return m_resourceRecordSetCountHasBeenSet; }
108 inline void SetResourceRecordSetCount(long long value) { m_resourceRecordSetCountHasBeenSet = true; m_resourceRecordSetCount = value; }
109 inline HostedZone& WithResourceRecordSetCount(long long value) { SetResourceRecordSetCount(value); return *this;}
111
113
118 inline const LinkedService& GetLinkedService() const { return m_linkedService; }
119 inline bool LinkedServiceHasBeenSet() const { return m_linkedServiceHasBeenSet; }
120 template<typename LinkedServiceT = LinkedService>
121 void SetLinkedService(LinkedServiceT&& value) { m_linkedServiceHasBeenSet = true; m_linkedService = std::forward<LinkedServiceT>(value); }
122 template<typename LinkedServiceT = LinkedService>
123 HostedZone& WithLinkedService(LinkedServiceT&& value) { SetLinkedService(std::forward<LinkedServiceT>(value)); return *this;}
125 private:
126
127 Aws::String m_id;
128 bool m_idHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_callerReference;
134 bool m_callerReferenceHasBeenSet = false;
135
136 HostedZoneConfig m_config;
137 bool m_configHasBeenSet = false;
138
139 long long m_resourceRecordSetCount{0};
140 bool m_resourceRecordSetCountHasBeenSet = false;
141
142 LinkedService m_linkedService;
143 bool m_linkedServiceHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Route53
148} // namespace Aws
HostedZone & WithId(IdT &&value)
Definition HostedZone.h:53
void SetResourceRecordSetCount(long long value)
Definition HostedZone.h:108
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_ROUTE53_API HostedZone(const Aws::Utils::Xml::XmlNode &xmlNode)
HostedZone & WithResourceRecordSetCount(long long value)
Definition HostedZone.h:109
bool CallerReferenceHasBeenSet() const
Definition HostedZone.h:79
const Aws::String & GetId() const
Definition HostedZone.h:48
const LinkedService & GetLinkedService() const
Definition HostedZone.h:118
void SetConfig(ConfigT &&value)
Definition HostedZone.h:97
HostedZone & WithConfig(ConfigT &&value)
Definition HostedZone.h:99
HostedZone & WithLinkedService(LinkedServiceT &&value)
Definition HostedZone.h:123
const Aws::String & GetName() const
Definition HostedZone.h:65
void SetCallerReference(CallerReferenceT &&value)
Definition HostedZone.h:81
HostedZone & WithCallerReference(CallerReferenceT &&value)
Definition HostedZone.h:83
bool ResourceRecordSetCountHasBeenSet() const
Definition HostedZone.h:107
HostedZone & WithName(NameT &&value)
Definition HostedZone.h:70
const HostedZoneConfig & GetConfig() const
Definition HostedZone.h:94
AWS_ROUTE53_API HostedZone & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLinkedService(LinkedServiceT &&value)
Definition HostedZone.h:121
const Aws::String & GetCallerReference() const
Definition HostedZone.h:78
long long GetResourceRecordSetCount() const
Definition HostedZone.h:106
AWS_ROUTE53_API HostedZone()=default
void SetName(NameT &&value)
Definition HostedZone.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String