AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
DistributionTenantSummary.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/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront {
23namespace Model {
24
32 public:
33 AWS_CLOUDFRONT_API DistributionTenantSummary() = default;
34 AWS_CLOUDFRONT_API DistributionTenantSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
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>
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>
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>>
125 SetDomains(std::forward<DomainsT>(value));
126 return *this;
127 }
128 template <typename DomainsT = DomainResult>
130 m_domainsHasBeenSet = true;
131 m_domains.emplace_back(std::forward<DomainsT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetConnectionGroupId() const { return m_connectionGroupId; }
142 inline bool ConnectionGroupIdHasBeenSet() const { return m_connectionGroupIdHasBeenSet; }
143 template <typename ConnectionGroupIdT = Aws::String>
144 void SetConnectionGroupId(ConnectionGroupIdT&& value) {
145 m_connectionGroupIdHasBeenSet = true;
146 m_connectionGroupId = std::forward<ConnectionGroupIdT>(value);
147 }
148 template <typename ConnectionGroupIdT = Aws::String>
150 SetConnectionGroupId(std::forward<ConnectionGroupIdT>(value));
151 return *this;
152 }
154
156
163 inline const Customizations& GetCustomizations() const { return m_customizations; }
164 inline bool CustomizationsHasBeenSet() const { return m_customizationsHasBeenSet; }
165 template <typename CustomizationsT = Customizations>
166 void SetCustomizations(CustomizationsT&& value) {
167 m_customizationsHasBeenSet = true;
168 m_customizations = std::forward<CustomizationsT>(value);
169 }
170 template <typename CustomizationsT = Customizations>
172 SetCustomizations(std::forward<CustomizationsT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
182 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
183 template <typename CreatedTimeT = Aws::Utils::DateTime>
184 void SetCreatedTime(CreatedTimeT&& value) {
185 m_createdTimeHasBeenSet = true;
186 m_createdTime = std::forward<CreatedTimeT>(value);
187 }
188 template <typename CreatedTimeT = Aws::Utils::DateTime>
190 SetCreatedTime(std::forward<CreatedTimeT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
200 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
201 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
202 void SetLastModifiedTime(LastModifiedTimeT&& value) {
203 m_lastModifiedTimeHasBeenSet = true;
204 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
205 }
206 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
208 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetETag() const { return m_eTag; }
218 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
219 template <typename ETagT = Aws::String>
220 void SetETag(ETagT&& value) {
221 m_eTagHasBeenSet = true;
222 m_eTag = std::forward<ETagT>(value);
223 }
224 template <typename ETagT = Aws::String>
226 SetETag(std::forward<ETagT>(value));
227 return *this;
228 }
230
232
236 inline bool GetEnabled() const { return m_enabled; }
237 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
238 inline void SetEnabled(bool value) {
239 m_enabledHasBeenSet = true;
240 m_enabled = value;
241 }
243 SetEnabled(value);
244 return *this;
245 }
247
249
252 inline const Aws::String& GetStatus() const { return m_status; }
253 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
254 template <typename StatusT = Aws::String>
255 void SetStatus(StatusT&& value) {
256 m_statusHasBeenSet = true;
257 m_status = std::forward<StatusT>(value);
258 }
259 template <typename StatusT = Aws::String>
261 SetStatus(std::forward<StatusT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_id;
267
268 Aws::String m_distributionId;
269
270 Aws::String m_name;
271
272 Aws::String m_arn;
273
275
276 Aws::String m_connectionGroupId;
277
278 Customizations m_customizations;
279
280 Aws::Utils::DateTime m_createdTime{};
281
282 Aws::Utils::DateTime m_lastModifiedTime{};
283
284 Aws::String m_eTag;
285
286 bool m_enabled{false};
287
288 Aws::String m_status;
289 bool m_idHasBeenSet = false;
290 bool m_distributionIdHasBeenSet = false;
291 bool m_nameHasBeenSet = false;
292 bool m_arnHasBeenSet = false;
293 bool m_domainsHasBeenSet = false;
294 bool m_connectionGroupIdHasBeenSet = false;
295 bool m_customizationsHasBeenSet = false;
296 bool m_createdTimeHasBeenSet = false;
297 bool m_lastModifiedTimeHasBeenSet = false;
298 bool m_eTagHasBeenSet = false;
299 bool m_enabledHasBeenSet = false;
300 bool m_statusHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace CloudFront
305} // namespace Aws
DistributionTenantSummary & WithCustomizations(CustomizationsT &&value)
DistributionTenantSummary & WithETag(ETagT &&value)
AWS_CLOUDFRONT_API DistributionTenantSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionTenantSummary & WithName(NameT &&value)
AWS_CLOUDFRONT_API DistributionTenantSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionTenantSummary & WithArn(ArnT &&value)
DistributionTenantSummary & WithConnectionGroupId(ConnectionGroupIdT &&value)
DistributionTenantSummary & WithEnabled(bool value)
DistributionTenantSummary & WithId(IdT &&value)
const Aws::Vector< DomainResult > & GetDomains() const
DistributionTenantSummary & WithDistributionId(DistributionIdT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API DistributionTenantSummary()=default
DistributionTenantSummary & WithCreatedTime(CreatedTimeT &&value)
DistributionTenantSummary & AddDomains(DomainsT &&value)
DistributionTenantSummary & WithDomains(DomainsT &&value)
DistributionTenantSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
DistributionTenantSummary & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector