AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Subdomain.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/ResourceLocation.h>
12#include <aws/lightsail/model/SubdomainAttachableResource.h>
13#include <aws/lightsail/model/SubdomainState.h>
14#include <aws/lightsail/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Lightsail {
26namespace Model {
27
38class Subdomain {
39 public:
40 AWS_LIGHTSAIL_API Subdomain() = default;
41 AWS_LIGHTSAIL_API Subdomain(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Subdomain& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::String& GetSubdomainName() const { return m_subdomainName; }
51 inline bool SubdomainNameHasBeenSet() const { return m_subdomainNameHasBeenSet; }
52 template <typename SubdomainNameT = Aws::String>
53 void SetSubdomainName(SubdomainNameT&& value) {
54 m_subdomainNameHasBeenSet = true;
55 m_subdomainName = std::forward<SubdomainNameT>(value);
56 }
57 template <typename SubdomainNameT = Aws::String>
58 Subdomain& WithSubdomainName(SubdomainNameT&& value) {
59 SetSubdomainName(std::forward<SubdomainNameT>(value));
60 return *this;
61 }
63
65
72 inline const Aws::String& GetArn() const { return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 template <typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) {
76 m_arnHasBeenSet = true;
77 m_arn = std::forward<ArnT>(value);
78 }
79 template <typename ArnT = Aws::String>
80 Subdomain& WithArn(ArnT&& value) {
81 SetArn(std::forward<ArnT>(value));
82 return *this;
83 }
85
87
92 inline const Aws::String& GetFqdn() const { return m_fqdn; }
93 inline bool FqdnHasBeenSet() const { return m_fqdnHasBeenSet; }
94 template <typename FqdnT = Aws::String>
95 void SetFqdn(FqdnT&& value) {
96 m_fqdnHasBeenSet = true;
97 m_fqdn = std::forward<FqdnT>(value);
98 }
99 template <typename FqdnT = Aws::String>
100 Subdomain& WithFqdn(FqdnT&& value) {
101 SetFqdn(std::forward<FqdnT>(value));
102 return *this;
103 }
105
107
112 inline int GetDepth() const { return m_depth; }
113 inline bool DepthHasBeenSet() const { return m_depthHasBeenSet; }
114 inline void SetDepth(int value) {
115 m_depthHasBeenSet = true;
116 m_depth = value;
117 }
118 inline Subdomain& WithDepth(int value) {
119 SetDepth(value);
120 return *this;
121 }
123
125
143 inline SubdomainState GetState() const { return m_state; }
144 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
145 inline void SetState(SubdomainState value) {
146 m_stateHasBeenSet = true;
147 m_state = value;
148 }
150 SetState(value);
151 return *this;
152 }
154
156
161 inline const SubdomainAttachableResource& GetAttachedResource() const { return m_attachedResource; }
162 inline bool AttachedResourceHasBeenSet() const { return m_attachedResourceHasBeenSet; }
163 template <typename AttachedResourceT = SubdomainAttachableResource>
164 void SetAttachedResource(AttachedResourceT&& value) {
165 m_attachedResourceHasBeenSet = true;
166 m_attachedResource = std::forward<AttachedResourceT>(value);
167 }
168 template <typename AttachedResourceT = SubdomainAttachableResource>
169 Subdomain& WithAttachedResource(AttachedResourceT&& value) {
170 SetAttachedResource(std::forward<AttachedResourceT>(value));
171 return *this;
172 }
174
176
181 inline const SubdomainAttachableResource& GetAttachingResource() const { return m_attachingResource; }
182 inline bool AttachingResourceHasBeenSet() const { return m_attachingResourceHasBeenSet; }
183 template <typename AttachingResourceT = SubdomainAttachableResource>
184 void SetAttachingResource(AttachingResourceT&& value) {
185 m_attachingResourceHasBeenSet = true;
186 m_attachingResource = std::forward<AttachingResourceT>(value);
187 }
188 template <typename AttachingResourceT = SubdomainAttachableResource>
189 Subdomain& WithAttachingResource(AttachingResourceT&& value) {
190 SetAttachingResource(std::forward<AttachingResourceT>(value));
191 return *this;
192 }
194
196
200 inline const ResourceLocation& GetLocation() const { return m_location; }
201 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
202 template <typename LocationT = ResourceLocation>
203 void SetLocation(LocationT&& value) {
204 m_locationHasBeenSet = true;
205 m_location = std::forward<LocationT>(value);
206 }
207 template <typename LocationT = ResourceLocation>
208 Subdomain& WithLocation(LocationT&& value) {
209 SetLocation(std::forward<LocationT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
219 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
220 template <typename CreatedAtT = Aws::Utils::DateTime>
221 void SetCreatedAt(CreatedAtT&& value) {
222 m_createdAtHasBeenSet = true;
223 m_createdAt = std::forward<CreatedAtT>(value);
224 }
225 template <typename CreatedAtT = Aws::Utils::DateTime>
226 Subdomain& WithCreatedAt(CreatedAtT&& value) {
227 SetCreatedAt(std::forward<CreatedAtT>(value));
228 return *this;
229 }
231
233
238 inline const Aws::String& GetParentFqdn() const { return m_parentFqdn; }
239 inline bool ParentFqdnHasBeenSet() const { return m_parentFqdnHasBeenSet; }
240 template <typename ParentFqdnT = Aws::String>
241 void SetParentFqdn(ParentFqdnT&& value) {
242 m_parentFqdnHasBeenSet = true;
243 m_parentFqdn = std::forward<ParentFqdnT>(value);
244 }
245 template <typename ParentFqdnT = Aws::String>
246 Subdomain& WithParentFqdn(ParentFqdnT&& value) {
247 SetParentFqdn(std::forward<ParentFqdnT>(value));
248 return *this;
249 }
251
253
258 inline const Aws::Vector<Subdomain>& GetChildren() const { return m_children; }
259 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
260 template <typename ChildrenT = Aws::Vector<Subdomain>>
261 void SetChildren(ChildrenT&& value) {
262 m_childrenHasBeenSet = true;
263 m_children = std::forward<ChildrenT>(value);
264 }
265 template <typename ChildrenT = Aws::Vector<Subdomain>>
266 Subdomain& WithChildren(ChildrenT&& value) {
267 SetChildren(std::forward<ChildrenT>(value));
268 return *this;
269 }
270 template <typename ChildrenT = Subdomain>
271 Subdomain& AddChildren(ChildrenT&& value) {
272 m_childrenHasBeenSet = true;
273 m_children.emplace_back(std::forward<ChildrenT>(value));
274 return *this;
275 }
277
279
286 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
287 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
288 template <typename TagsT = Aws::Vector<Tag>>
289 void SetTags(TagsT&& value) {
290 m_tagsHasBeenSet = true;
291 m_tags = std::forward<TagsT>(value);
292 }
293 template <typename TagsT = Aws::Vector<Tag>>
294 Subdomain& WithTags(TagsT&& value) {
295 SetTags(std::forward<TagsT>(value));
296 return *this;
297 }
298 template <typename TagsT = Tag>
299 Subdomain& AddTags(TagsT&& value) {
300 m_tagsHasBeenSet = true;
301 m_tags.emplace_back(std::forward<TagsT>(value));
302 return *this;
303 }
305 private:
306 Aws::String m_subdomainName;
307
308 Aws::String m_arn;
309
310 Aws::String m_fqdn;
311
312 int m_depth{0};
313
315
316 SubdomainAttachableResource m_attachedResource;
317
318 SubdomainAttachableResource m_attachingResource;
319
320 ResourceLocation m_location;
321
322 Aws::Utils::DateTime m_createdAt{};
323
324 Aws::String m_parentFqdn;
325
326 Aws::Vector<Subdomain> m_children;
327
328 Aws::Vector<Tag> m_tags;
329 bool m_subdomainNameHasBeenSet = false;
330 bool m_arnHasBeenSet = false;
331 bool m_fqdnHasBeenSet = false;
332 bool m_depthHasBeenSet = false;
333 bool m_stateHasBeenSet = false;
334 bool m_attachedResourceHasBeenSet = false;
335 bool m_attachingResourceHasBeenSet = false;
336 bool m_locationHasBeenSet = false;
337 bool m_createdAtHasBeenSet = false;
338 bool m_parentFqdnHasBeenSet = false;
339 bool m_childrenHasBeenSet = false;
340 bool m_tagsHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace Lightsail
345} // namespace Aws
Subdomain & AddTags(TagsT &&value)
Definition Subdomain.h:299
SubdomainState GetState() const
Definition Subdomain.h:143
AWS_LIGHTSAIL_API Subdomain & operator=(Aws::Utils::Json::JsonView jsonValue)
const SubdomainAttachableResource & GetAttachedResource() const
Definition Subdomain.h:161
Subdomain & WithLocation(LocationT &&value)
Definition Subdomain.h:208
Subdomain & WithChildren(ChildrenT &&value)
Definition Subdomain.h:266
void SetState(SubdomainState value)
Definition Subdomain.h:145
AWS_LIGHTSAIL_API Subdomain(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition Subdomain.h:221
const Aws::Vector< Subdomain > & GetChildren() const
Definition Subdomain.h:258
AWS_LIGHTSAIL_API Subdomain()=default
void SetChildren(ChildrenT &&value)
Definition Subdomain.h:261
void SetParentFqdn(ParentFqdnT &&value)
Definition Subdomain.h:241
Subdomain & WithDepth(int value)
Definition Subdomain.h:118
Subdomain & WithState(SubdomainState value)
Definition Subdomain.h:149
Subdomain & AddChildren(ChildrenT &&value)
Definition Subdomain.h:271
const Aws::String & GetFqdn() const
Definition Subdomain.h:92
const SubdomainAttachableResource & GetAttachingResource() const
Definition Subdomain.h:181
void SetSubdomainName(SubdomainNameT &&value)
Definition Subdomain.h:53
const Aws::String & GetArn() const
Definition Subdomain.h:72
Subdomain & WithCreatedAt(CreatedAtT &&value)
Definition Subdomain.h:226
const Aws::String & GetParentFqdn() const
Definition Subdomain.h:238
void SetAttachedResource(AttachedResourceT &&value)
Definition Subdomain.h:164
void SetArn(ArnT &&value)
Definition Subdomain.h:75
void SetAttachingResource(AttachingResourceT &&value)
Definition Subdomain.h:184
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(TagsT &&value)
Definition Subdomain.h:289
Subdomain & WithArn(ArnT &&value)
Definition Subdomain.h:80
Subdomain & WithTags(TagsT &&value)
Definition Subdomain.h:294
void SetFqdn(FqdnT &&value)
Definition Subdomain.h:95
const Aws::Vector< Tag > & GetTags() const
Definition Subdomain.h:286
Subdomain & WithFqdn(FqdnT &&value)
Definition Subdomain.h:100
const Aws::String & GetSubdomainName() const
Definition Subdomain.h:50
Subdomain & WithSubdomainName(SubdomainNameT &&value)
Definition Subdomain.h:58
bool AttachingResourceHasBeenSet() const
Definition Subdomain.h:182
Subdomain & WithAttachingResource(AttachingResourceT &&value)
Definition Subdomain.h:189
const ResourceLocation & GetLocation() const
Definition Subdomain.h:200
Subdomain & WithParentFqdn(ParentFqdnT &&value)
Definition Subdomain.h:246
Subdomain & WithAttachedResource(AttachedResourceT &&value)
Definition Subdomain.h:169
void SetLocation(LocationT &&value)
Definition Subdomain.h:203
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Subdomain.h:218
bool AttachedResourceHasBeenSet() const
Definition Subdomain.h:162
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue