AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Domain.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/RegisteredDomainDelegationInfo.h>
14#include <aws/lightsail/model/Tag.h>
15#include <aws/lightsail/model/DomainEntry.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Lightsail
29{
30namespace Model
31{
32
38 class Domain
39 {
40 public:
41 AWS_LIGHTSAIL_API Domain();
42 AWS_LIGHTSAIL_API Domain(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Domain& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline Domain& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline Domain& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline Domain& WithName(const char* value) { SetName(value); return *this;}
60
62
66 inline const Aws::String& GetArn() const{ return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline Domain& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline Domain& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline Domain& WithArn(const char* value) { SetArn(value); return *this;}
75
77
82 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
83 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
84 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
85 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
86 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
87 inline Domain& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
88 inline Domain& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
89 inline Domain& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
99 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
100 inline Domain& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
101 inline Domain& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
103
105
109 inline const ResourceLocation& GetLocation() const{ return m_location; }
110 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
111 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
112 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
113 inline Domain& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
114 inline Domain& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
116
118
121 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
122 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
123 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
124 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
125 inline Domain& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
126 inline Domain& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
128
130
136 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 inline Domain& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
141 inline Domain& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
142 inline Domain& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
143 inline Domain& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
145
147
151 inline const Aws::Vector<DomainEntry>& GetDomainEntries() const{ return m_domainEntries; }
152 inline bool DomainEntriesHasBeenSet() const { return m_domainEntriesHasBeenSet; }
153 inline void SetDomainEntries(const Aws::Vector<DomainEntry>& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = value; }
154 inline void SetDomainEntries(Aws::Vector<DomainEntry>&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = std::move(value); }
155 inline Domain& WithDomainEntries(const Aws::Vector<DomainEntry>& value) { SetDomainEntries(value); return *this;}
156 inline Domain& WithDomainEntries(Aws::Vector<DomainEntry>&& value) { SetDomainEntries(std::move(value)); return *this;}
157 inline Domain& AddDomainEntries(const DomainEntry& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.push_back(value); return *this; }
158 inline Domain& AddDomainEntries(DomainEntry&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.push_back(std::move(value)); return *this; }
160
162
166 inline const RegisteredDomainDelegationInfo& GetRegisteredDomainDelegationInfo() const{ return m_registeredDomainDelegationInfo; }
167 inline bool RegisteredDomainDelegationInfoHasBeenSet() const { return m_registeredDomainDelegationInfoHasBeenSet; }
168 inline void SetRegisteredDomainDelegationInfo(const RegisteredDomainDelegationInfo& value) { m_registeredDomainDelegationInfoHasBeenSet = true; m_registeredDomainDelegationInfo = value; }
169 inline void SetRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfo&& value) { m_registeredDomainDelegationInfoHasBeenSet = true; m_registeredDomainDelegationInfo = std::move(value); }
173 private:
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 Aws::String m_arn;
179 bool m_arnHasBeenSet = false;
180
181 Aws::String m_supportCode;
182 bool m_supportCodeHasBeenSet = false;
183
184 Aws::Utils::DateTime m_createdAt;
185 bool m_createdAtHasBeenSet = false;
186
187 ResourceLocation m_location;
188 bool m_locationHasBeenSet = false;
189
190 ResourceType m_resourceType;
191 bool m_resourceTypeHasBeenSet = false;
192
193 Aws::Vector<Tag> m_tags;
194 bool m_tagsHasBeenSet = false;
195
196 Aws::Vector<DomainEntry> m_domainEntries;
197 bool m_domainEntriesHasBeenSet = false;
198
199 RegisteredDomainDelegationInfo m_registeredDomainDelegationInfo;
200 bool m_registeredDomainDelegationInfoHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Lightsail
205} // namespace Aws
Definition DomainEntry.h:32
Domain & WithTags(Aws::Vector< Tag > &&value)
Definition Domain.h:141
Domain & WithArn(const Aws::String &value)
Definition Domain.h:71
Domain & WithSupportCode(const Aws::String &value)
Definition Domain.h:87
bool LocationHasBeenSet() const
Definition Domain.h:110
Domain & AddDomainEntries(DomainEntry &&value)
Definition Domain.h:158
Domain & WithName(Aws::String &&value)
Definition Domain.h:57
Domain & WithResourceType(ResourceType &&value)
Definition Domain.h:126
void SetDomainEntries(Aws::Vector< DomainEntry > &&value)
Definition Domain.h:154
Domain & WithRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfo &&value)
Definition Domain.h:171
bool ArnHasBeenSet() const
Definition Domain.h:67
bool DomainEntriesHasBeenSet() const
Definition Domain.h:152
const ResourceType & GetResourceType() const
Definition Domain.h:121
Domain & WithLocation(const ResourceLocation &value)
Definition Domain.h:113
const Aws::String & GetArn() const
Definition Domain.h:66
bool TagsHasBeenSet() const
Definition Domain.h:137
void SetRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfo &&value)
Definition Domain.h:169
Domain & WithSupportCode(Aws::String &&value)
Definition Domain.h:88
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Domain.h:98
void SetName(const Aws::String &value)
Definition Domain.h:53
const RegisteredDomainDelegationInfo & GetRegisteredDomainDelegationInfo() const
Definition Domain.h:166
AWS_LIGHTSAIL_API Domain(Aws::Utils::Json::JsonView jsonValue)
void SetSupportCode(const char *value)
Definition Domain.h:86
Domain & WithSupportCode(const char *value)
Definition Domain.h:89
Domain & WithName(const Aws::String &value)
Definition Domain.h:56
bool ResourceTypeHasBeenSet() const
Definition Domain.h:122
const Aws::String & GetName() const
Definition Domain.h:51
void SetArn(const char *value)
Definition Domain.h:70
Domain & AddTags(Tag &&value)
Definition Domain.h:143
Domain & WithDomainEntries(const Aws::Vector< DomainEntry > &value)
Definition Domain.h:155
void SetResourceType(const ResourceType &value)
Definition Domain.h:123
void SetArn(const Aws::String &value)
Definition Domain.h:68
Domain & WithRegisteredDomainDelegationInfo(const RegisteredDomainDelegationInfo &value)
Definition Domain.h:170
const ResourceLocation & GetLocation() const
Definition Domain.h:109
void SetLocation(ResourceLocation &&value)
Definition Domain.h:112
Domain & WithResourceType(const ResourceType &value)
Definition Domain.h:125
void SetRegisteredDomainDelegationInfo(const RegisteredDomainDelegationInfo &value)
Definition Domain.h:168
bool SupportCodeHasBeenSet() const
Definition Domain.h:83
void SetSupportCode(const Aws::String &value)
Definition Domain.h:84
Domain & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Domain.h:100
Domain & AddTags(const Tag &value)
Definition Domain.h:142
AWS_LIGHTSAIL_API Domain()
void SetSupportCode(Aws::String &&value)
Definition Domain.h:85
Domain & WithLocation(ResourceLocation &&value)
Definition Domain.h:114
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Domain.h:99
bool NameHasBeenSet() const
Definition Domain.h:52
const Aws::Vector< Tag > & GetTags() const
Definition Domain.h:136
void SetTags(Aws::Vector< Tag > &&value)
Definition Domain.h:139
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocation(const ResourceLocation &value)
Definition Domain.h:111
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Domain.h:96
void SetResourceType(ResourceType &&value)
Definition Domain.h:124
AWS_LIGHTSAIL_API Domain & operator=(Aws::Utils::Json::JsonView jsonValue)
Domain & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Domain.h:101
const Aws::Vector< DomainEntry > & GetDomainEntries() const
Definition Domain.h:151
bool CreatedAtHasBeenSet() const
Definition Domain.h:97
void SetName(const char *value)
Definition Domain.h:55
Domain & WithTags(const Aws::Vector< Tag > &value)
Definition Domain.h:140
Domain & WithArn(const char *value)
Definition Domain.h:73
const Aws::String & GetSupportCode() const
Definition Domain.h:82
bool RegisteredDomainDelegationInfoHasBeenSet() const
Definition Domain.h:167
Domain & WithName(const char *value)
Definition Domain.h:58
void SetArn(Aws::String &&value)
Definition Domain.h:69
void SetDomainEntries(const Aws::Vector< DomainEntry > &value)
Definition Domain.h:153
Domain & AddDomainEntries(const DomainEntry &value)
Definition Domain.h:157
Domain & WithArn(Aws::String &&value)
Definition Domain.h:72
Domain & WithDomainEntries(Aws::Vector< DomainEntry > &&value)
Definition Domain.h:156
void SetName(Aws::String &&value)
Definition Domain.h:54
void SetTags(const Aws::Vector< Tag > &value)
Definition Domain.h:138
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue