AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DistributionTenant.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Customizations.h>
9#include <aws/cloudfront/model/DomainResult.h>
10#include <aws/cloudfront/model/Parameter.h>
11#include <aws/cloudfront/model/Tags.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace CloudFront {
25namespace Model {
26
33 public:
34 AWS_CLOUDFRONT_API DistributionTenant() = default;
35 AWS_CLOUDFRONT_API DistributionTenant(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API DistributionTenant& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 DistributionTenant& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDistributionId() const { return m_distributionId; }
63 inline bool DistributionIdHasBeenSet() const { return m_distributionIdHasBeenSet; }
64 template <typename DistributionIdT = Aws::String>
65 void SetDistributionId(DistributionIdT&& value) {
66 m_distributionIdHasBeenSet = true;
67 m_distributionId = std::forward<DistributionIdT>(value);
68 }
69 template <typename DistributionIdT = Aws::String>
70 DistributionTenant& WithDistributionId(DistributionIdT&& value) {
71 SetDistributionId(std::forward<DistributionIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 DistributionTenant& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetArn() const { return m_arn; }
99 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
100 template <typename ArnT = Aws::String>
101 void SetArn(ArnT&& value) {
102 m_arnHasBeenSet = true;
103 m_arn = std::forward<ArnT>(value);
104 }
105 template <typename ArnT = Aws::String>
107 SetArn(std::forward<ArnT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<DomainResult>& GetDomains() const { return m_domains; }
117 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
118 template <typename DomainsT = Aws::Vector<DomainResult>>
119 void SetDomains(DomainsT&& value) {
120 m_domainsHasBeenSet = true;
121 m_domains = std::forward<DomainsT>(value);
122 }
123 template <typename DomainsT = Aws::Vector<DomainResult>>
124 DistributionTenant& WithDomains(DomainsT&& value) {
125 SetDomains(std::forward<DomainsT>(value));
126 return *this;
127 }
128 template <typename DomainsT = DomainResult>
129 DistributionTenant& AddDomains(DomainsT&& value) {
130 m_domainsHasBeenSet = true;
131 m_domains.emplace_back(std::forward<DomainsT>(value));
132 return *this;
133 }
135
137
138 inline const Tags& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Tags>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Tags>
146 DistributionTenant& WithTags(TagsT&& value) {
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
151
153
160 inline const Customizations& GetCustomizations() const { return m_customizations; }
161 inline bool CustomizationsHasBeenSet() const { return m_customizationsHasBeenSet; }
162 template <typename CustomizationsT = Customizations>
163 void SetCustomizations(CustomizationsT&& value) {
164 m_customizationsHasBeenSet = true;
165 m_customizations = std::forward<CustomizationsT>(value);
166 }
167 template <typename CustomizationsT = Customizations>
168 DistributionTenant& WithCustomizations(CustomizationsT&& value) {
169 SetCustomizations(std::forward<CustomizationsT>(value));
170 return *this;
171 }
173
175
180 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
181 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
182 template <typename ParametersT = Aws::Vector<Parameter>>
183 void SetParameters(ParametersT&& value) {
184 m_parametersHasBeenSet = true;
185 m_parameters = std::forward<ParametersT>(value);
186 }
187 template <typename ParametersT = Aws::Vector<Parameter>>
188 DistributionTenant& WithParameters(ParametersT&& value) {
189 SetParameters(std::forward<ParametersT>(value));
190 return *this;
191 }
192 template <typename ParametersT = Parameter>
193 DistributionTenant& AddParameters(ParametersT&& value) {
194 m_parametersHasBeenSet = true;
195 m_parameters.emplace_back(std::forward<ParametersT>(value));
196 return *this;
197 }
199
201
205 inline const Aws::String& GetConnectionGroupId() const { return m_connectionGroupId; }
206 inline bool ConnectionGroupIdHasBeenSet() const { return m_connectionGroupIdHasBeenSet; }
207 template <typename ConnectionGroupIdT = Aws::String>
208 void SetConnectionGroupId(ConnectionGroupIdT&& value) {
209 m_connectionGroupIdHasBeenSet = true;
210 m_connectionGroupId = std::forward<ConnectionGroupIdT>(value);
211 }
212 template <typename ConnectionGroupIdT = Aws::String>
213 DistributionTenant& WithConnectionGroupId(ConnectionGroupIdT&& value) {
214 SetConnectionGroupId(std::forward<ConnectionGroupIdT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
224 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
225 template <typename CreatedTimeT = Aws::Utils::DateTime>
226 void SetCreatedTime(CreatedTimeT&& value) {
227 m_createdTimeHasBeenSet = true;
228 m_createdTime = std::forward<CreatedTimeT>(value);
229 }
230 template <typename CreatedTimeT = Aws::Utils::DateTime>
231 DistributionTenant& WithCreatedTime(CreatedTimeT&& value) {
232 SetCreatedTime(std::forward<CreatedTimeT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
242 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
243 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
244 void SetLastModifiedTime(LastModifiedTimeT&& value) {
245 m_lastModifiedTimeHasBeenSet = true;
246 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
247 }
248 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
249 DistributionTenant& WithLastModifiedTime(LastModifiedTimeT&& value) {
250 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
251 return *this;
252 }
254
256
260 inline bool GetEnabled() const { return m_enabled; }
261 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
262 inline void SetEnabled(bool value) {
263 m_enabledHasBeenSet = true;
264 m_enabled = value;
265 }
266 inline DistributionTenant& WithEnabled(bool value) {
267 SetEnabled(value);
268 return *this;
269 }
271
273
276 inline const Aws::String& GetStatus() const { return m_status; }
277 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
278 template <typename StatusT = Aws::String>
279 void SetStatus(StatusT&& value) {
280 m_statusHasBeenSet = true;
281 m_status = std::forward<StatusT>(value);
282 }
283 template <typename StatusT = Aws::String>
284 DistributionTenant& WithStatus(StatusT&& value) {
285 SetStatus(std::forward<StatusT>(value));
286 return *this;
287 }
289 private:
290 Aws::String m_id;
291
292 Aws::String m_distributionId;
293
294 Aws::String m_name;
295
296 Aws::String m_arn;
297
299
300 Tags m_tags;
301
302 Customizations m_customizations;
303
304 Aws::Vector<Parameter> m_parameters;
305
306 Aws::String m_connectionGroupId;
307
308 Aws::Utils::DateTime m_createdTime{};
309
310 Aws::Utils::DateTime m_lastModifiedTime{};
311
312 bool m_enabled{false};
313
314 Aws::String m_status;
315 bool m_idHasBeenSet = false;
316 bool m_distributionIdHasBeenSet = false;
317 bool m_nameHasBeenSet = false;
318 bool m_arnHasBeenSet = false;
319 bool m_domainsHasBeenSet = false;
320 bool m_tagsHasBeenSet = false;
321 bool m_customizationsHasBeenSet = false;
322 bool m_parametersHasBeenSet = false;
323 bool m_connectionGroupIdHasBeenSet = false;
324 bool m_createdTimeHasBeenSet = false;
325 bool m_lastModifiedTimeHasBeenSet = false;
326 bool m_enabledHasBeenSet = false;
327 bool m_statusHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace CloudFront
332} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CLOUDFRONT_API DistributionTenant(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionTenant & WithCustomizations(CustomizationsT &&value)
DistributionTenant & AddDomains(DomainsT &&value)
DistributionTenant & WithId(IdT &&value)
DistributionTenant & WithEnabled(bool value)
const Aws::Vector< Parameter > & GetParameters() const
void SetDistributionId(DistributionIdT &&value)
AWS_CLOUDFRONT_API DistributionTenant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionTenant & WithDistributionId(DistributionIdT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionTenant & WithLastModifiedTime(LastModifiedTimeT &&value)
DistributionTenant & AddParameters(ParametersT &&value)
DistributionTenant & WithArn(ArnT &&value)
DistributionTenant & WithParameters(ParametersT &&value)
AWS_CLOUDFRONT_API DistributionTenant()=default
const Aws::Vector< DomainResult > & GetDomains() const
const Aws::String & GetConnectionGroupId() const
void SetCustomizations(CustomizationsT &&value)
DistributionTenant & WithConnectionGroupId(ConnectionGroupIdT &&value)
DistributionTenant & WithCreatedTime(CreatedTimeT &&value)
void SetConnectionGroupId(ConnectionGroupIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DistributionTenant & WithStatus(StatusT &&value)
const Customizations & GetCustomizations() const
DistributionTenant & WithDomains(DomainsT &&value)
const Aws::String & GetDistributionId() const
DistributionTenant & WithTags(TagsT &&value)
DistributionTenant & WithName(NameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector