AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
HostedZone.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53_EXPORTS.h>
9#include <aws/route53/model/HostedZoneConfig.h>
10#include <aws/route53/model/HostedZoneFeatures.h>
11#include <aws/route53/model/LinkedService.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Route53 {
22namespace Model {
23
31 public:
32 AWS_ROUTE53_API HostedZone() = default;
33 AWS_ROUTE53_API HostedZone(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ROUTE53_API HostedZone& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 HostedZone& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 HostedZone& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
86 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
87 template <typename CallerReferenceT = Aws::String>
88 void SetCallerReference(CallerReferenceT&& value) {
89 m_callerReferenceHasBeenSet = true;
90 m_callerReference = std::forward<CallerReferenceT>(value);
91 }
92 template <typename CallerReferenceT = Aws::String>
93 HostedZone& WithCallerReference(CallerReferenceT&& value) {
94 SetCallerReference(std::forward<CallerReferenceT>(value));
95 return *this;
96 }
98
100
107 inline const HostedZoneConfig& GetConfig() const { return m_config; }
108 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
109 template <typename ConfigT = HostedZoneConfig>
110 void SetConfig(ConfigT&& value) {
111 m_configHasBeenSet = true;
112 m_config = std::forward<ConfigT>(value);
113 }
114 template <typename ConfigT = HostedZoneConfig>
115 HostedZone& WithConfig(ConfigT&& value) {
116 SetConfig(std::forward<ConfigT>(value));
117 return *this;
118 }
120
122
125 inline long long GetResourceRecordSetCount() const { return m_resourceRecordSetCount; }
126 inline bool ResourceRecordSetCountHasBeenSet() const { return m_resourceRecordSetCountHasBeenSet; }
127 inline void SetResourceRecordSetCount(long long value) {
128 m_resourceRecordSetCountHasBeenSet = true;
129 m_resourceRecordSetCount = value;
130 }
131 inline HostedZone& WithResourceRecordSetCount(long long value) {
133 return *this;
134 }
136
138
143 inline const LinkedService& GetLinkedService() const { return m_linkedService; }
144 inline bool LinkedServiceHasBeenSet() const { return m_linkedServiceHasBeenSet; }
145 template <typename LinkedServiceT = LinkedService>
146 void SetLinkedService(LinkedServiceT&& value) {
147 m_linkedServiceHasBeenSet = true;
148 m_linkedService = std::forward<LinkedServiceT>(value);
149 }
150 template <typename LinkedServiceT = LinkedService>
151 HostedZone& WithLinkedService(LinkedServiceT&& value) {
152 SetLinkedService(std::forward<LinkedServiceT>(value));
153 return *this;
154 }
156
158
162 inline const HostedZoneFeatures& GetFeatures() const { return m_features; }
163 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
164 template <typename FeaturesT = HostedZoneFeatures>
165 void SetFeatures(FeaturesT&& value) {
166 m_featuresHasBeenSet = true;
167 m_features = std::forward<FeaturesT>(value);
168 }
169 template <typename FeaturesT = HostedZoneFeatures>
170 HostedZone& WithFeatures(FeaturesT&& value) {
171 SetFeatures(std::forward<FeaturesT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_id;
177
178 Aws::String m_name;
179
180 Aws::String m_callerReference;
181
182 HostedZoneConfig m_config;
183
184 long long m_resourceRecordSetCount{0};
185
186 LinkedService m_linkedService;
187
188 HostedZoneFeatures m_features;
189 bool m_idHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191 bool m_callerReferenceHasBeenSet = false;
192 bool m_configHasBeenSet = false;
193 bool m_resourceRecordSetCountHasBeenSet = false;
194 bool m_linkedServiceHasBeenSet = false;
195 bool m_featuresHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace Route53
200} // namespace Aws
HostedZone & WithId(IdT &&value)
Definition HostedZone.h:51
void SetResourceRecordSetCount(long long value)
Definition HostedZone.h:127
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
HostedZone & WithFeatures(FeaturesT &&value)
Definition HostedZone.h:170
AWS_ROUTE53_API HostedZone(const Aws::Utils::Xml::XmlNode &xmlNode)
HostedZone & WithResourceRecordSetCount(long long value)
Definition HostedZone.h:131
bool CallerReferenceHasBeenSet() const
Definition HostedZone.h:86
const Aws::String & GetId() const
Definition HostedZone.h:43
const LinkedService & GetLinkedService() const
Definition HostedZone.h:143
void SetConfig(ConfigT &&value)
Definition HostedZone.h:110
HostedZone & WithConfig(ConfigT &&value)
Definition HostedZone.h:115
HostedZone & WithLinkedService(LinkedServiceT &&value)
Definition HostedZone.h:151
const Aws::String & GetName() const
Definition HostedZone.h:66
void SetCallerReference(CallerReferenceT &&value)
Definition HostedZone.h:88
const HostedZoneFeatures & GetFeatures() const
Definition HostedZone.h:162
HostedZone & WithCallerReference(CallerReferenceT &&value)
Definition HostedZone.h:93
bool ResourceRecordSetCountHasBeenSet() const
Definition HostedZone.h:126
HostedZone & WithName(NameT &&value)
Definition HostedZone.h:74
const HostedZoneConfig & GetConfig() const
Definition HostedZone.h:107
AWS_ROUTE53_API HostedZone & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFeatures(FeaturesT &&value)
Definition HostedZone.h:165
void SetLinkedService(LinkedServiceT &&value)
Definition HostedZone.h:146
const Aws::String & GetCallerReference() const
Definition HostedZone.h:85
long long GetResourceRecordSetCount() const
Definition HostedZone.h:125
AWS_ROUTE53_API HostedZone()=default
void SetName(NameT &&value)
Definition HostedZone.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String