AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DistributionSummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudfront/model/Aliases.h>
11#include <aws/cloudfront/model/Origins.h>
12#include <aws/cloudfront/model/OriginGroups.h>
13#include <aws/cloudfront/model/DefaultCacheBehavior.h>
14#include <aws/cloudfront/model/CacheBehaviors.h>
15#include <aws/cloudfront/model/CustomErrorResponses.h>
16#include <aws/cloudfront/model/PriceClass.h>
17#include <aws/cloudfront/model/ViewerCertificate.h>
18#include <aws/cloudfront/model/Restrictions.h>
19#include <aws/cloudfront/model/HttpVersion.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21#include <aws/cloudfront/model/ConnectionMode.h>
22#include <aws/cloudfront/model/AliasICPRecordal.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Xml
30{
31 class XmlNode;
32} // namespace Xml
33} // namespace Utils
34namespace CloudFront
35{
36namespace Model
37{
38
46 {
47 public:
48 AWS_CLOUDFRONT_API DistributionSummary() = default;
49 AWS_CLOUDFRONT_API DistributionSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
50 AWS_CLOUDFRONT_API DistributionSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51
52 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53
54
56
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 DistributionSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
74 inline const Aws::String& GetARN() const { return m_aRN; }
75 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
76 template<typename ARNT = Aws::String>
77 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
78 template<typename ARNT = Aws::String>
79 DistributionSummary& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
81
83
86 inline const Aws::String& GetETag() const { return m_eTag; }
87 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
88 template<typename ETagT = Aws::String>
89 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
90 template<typename ETagT = Aws::String>
91 DistributionSummary& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
93
95
100 inline const Aws::String& GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 template<typename StatusT = Aws::String>
103 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
104 template<typename StatusT = Aws::String>
105 DistributionSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
113 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
114 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
115 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
116 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
117 DistributionSummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
119
121
125 inline const Aws::String& GetDomainName() const { return m_domainName; }
126 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
127 template<typename DomainNameT = Aws::String>
128 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
129 template<typename DomainNameT = Aws::String>
130 DistributionSummary& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
132
134
138 inline const Aliases& GetAliases() const { return m_aliases; }
139 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
140 template<typename AliasesT = Aliases>
141 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases = std::forward<AliasesT>(value); }
142 template<typename AliasesT = Aliases>
143 DistributionSummary& WithAliases(AliasesT&& value) { SetAliases(std::forward<AliasesT>(value)); return *this;}
145
147
151 inline const Origins& GetOrigins() const { return m_origins; }
152 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
153 template<typename OriginsT = Origins>
154 void SetOrigins(OriginsT&& value) { m_originsHasBeenSet = true; m_origins = std::forward<OriginsT>(value); }
155 template<typename OriginsT = Origins>
156 DistributionSummary& WithOrigins(OriginsT&& value) { SetOrigins(std::forward<OriginsT>(value)); return *this;}
158
160
164 inline const OriginGroups& GetOriginGroups() const { return m_originGroups; }
165 inline bool OriginGroupsHasBeenSet() const { return m_originGroupsHasBeenSet; }
166 template<typename OriginGroupsT = OriginGroups>
167 void SetOriginGroups(OriginGroupsT&& value) { m_originGroupsHasBeenSet = true; m_originGroups = std::forward<OriginGroupsT>(value); }
168 template<typename OriginGroupsT = OriginGroups>
169 DistributionSummary& WithOriginGroups(OriginGroupsT&& value) { SetOriginGroups(std::forward<OriginGroupsT>(value)); return *this;}
171
173
179 inline const DefaultCacheBehavior& GetDefaultCacheBehavior() const { return m_defaultCacheBehavior; }
180 inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
181 template<typename DefaultCacheBehaviorT = DefaultCacheBehavior>
182 void SetDefaultCacheBehavior(DefaultCacheBehaviorT&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value); }
183 template<typename DefaultCacheBehaviorT = DefaultCacheBehavior>
184 DistributionSummary& WithDefaultCacheBehavior(DefaultCacheBehaviorT&& value) { SetDefaultCacheBehavior(std::forward<DefaultCacheBehaviorT>(value)); return *this;}
186
188
192 inline const CacheBehaviors& GetCacheBehaviors() const { return m_cacheBehaviors; }
193 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
194 template<typename CacheBehaviorsT = CacheBehaviors>
195 void SetCacheBehaviors(CacheBehaviorsT&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::forward<CacheBehaviorsT>(value); }
196 template<typename CacheBehaviorsT = CacheBehaviors>
197 DistributionSummary& WithCacheBehaviors(CacheBehaviorsT&& value) { SetCacheBehaviors(std::forward<CacheBehaviorsT>(value)); return *this;}
199
201
205 inline const CustomErrorResponses& GetCustomErrorResponses() const { return m_customErrorResponses; }
206 inline bool CustomErrorResponsesHasBeenSet() const { return m_customErrorResponsesHasBeenSet; }
207 template<typename CustomErrorResponsesT = CustomErrorResponses>
208 void SetCustomErrorResponses(CustomErrorResponsesT&& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = std::forward<CustomErrorResponsesT>(value); }
209 template<typename CustomErrorResponsesT = CustomErrorResponses>
210 DistributionSummary& WithCustomErrorResponses(CustomErrorResponsesT&& value) { SetCustomErrorResponses(std::forward<CustomErrorResponsesT>(value)); return *this;}
212
214
217 inline const Aws::String& GetComment() const { return m_comment; }
218 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
219 template<typename CommentT = Aws::String>
220 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
221 template<typename CommentT = Aws::String>
222 DistributionSummary& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
224
226
234 inline PriceClass GetPriceClass() const { return m_priceClass; }
235 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
236 inline void SetPriceClass(PriceClass value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
237 inline DistributionSummary& WithPriceClass(PriceClass value) { SetPriceClass(value); return *this;}
239
241
244 inline bool GetEnabled() const { return m_enabled; }
245 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
246 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
247 inline DistributionSummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
249
251
255 inline const ViewerCertificate& GetViewerCertificate() const { return m_viewerCertificate; }
256 inline bool ViewerCertificateHasBeenSet() const { return m_viewerCertificateHasBeenSet; }
257 template<typename ViewerCertificateT = ViewerCertificate>
258 void SetViewerCertificate(ViewerCertificateT&& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = std::forward<ViewerCertificateT>(value); }
259 template<typename ViewerCertificateT = ViewerCertificate>
260 DistributionSummary& WithViewerCertificate(ViewerCertificateT&& value) { SetViewerCertificate(std::forward<ViewerCertificateT>(value)); return *this;}
262
264
268 inline const Restrictions& GetRestrictions() const { return m_restrictions; }
269 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
270 template<typename RestrictionsT = Restrictions>
271 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
272 template<typename RestrictionsT = Restrictions>
273 DistributionSummary& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
275
277
280 inline const Aws::String& GetWebACLId() const { return m_webACLId; }
281 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
282 template<typename WebACLIdT = Aws::String>
283 void SetWebACLId(WebACLIdT&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::forward<WebACLIdT>(value); }
284 template<typename WebACLIdT = Aws::String>
285 DistributionSummary& WithWebACLId(WebACLIdT&& value) { SetWebACLId(std::forward<WebACLIdT>(value)); return *this;}
287
289
295 inline HttpVersion GetHttpVersion() const { return m_httpVersion; }
296 inline bool HttpVersionHasBeenSet() const { return m_httpVersionHasBeenSet; }
297 inline void SetHttpVersion(HttpVersion value) { m_httpVersionHasBeenSet = true; m_httpVersion = value; }
298 inline DistributionSummary& WithHttpVersion(HttpVersion value) { SetHttpVersion(value); return *this;}
300
302
306 inline bool GetIsIPV6Enabled() const { return m_isIPV6Enabled; }
307 inline bool IsIPV6EnabledHasBeenSet() const { return m_isIPV6EnabledHasBeenSet; }
308 inline void SetIsIPV6Enabled(bool value) { m_isIPV6EnabledHasBeenSet = true; m_isIPV6Enabled = value; }
309 inline DistributionSummary& WithIsIPV6Enabled(bool value) { SetIsIPV6Enabled(value); return *this;}
311
313
323 inline const Aws::Vector<AliasICPRecordal>& GetAliasICPRecordals() const { return m_aliasICPRecordals; }
324 inline bool AliasICPRecordalsHasBeenSet() const { return m_aliasICPRecordalsHasBeenSet; }
325 template<typename AliasICPRecordalsT = Aws::Vector<AliasICPRecordal>>
326 void SetAliasICPRecordals(AliasICPRecordalsT&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = std::forward<AliasICPRecordalsT>(value); }
327 template<typename AliasICPRecordalsT = Aws::Vector<AliasICPRecordal>>
328 DistributionSummary& WithAliasICPRecordals(AliasICPRecordalsT&& value) { SetAliasICPRecordals(std::forward<AliasICPRecordalsT>(value)); return *this;}
329 template<typename AliasICPRecordalsT = AliasICPRecordal>
330 DistributionSummary& AddAliasICPRecordals(AliasICPRecordalsT&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.emplace_back(std::forward<AliasICPRecordalsT>(value)); return *this; }
332
334
339 inline bool GetStaging() const { return m_staging; }
340 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
341 inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; }
342 inline DistributionSummary& WithStaging(bool value) { SetStaging(value); return *this;}
344
346
351 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
352 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
353 inline void SetConnectionMode(ConnectionMode value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; }
356
358
362 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
363 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
364 template<typename AnycastIpListIdT = Aws::String>
365 void SetAnycastIpListId(AnycastIpListIdT&& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = std::forward<AnycastIpListIdT>(value); }
366 template<typename AnycastIpListIdT = Aws::String>
367 DistributionSummary& WithAnycastIpListId(AnycastIpListIdT&& value) { SetAnycastIpListId(std::forward<AnycastIpListIdT>(value)); return *this;}
369 private:
370
371 Aws::String m_id;
372 bool m_idHasBeenSet = false;
373
374 Aws::String m_aRN;
375 bool m_aRNHasBeenSet = false;
376
377 Aws::String m_eTag;
378 bool m_eTagHasBeenSet = false;
379
380 Aws::String m_status;
381 bool m_statusHasBeenSet = false;
382
383 Aws::Utils::DateTime m_lastModifiedTime{};
384 bool m_lastModifiedTimeHasBeenSet = false;
385
386 Aws::String m_domainName;
387 bool m_domainNameHasBeenSet = false;
388
389 Aliases m_aliases;
390 bool m_aliasesHasBeenSet = false;
391
392 Origins m_origins;
393 bool m_originsHasBeenSet = false;
394
395 OriginGroups m_originGroups;
396 bool m_originGroupsHasBeenSet = false;
397
398 DefaultCacheBehavior m_defaultCacheBehavior;
399 bool m_defaultCacheBehaviorHasBeenSet = false;
400
401 CacheBehaviors m_cacheBehaviors;
402 bool m_cacheBehaviorsHasBeenSet = false;
403
404 CustomErrorResponses m_customErrorResponses;
405 bool m_customErrorResponsesHasBeenSet = false;
406
407 Aws::String m_comment;
408 bool m_commentHasBeenSet = false;
409
410 PriceClass m_priceClass{PriceClass::NOT_SET};
411 bool m_priceClassHasBeenSet = false;
412
413 bool m_enabled{false};
414 bool m_enabledHasBeenSet = false;
415
416 ViewerCertificate m_viewerCertificate;
417 bool m_viewerCertificateHasBeenSet = false;
418
419 Restrictions m_restrictions;
420 bool m_restrictionsHasBeenSet = false;
421
422 Aws::String m_webACLId;
423 bool m_webACLIdHasBeenSet = false;
424
425 HttpVersion m_httpVersion{HttpVersion::NOT_SET};
426 bool m_httpVersionHasBeenSet = false;
427
428 bool m_isIPV6Enabled{false};
429 bool m_isIPV6EnabledHasBeenSet = false;
430
431 Aws::Vector<AliasICPRecordal> m_aliasICPRecordals;
432 bool m_aliasICPRecordalsHasBeenSet = false;
433
434 bool m_staging{false};
435 bool m_stagingHasBeenSet = false;
436
437 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
438 bool m_connectionModeHasBeenSet = false;
439
440 Aws::String m_anycastIpListId;
441 bool m_anycastIpListIdHasBeenSet = false;
442 };
443
444} // namespace Model
445} // namespace CloudFront
446} // namespace Aws
DistributionSummary & WithRestrictions(RestrictionsT &&value)
DistributionSummary & WithIsIPV6Enabled(bool value)
DistributionSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
DistributionSummary & WithCacheBehaviors(CacheBehaviorsT &&value)
DistributionSummary & WithOriginGroups(OriginGroupsT &&value)
DistributionSummary & WithId(IdT &&value)
const ViewerCertificate & GetViewerCertificate() const
AWS_CLOUDFRONT_API DistributionSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionSummary & WithDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
DistributionSummary & WithComment(CommentT &&value)
DistributionSummary & WithOrigins(OriginsT &&value)
DistributionSummary & WithWebACLId(WebACLIdT &&value)
void SetViewerCertificate(ViewerCertificateT &&value)
DistributionSummary & AddAliasICPRecordals(AliasICPRecordalsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetAliasICPRecordals(AliasICPRecordalsT &&value)
const CacheBehaviors & GetCacheBehaviors() const
AWS_CLOUDFRONT_API DistributionSummary()=default
void SetAnycastIpListId(AnycastIpListIdT &&value)
DistributionSummary & WithStatus(StatusT &&value)
DistributionSummary & WithEnabled(bool value)
DistributionSummary & WithAnycastIpListId(AnycastIpListIdT &&value)
DistributionSummary & WithDomainName(DomainNameT &&value)
void SetDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
DistributionSummary & WithETag(ETagT &&value)
AWS_CLOUDFRONT_API DistributionSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCacheBehaviors(CacheBehaviorsT &&value)
DistributionSummary & WithViewerCertificate(ViewerCertificateT &&value)
const Aws::Vector< AliasICPRecordal > & GetAliasICPRecordals() const
DistributionSummary & WithAliases(AliasesT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const DefaultCacheBehavior & GetDefaultCacheBehavior() const
DistributionSummary & WithConnectionMode(ConnectionMode value)
DistributionSummary & WithHttpVersion(HttpVersion value)
DistributionSummary & WithPriceClass(PriceClass value)
const CustomErrorResponses & GetCustomErrorResponses() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
DistributionSummary & WithStaging(bool value)
void SetCustomErrorResponses(CustomErrorResponsesT &&value)
DistributionSummary & WithAliasICPRecordals(AliasICPRecordalsT &&value)
DistributionSummary & WithCustomErrorResponses(CustomErrorResponsesT &&value)
DistributionSummary & WithARN(ARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector