AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Domain.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/DomainEntry.h>
12#include <aws/lightsail/model/RegisteredDomainDelegationInfo.h>
13#include <aws/lightsail/model/ResourceLocation.h>
14#include <aws/lightsail/model/ResourceType.h>
15#include <aws/lightsail/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail {
27namespace Model {
28
34class Domain {
35 public:
36 AWS_LIGHTSAIL_API Domain() = default;
37 AWS_LIGHTSAIL_API Domain(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Domain& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 Domain& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template <typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) {
68 m_arnHasBeenSet = true;
69 m_arn = std::forward<ArnT>(value);
70 }
71 template <typename ArnT = Aws::String>
72 Domain& WithArn(ArnT&& value) {
73 SetArn(std::forward<ArnT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
85 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
86 template <typename SupportCodeT = Aws::String>
87 void SetSupportCode(SupportCodeT&& value) {
88 m_supportCodeHasBeenSet = true;
89 m_supportCode = std::forward<SupportCodeT>(value);
90 }
91 template <typename SupportCodeT = Aws::String>
92 Domain& WithSupportCode(SupportCodeT&& value) {
93 SetSupportCode(std::forward<SupportCodeT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
103 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
105 void SetCreatedAt(CreatedAtT&& value) {
106 m_createdAtHasBeenSet = true;
107 m_createdAt = std::forward<CreatedAtT>(value);
108 }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
110 Domain& WithCreatedAt(CreatedAtT&& value) {
111 SetCreatedAt(std::forward<CreatedAtT>(value));
112 return *this;
113 }
115
117
121 inline const ResourceLocation& GetLocation() const { return m_location; }
122 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
123 template <typename LocationT = ResourceLocation>
124 void SetLocation(LocationT&& value) {
125 m_locationHasBeenSet = true;
126 m_location = std::forward<LocationT>(value);
127 }
128 template <typename LocationT = ResourceLocation>
129 Domain& WithLocation(LocationT&& value) {
130 SetLocation(std::forward<LocationT>(value));
131 return *this;
132 }
134
136
139 inline ResourceType GetResourceType() const { return m_resourceType; }
140 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
141 inline void SetResourceType(ResourceType value) {
142 m_resourceTypeHasBeenSet = true;
143 m_resourceType = value;
144 }
146 SetResourceType(value);
147 return *this;
148 }
150
152
158 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Vector<Tag>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Vector<Tag>>
166 Domain& WithTags(TagsT&& value) {
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsT = Tag>
171 Domain& AddTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace_back(std::forward<TagsT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::Vector<DomainEntry>& GetDomainEntries() const { return m_domainEntries; }
184 inline bool DomainEntriesHasBeenSet() const { return m_domainEntriesHasBeenSet; }
185 template <typename DomainEntriesT = Aws::Vector<DomainEntry>>
186 void SetDomainEntries(DomainEntriesT&& value) {
187 m_domainEntriesHasBeenSet = true;
188 m_domainEntries = std::forward<DomainEntriesT>(value);
189 }
190 template <typename DomainEntriesT = Aws::Vector<DomainEntry>>
191 Domain& WithDomainEntries(DomainEntriesT&& value) {
192 SetDomainEntries(std::forward<DomainEntriesT>(value));
193 return *this;
194 }
195 template <typename DomainEntriesT = DomainEntry>
196 Domain& AddDomainEntries(DomainEntriesT&& value) {
197 m_domainEntriesHasBeenSet = true;
198 m_domainEntries.emplace_back(std::forward<DomainEntriesT>(value));
199 return *this;
200 }
202
204
208 inline const RegisteredDomainDelegationInfo& GetRegisteredDomainDelegationInfo() const { return m_registeredDomainDelegationInfo; }
209 inline bool RegisteredDomainDelegationInfoHasBeenSet() const { return m_registeredDomainDelegationInfoHasBeenSet; }
210 template <typename RegisteredDomainDelegationInfoT = RegisteredDomainDelegationInfo>
211 void SetRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT&& value) {
212 m_registeredDomainDelegationInfoHasBeenSet = true;
213 m_registeredDomainDelegationInfo = std::forward<RegisteredDomainDelegationInfoT>(value);
214 }
215 template <typename RegisteredDomainDelegationInfoT = RegisteredDomainDelegationInfo>
216 Domain& WithRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT&& value) {
217 SetRegisteredDomainDelegationInfo(std::forward<RegisteredDomainDelegationInfoT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_name;
223
224 Aws::String m_arn;
225
226 Aws::String m_supportCode;
227
228 Aws::Utils::DateTime m_createdAt{};
229
230 ResourceLocation m_location;
231
232 ResourceType m_resourceType{ResourceType::NOT_SET};
233
234 Aws::Vector<Tag> m_tags;
235
236 Aws::Vector<DomainEntry> m_domainEntries;
237
238 RegisteredDomainDelegationInfo m_registeredDomainDelegationInfo;
239 bool m_nameHasBeenSet = false;
240 bool m_arnHasBeenSet = false;
241 bool m_supportCodeHasBeenSet = false;
242 bool m_createdAtHasBeenSet = false;
243 bool m_locationHasBeenSet = false;
244 bool m_resourceTypeHasBeenSet = false;
245 bool m_tagsHasBeenSet = false;
246 bool m_domainEntriesHasBeenSet = false;
247 bool m_registeredDomainDelegationInfoHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace Lightsail
252} // namespace Aws
Domain & WithSupportCode(SupportCodeT &&value)
Definition Domain.h:92
bool LocationHasBeenSet() const
Definition Domain.h:122
Domain & WithCreatedAt(CreatedAtT &&value)
Definition Domain.h:110
Domain & AddTags(TagsT &&value)
Definition Domain.h:171
void SetTags(TagsT &&value)
Definition Domain.h:161
Domain & AddDomainEntries(DomainEntriesT &&value)
Definition Domain.h:196
bool ArnHasBeenSet() const
Definition Domain.h:65
bool DomainEntriesHasBeenSet() const
Definition Domain.h:184
const Aws::String & GetArn() const
Definition Domain.h:64
bool TagsHasBeenSet() const
Definition Domain.h:159
void SetResourceType(ResourceType value)
Definition Domain.h:141
void SetDomainEntries(DomainEntriesT &&value)
Definition Domain.h:186
const RegisteredDomainDelegationInfo & GetRegisteredDomainDelegationInfo() const
Definition Domain.h:208
AWS_LIGHTSAIL_API Domain(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Domain.h:48
bool ResourceTypeHasBeenSet() const
Definition Domain.h:140
Domain & WithArn(ArnT &&value)
Definition Domain.h:72
AWS_LIGHTSAIL_API Domain()=default
const Aws::String & GetName() const
Definition Domain.h:45
void SetLocation(LocationT &&value)
Definition Domain.h:124
ResourceType GetResourceType() const
Definition Domain.h:139
Domain & WithName(NameT &&value)
Definition Domain.h:53
const ResourceLocation & GetLocation() const
Definition Domain.h:121
Domain & WithDomainEntries(DomainEntriesT &&value)
Definition Domain.h:191
Domain & WithTags(TagsT &&value)
Definition Domain.h:166
void SetSupportCode(SupportCodeT &&value)
Definition Domain.h:87
bool SupportCodeHasBeenSet() const
Definition Domain.h:85
void SetCreatedAt(CreatedAtT &&value)
Definition Domain.h:105
Domain & WithLocation(LocationT &&value)
Definition Domain.h:129
bool NameHasBeenSet() const
Definition Domain.h:46
const Aws::Vector< Tag > & GetTags() const
Definition Domain.h:158
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Domain.h:102
AWS_LIGHTSAIL_API Domain & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DomainEntry > & GetDomainEntries() const
Definition Domain.h:183
bool CreatedAtHasBeenSet() const
Definition Domain.h:103
void SetArn(ArnT &&value)
Definition Domain.h:67
Domain & WithRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT &&value)
Definition Domain.h:216
const Aws::String & GetSupportCode() const
Definition Domain.h:84
bool RegisteredDomainDelegationInfoHasBeenSet() const
Definition Domain.h:209
Domain & WithResourceType(ResourceType value)
Definition Domain.h:145
void SetRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT &&value)
Definition Domain.h:211
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue