AWS SDK for C++  1.9.104
AWS SDK for C++
Domain.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace Lightsail
28 {
29 namespace Model
30 {
31 
38  {
39  public:
40  Domain();
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline Domain& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline Domain& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline Domain& WithName(const char* value) { SetName(value); return *this;}
85 
86 
91  inline const Aws::String& GetArn() const{ return m_arn; }
92 
97  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
98 
103  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
104 
109  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
110 
115  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
116 
121  inline Domain& WithArn(const Aws::String& value) { SetArn(value); return *this;}
122 
127  inline Domain& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
128 
133  inline Domain& WithArn(const char* value) { SetArn(value); return *this;}
134 
135 
141  inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
142 
148  inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
149 
155  inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
156 
162  inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
163 
169  inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
170 
176  inline Domain& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
177 
183  inline Domain& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
184 
190  inline Domain& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
191 
192 
196  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
197 
201  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
202 
206  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
207 
211  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
212 
216  inline Domain& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
217 
221  inline Domain& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
222 
223 
228  inline const ResourceLocation& GetLocation() const{ return m_location; }
229 
234  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
235 
240  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
241 
246  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
247 
252  inline Domain& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
253 
258  inline Domain& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
259 
260 
264  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
265 
269  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
270 
274  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
275 
279  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
280 
284  inline Domain& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
285 
289  inline Domain& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
290 
291 
298  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
299 
306  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
307 
314  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
315 
322  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
323 
330  inline Domain& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
331 
338  inline Domain& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
339 
346  inline Domain& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
347 
354  inline Domain& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
355 
356 
361  inline const Aws::Vector<DomainEntry>& GetDomainEntries() const{ return m_domainEntries; }
362 
367  inline bool DomainEntriesHasBeenSet() const { return m_domainEntriesHasBeenSet; }
368 
373  inline void SetDomainEntries(const Aws::Vector<DomainEntry>& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = value; }
374 
379  inline void SetDomainEntries(Aws::Vector<DomainEntry>&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = std::move(value); }
380 
385  inline Domain& WithDomainEntries(const Aws::Vector<DomainEntry>& value) { SetDomainEntries(value); return *this;}
386 
391  inline Domain& WithDomainEntries(Aws::Vector<DomainEntry>&& value) { SetDomainEntries(std::move(value)); return *this;}
392 
397  inline Domain& AddDomainEntries(const DomainEntry& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.push_back(value); return *this; }
398 
403  inline Domain& AddDomainEntries(DomainEntry&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.push_back(std::move(value)); return *this; }
404 
405  private:
406 
407  Aws::String m_name;
408  bool m_nameHasBeenSet;
409 
410  Aws::String m_arn;
411  bool m_arnHasBeenSet;
412 
413  Aws::String m_supportCode;
414  bool m_supportCodeHasBeenSet;
415 
416  Aws::Utils::DateTime m_createdAt;
417  bool m_createdAtHasBeenSet;
418 
419  ResourceLocation m_location;
420  bool m_locationHasBeenSet;
421 
422  ResourceType m_resourceType;
423  bool m_resourceTypeHasBeenSet;
424 
425  Aws::Vector<Tag> m_tags;
426  bool m_tagsHasBeenSet;
427 
428  Aws::Vector<DomainEntry> m_domainEntries;
429  bool m_domainEntriesHasBeenSet;
430  };
431 
432 } // namespace Model
433 } // namespace Lightsail
434 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::Domain::WithName
Domain & WithName(Aws::String &&value)
Definition: Domain.h:79
Aws::Lightsail::Model::Domain::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: Domain.h:206
Aws::Lightsail::Model::Domain::Domain
Domain(Aws::Utils::Json::JsonView jsonValue)
ResourceType.h
Aws::Lightsail::Model::Domain::AddDomainEntries
Domain & AddDomainEntries(DomainEntry &&value)
Definition: Domain.h:403
Aws::Lightsail::Model::Domain::WithResourceType
Domain & WithResourceType(ResourceType &&value)
Definition: Domain.h:289
Aws::Lightsail::Model::Domain::WithCreatedAt
Domain & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: Domain.h:221
Aws::Lightsail::Model::Domain::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: Domain.h:211
Aws::Lightsail::Model::Domain::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: Domain.h:246
Aws::Lightsail::Model::Domain::WithSupportCode
Domain & WithSupportCode(Aws::String &&value)
Definition: Domain.h:183
DateTime.h
Aws::Lightsail::Model::Domain::SetName
void SetName(const char *value)
Definition: Domain.h:69
Aws::Lightsail::Model::Domain::WithCreatedAt
Domain & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: Domain.h:216
Aws::Lightsail::Model::Domain::SetName
void SetName(const Aws::String &value)
Definition: Domain.h:59
Aws::Lightsail::Model::Domain::WithTags
Domain & WithTags(const Aws::Vector< Tag > &value)
Definition: Domain.h:330
Aws::Lightsail::Model::Domain::WithDomainEntries
Domain & WithDomainEntries(Aws::Vector< DomainEntry > &&value)
Definition: Domain.h:391
Aws::Lightsail::Model::Domain::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: Domain.h:306
Aws::Lightsail::Model::Domain::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Domain.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::Domain::WithName
Domain & WithName(const char *value)
Definition: Domain.h:84
Aws::Lightsail::Model::Domain::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: Domain.h:279
AWSVector.h
Aws::Lightsail::Model::Domain::GetName
const Aws::String & GetName() const
Definition: Domain.h:49
Aws::Lightsail::Model::Domain::WithDomainEntries
Domain & WithDomainEntries(const Aws::Vector< DomainEntry > &value)
Definition: Domain.h:385
Aws::Lightsail::Model::Domain::GetSupportCode
const Aws::String & GetSupportCode() const
Definition: Domain.h:141
Aws::Lightsail::Model::Domain::AddTags
Domain & AddTags(Tag &&value)
Definition: Domain.h:354
Aws::Lightsail::Model::Domain::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: Domain.h:298
Aws::Lightsail::Model::Domain::WithArn
Domain & WithArn(Aws::String &&value)
Definition: Domain.h:127
Aws::Lightsail::Model::Domain::SetSupportCode
void SetSupportCode(const char *value)
Definition: Domain.h:169
Aws::Lightsail::Model::Domain::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: Domain.h:201
Aws::Lightsail::Model::Domain::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: Domain.h:196
Tag.h
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::Domain::SetArn
void SetArn(const char *value)
Definition: Domain.h:115
Aws::Lightsail::Model::Domain::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: Domain.h:274
Aws::Lightsail::Model::Domain::WithResourceType
Domain & WithResourceType(const ResourceType &value)
Definition: Domain.h:284
Aws::Lightsail::Model::Domain::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Domain.h:269
Aws::Lightsail::Model::Domain::SetDomainEntries
void SetDomainEntries(const Aws::Vector< DomainEntry > &value)
Definition: Domain.h:373
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::Domain::AddTags
Domain & AddTags(const Tag &value)
Definition: Domain.h:346
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::Domain::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Domain.h:97
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Domain::WithArn
Domain & WithArn(const Aws::String &value)
Definition: Domain.h:121
Aws::Lightsail::Model::Domain::SupportCodeHasBeenSet
bool SupportCodeHasBeenSet() const
Definition: Domain.h:148
Aws::Lightsail::Model::Domain::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: Domain.h:314
Aws::Lightsail::Model::Domain::WithArn
Domain & WithArn(const char *value)
Definition: Domain.h:133
Aws::Lightsail::Model::Domain::SetSupportCode
void SetSupportCode(const Aws::String &value)
Definition: Domain.h:155
Aws::Lightsail::Model::Domain::WithSupportCode
Domain & WithSupportCode(const Aws::String &value)
Definition: Domain.h:176
Aws::Lightsail::Model::Domain
Definition: Domain.h:38
Aws::Lightsail::Model::Domain::SetSupportCode
void SetSupportCode(Aws::String &&value)
Definition: Domain.h:162
Aws::Lightsail::Model::Domain::GetDomainEntries
const Aws::Vector< DomainEntry > & GetDomainEntries() const
Definition: Domain.h:361
Aws::Lightsail::Model::Domain::DomainEntriesHasBeenSet
bool DomainEntriesHasBeenSet() const
Definition: Domain.h:367
Aws::Lightsail::Model::Domain::WithSupportCode
Domain & WithSupportCode(const char *value)
Definition: Domain.h:190
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
ResourceLocation.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Domain::WithLocation
Domain & WithLocation(const ResourceLocation &value)
Definition: Domain.h:252
Aws::Lightsail::Model::Domain::SetArn
void SetArn(const Aws::String &value)
Definition: Domain.h:103
Aws::Lightsail::Model::Domain::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Domain::AddDomainEntries
Domain & AddDomainEntries(const DomainEntry &value)
Definition: Domain.h:397
Aws::Lightsail::Model::Domain::WithName
Domain & WithName(const Aws::String &value)
Definition: Domain.h:74
Aws::Lightsail::Model::Domain::GetResourceType
const ResourceType & GetResourceType() const
Definition: Domain.h:264
Aws::Lightsail::Model::Domain::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: Domain.h:322
Aws::Lightsail::Model::Domain::WithTags
Domain & WithTags(Aws::Vector< Tag > &&value)
Definition: Domain.h:338
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DomainEntry.h
Aws::Lightsail::Model::Domain::Domain
Domain()
Aws::Lightsail::Model::Domain::GetLocation
const ResourceLocation & GetLocation() const
Definition: Domain.h:228
Aws::Lightsail::Model::Domain::WithLocation
Domain & WithLocation(ResourceLocation &&value)
Definition: Domain.h:258
Aws::Lightsail::Model::Domain::SetName
void SetName(Aws::String &&value)
Definition: Domain.h:64
Aws::Lightsail::Model::Domain::SetArn
void SetArn(Aws::String &&value)
Definition: Domain.h:109
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DomainEntry
Definition: DomainEntry.h:32
Aws::Lightsail::Model::Domain::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: Domain.h:234
Aws::Lightsail::Model::Domain::operator=
Domain & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Domain::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: Domain.h:240
Aws::Lightsail::Model::Domain::GetArn
const Aws::String & GetArn() const
Definition: Domain.h:91
Aws::Lightsail::Model::Domain::SetDomainEntries
void SetDomainEntries(Aws::Vector< DomainEntry > &&value)
Definition: Domain.h:379