AWS SDK for C++  1.9.16
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 
39  {
40  public:
41  Domain();
45 
46 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
65  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 
70  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 
75  inline Domain& WithName(const Aws::String& value) { SetName(value); return *this;}
76 
80  inline Domain& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 
85  inline Domain& WithName(const char* value) { SetName(value); return *this;}
86 
87 
92  inline const Aws::String& GetArn() const{ return m_arn; }
93 
98  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
99 
104  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
105 
110  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
111 
116  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
117 
122  inline Domain& WithArn(const Aws::String& value) { SetArn(value); return *this;}
123 
128  inline Domain& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
129 
134  inline Domain& WithArn(const char* value) { SetArn(value); return *this;}
135 
136 
142  inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
143 
149  inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
150 
156  inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
157 
163  inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
164 
170  inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
171 
177  inline Domain& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
178 
184  inline Domain& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
185 
191  inline Domain& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
192 
193 
197  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
198 
202  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
203 
207  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
208 
212  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
213 
217  inline Domain& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
218 
222  inline Domain& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
223 
224 
229  inline const ResourceLocation& GetLocation() const{ return m_location; }
230 
235  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
236 
241  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
242 
247  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
248 
253  inline Domain& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
254 
259  inline Domain& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
260 
261 
265  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
266 
270  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
271 
275  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
276 
280  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
281 
285  inline Domain& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
286 
290  inline Domain& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
291 
292 
299  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
300 
307  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
308 
315  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
316 
323  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
324 
331  inline Domain& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
332 
339  inline Domain& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
340 
347  inline Domain& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
348 
355  inline Domain& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
356 
357 
362  inline const Aws::Vector<DomainEntry>& GetDomainEntries() const{ return m_domainEntries; }
363 
368  inline bool DomainEntriesHasBeenSet() const { return m_domainEntriesHasBeenSet; }
369 
374  inline void SetDomainEntries(const Aws::Vector<DomainEntry>& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = value; }
375 
380  inline void SetDomainEntries(Aws::Vector<DomainEntry>&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = std::move(value); }
381 
386  inline Domain& WithDomainEntries(const Aws::Vector<DomainEntry>& value) { SetDomainEntries(value); return *this;}
387 
392  inline Domain& WithDomainEntries(Aws::Vector<DomainEntry>&& value) { SetDomainEntries(std::move(value)); return *this;}
393 
398  inline Domain& AddDomainEntries(const DomainEntry& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.push_back(value); return *this; }
399 
404  inline Domain& AddDomainEntries(DomainEntry&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.push_back(std::move(value)); return *this; }
405 
406  private:
407 
408  Aws::String m_name;
409  bool m_nameHasBeenSet;
410 
411  Aws::String m_arn;
412  bool m_arnHasBeenSet;
413 
414  Aws::String m_supportCode;
415  bool m_supportCodeHasBeenSet;
416 
417  Aws::Utils::DateTime m_createdAt;
418  bool m_createdAtHasBeenSet;
419 
420  ResourceLocation m_location;
421  bool m_locationHasBeenSet;
422 
423  ResourceType m_resourceType;
424  bool m_resourceTypeHasBeenSet;
425 
426  Aws::Vector<Tag> m_tags;
427  bool m_tagsHasBeenSet;
428 
429  Aws::Vector<DomainEntry> m_domainEntries;
430  bool m_domainEntriesHasBeenSet;
431  };
432 
433 } // namespace Model
434 } // namespace Lightsail
435 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::Domain::WithName
Domain & WithName(Aws::String &&value)
Definition: Domain.h:80
Aws::Lightsail::Model::Domain::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: Domain.h:207
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:404
Aws::Lightsail::Model::Domain::WithResourceType
Domain & WithResourceType(ResourceType &&value)
Definition: Domain.h:290
Aws::Lightsail::Model::Domain::WithCreatedAt
Domain & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: Domain.h:222
Aws::Lightsail::Model::Domain::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: Domain.h:212
Aws::Lightsail::Model::Domain::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: Domain.h:247
Aws::Lightsail::Model::Domain::WithSupportCode
Domain & WithSupportCode(Aws::String &&value)
Definition: Domain.h:184
DateTime.h
Aws::Lightsail::Model::Domain::SetName
void SetName(const char *value)
Definition: Domain.h:70
Aws::Lightsail::Model::Domain::WithCreatedAt
Domain & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: Domain.h:217
Aws::Lightsail::Model::Domain::SetName
void SetName(const Aws::String &value)
Definition: Domain.h:60
Aws::Lightsail::Model::Domain::WithTags
Domain & WithTags(const Aws::Vector< Tag > &value)
Definition: Domain.h:331
Aws::Lightsail::Model::Domain::WithDomainEntries
Domain & WithDomainEntries(Aws::Vector< DomainEntry > &&value)
Definition: Domain.h:392
Aws::Lightsail::Model::Domain::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: Domain.h:307
Aws::Lightsail::Model::Domain::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Domain.h:55
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:85
Aws::Lightsail::Model::Domain::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: Domain.h:280
AWSVector.h
Aws::Lightsail::Model::Domain::GetName
const Aws::String & GetName() const
Definition: Domain.h:50
Aws::Lightsail::Model::Domain::WithDomainEntries
Domain & WithDomainEntries(const Aws::Vector< DomainEntry > &value)
Definition: Domain.h:386
Aws::Lightsail::Model::Domain::GetSupportCode
const Aws::String & GetSupportCode() const
Definition: Domain.h:142
Aws::Lightsail::Model::Domain::AddTags
Domain & AddTags(Tag &&value)
Definition: Domain.h:355
Aws::Lightsail::Model::Domain::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: Domain.h:299
Aws::Lightsail::Model::Domain::WithArn
Domain & WithArn(Aws::String &&value)
Definition: Domain.h:128
Aws::Lightsail::Model::Domain::SetSupportCode
void SetSupportCode(const char *value)
Definition: Domain.h:170
Aws::Lightsail::Model::Domain::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: Domain.h:202
Aws::Lightsail::Model::Domain::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: Domain.h:197
Tag.h
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::Domain::SetArn
void SetArn(const char *value)
Definition: Domain.h:116
Aws::Lightsail::Model::Domain::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: Domain.h:275
Aws::Lightsail::Model::Domain::WithResourceType
Domain & WithResourceType(const ResourceType &value)
Definition: Domain.h:285
Aws::Lightsail::Model::Domain::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Domain.h:270
Aws::Lightsail::Model::Domain::SetDomainEntries
void SetDomainEntries(const Aws::Vector< DomainEntry > &value)
Definition: Domain.h:374
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::Domain::AddTags
Domain & AddTags(const Tag &value)
Definition: Domain.h:347
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::Domain::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Domain.h:98
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Domain::WithArn
Domain & WithArn(const Aws::String &value)
Definition: Domain.h:122
Aws::Lightsail::Model::Domain::SupportCodeHasBeenSet
bool SupportCodeHasBeenSet() const
Definition: Domain.h:149
Aws::Lightsail::Model::Domain::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: Domain.h:315
Aws::Lightsail::Model::Domain::WithArn
Domain & WithArn(const char *value)
Definition: Domain.h:134
Aws::Lightsail::Model::Domain::SetSupportCode
void SetSupportCode(const Aws::String &value)
Definition: Domain.h:156
Aws::Lightsail::Model::Domain::WithSupportCode
Domain & WithSupportCode(const Aws::String &value)
Definition: Domain.h:177
Aws::Lightsail::Model::Domain
Definition: Domain.h:39
Aws::Lightsail::Model::Domain::SetSupportCode
void SetSupportCode(Aws::String &&value)
Definition: Domain.h:163
Aws::Lightsail::Model::Domain::GetDomainEntries
const Aws::Vector< DomainEntry > & GetDomainEntries() const
Definition: Domain.h:362
Aws::Lightsail::Model::Domain::DomainEntriesHasBeenSet
bool DomainEntriesHasBeenSet() const
Definition: Domain.h:368
Aws::Lightsail::Model::Domain::WithSupportCode
Domain & WithSupportCode(const char *value)
Definition: Domain.h:191
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:253
Aws::Lightsail::Model::Domain::SetArn
void SetArn(const Aws::String &value)
Definition: Domain.h:104
Aws::Lightsail::Model::Domain::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Domain::AddDomainEntries
Domain & AddDomainEntries(const DomainEntry &value)
Definition: Domain.h:398
Aws::Lightsail::Model::Domain::WithName
Domain & WithName(const Aws::String &value)
Definition: Domain.h:75
Aws::Lightsail::Model::Domain::GetResourceType
const ResourceType & GetResourceType() const
Definition: Domain.h:265
Aws::Lightsail::Model::Domain::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: Domain.h:323
Aws::Lightsail::Model::Domain::WithTags
Domain & WithTags(Aws::Vector< Tag > &&value)
Definition: Domain.h:339
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:229
Aws::Lightsail::Model::Domain::WithLocation
Domain & WithLocation(ResourceLocation &&value)
Definition: Domain.h:259
Aws::Lightsail::Model::Domain::SetName
void SetName(Aws::String &&value)
Definition: Domain.h:65
Aws::Lightsail::Model::Domain::SetArn
void SetArn(Aws::String &&value)
Definition: Domain.h:110
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:235
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:241
Aws::Lightsail::Model::Domain::GetArn
const Aws::String & GetArn() const
Definition: Domain.h:92
Aws::Lightsail::Model::Domain::SetDomainEntries
void SetDomainEntries(Aws::Vector< DomainEntry > &&value)
Definition: Domain.h:380