AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DistributionSummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/AliasICPRecordal.h>
9#include <aws/cloudfront/model/Aliases.h>
10#include <aws/cloudfront/model/CacheBehaviors.h>
11#include <aws/cloudfront/model/ConnectionFunctionAssociation.h>
12#include <aws/cloudfront/model/ConnectionMode.h>
13#include <aws/cloudfront/model/CustomErrorResponses.h>
14#include <aws/cloudfront/model/DefaultCacheBehavior.h>
15#include <aws/cloudfront/model/HttpVersion.h>
16#include <aws/cloudfront/model/OriginGroups.h>
17#include <aws/cloudfront/model/Origins.h>
18#include <aws/cloudfront/model/PriceClass.h>
19#include <aws/cloudfront/model/Restrictions.h>
20#include <aws/cloudfront/model/ViewerCertificate.h>
21#include <aws/cloudfront/model/ViewerMtlsConfig.h>
22#include <aws/core/utils/DateTime.h>
23#include <aws/core/utils/memory/stl/AWSString.h>
24#include <aws/core/utils/memory/stl/AWSVector.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Xml {
31class XmlNode;
32} // namespace Xml
33} // namespace Utils
34namespace CloudFront {
35namespace Model {
36
44 public:
45 AWS_CLOUDFRONT_API DistributionSummary() = default;
46 AWS_CLOUDFRONT_API DistributionSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_CLOUDFRONT_API DistributionSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50
52
56 inline const Aws::String& GetId() const { return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 template <typename IdT = Aws::String>
59 void SetId(IdT&& value) {
60 m_idHasBeenSet = true;
61 m_id = std::forward<IdT>(value);
62 }
63 template <typename IdT = Aws::String>
65 SetId(std::forward<IdT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetARN() const { return m_aRN; }
77 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
78 template <typename ARNT = Aws::String>
79 void SetARN(ARNT&& value) {
80 m_aRNHasBeenSet = true;
81 m_aRN = std::forward<ARNT>(value);
82 }
83 template <typename ARNT = Aws::String>
85 SetARN(std::forward<ARNT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetETag() const { return m_eTag; }
95 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
96 template <typename ETagT = Aws::String>
97 void SetETag(ETagT&& value) {
98 m_eTagHasBeenSet = true;
99 m_eTag = std::forward<ETagT>(value);
100 }
101 template <typename ETagT = Aws::String>
103 SetETag(std::forward<ETagT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::String& GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 template <typename StatusT = Aws::String>
117 void SetStatus(StatusT&& value) {
118 m_statusHasBeenSet = true;
119 m_status = std::forward<StatusT>(value);
120 }
121 template <typename StatusT = Aws::String>
122 DistributionSummary& WithStatus(StatusT&& value) {
123 SetStatus(std::forward<StatusT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
133 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
134 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
135 void SetLastModifiedTime(LastModifiedTimeT&& value) {
136 m_lastModifiedTimeHasBeenSet = true;
137 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
138 }
139 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 DistributionSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
141 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetDomainName() const { return m_domainName; }
152 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
153 template <typename DomainNameT = Aws::String>
154 void SetDomainName(DomainNameT&& value) {
155 m_domainNameHasBeenSet = true;
156 m_domainName = std::forward<DomainNameT>(value);
157 }
158 template <typename DomainNameT = Aws::String>
159 DistributionSummary& WithDomainName(DomainNameT&& value) {
160 SetDomainName(std::forward<DomainNameT>(value));
161 return *this;
162 }
164
166
170 inline const Aliases& GetAliases() const { return m_aliases; }
171 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
172 template <typename AliasesT = Aliases>
173 void SetAliases(AliasesT&& value) {
174 m_aliasesHasBeenSet = true;
175 m_aliases = std::forward<AliasesT>(value);
176 }
177 template <typename AliasesT = Aliases>
178 DistributionSummary& WithAliases(AliasesT&& value) {
179 SetAliases(std::forward<AliasesT>(value));
180 return *this;
181 }
183
185
189 inline const Origins& GetOrigins() const { return m_origins; }
190 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
191 template <typename OriginsT = Origins>
192 void SetOrigins(OriginsT&& value) {
193 m_originsHasBeenSet = true;
194 m_origins = std::forward<OriginsT>(value);
195 }
196 template <typename OriginsT = Origins>
197 DistributionSummary& WithOrigins(OriginsT&& value) {
198 SetOrigins(std::forward<OriginsT>(value));
199 return *this;
200 }
202
204
208 inline const OriginGroups& GetOriginGroups() const { return m_originGroups; }
209 inline bool OriginGroupsHasBeenSet() const { return m_originGroupsHasBeenSet; }
210 template <typename OriginGroupsT = OriginGroups>
211 void SetOriginGroups(OriginGroupsT&& value) {
212 m_originGroupsHasBeenSet = true;
213 m_originGroups = std::forward<OriginGroupsT>(value);
214 }
215 template <typename OriginGroupsT = OriginGroups>
216 DistributionSummary& WithOriginGroups(OriginGroupsT&& value) {
217 SetOriginGroups(std::forward<OriginGroupsT>(value));
218 return *this;
219 }
221
223
229 inline const DefaultCacheBehavior& GetDefaultCacheBehavior() const { return m_defaultCacheBehavior; }
230 inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
231 template <typename DefaultCacheBehaviorT = DefaultCacheBehavior>
232 void SetDefaultCacheBehavior(DefaultCacheBehaviorT&& value) {
233 m_defaultCacheBehaviorHasBeenSet = true;
234 m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value);
235 }
236 template <typename DefaultCacheBehaviorT = DefaultCacheBehavior>
237 DistributionSummary& WithDefaultCacheBehavior(DefaultCacheBehaviorT&& value) {
238 SetDefaultCacheBehavior(std::forward<DefaultCacheBehaviorT>(value));
239 return *this;
240 }
242
244
248 inline const CacheBehaviors& GetCacheBehaviors() const { return m_cacheBehaviors; }
249 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
250 template <typename CacheBehaviorsT = CacheBehaviors>
251 void SetCacheBehaviors(CacheBehaviorsT&& value) {
252 m_cacheBehaviorsHasBeenSet = true;
253 m_cacheBehaviors = std::forward<CacheBehaviorsT>(value);
254 }
255 template <typename CacheBehaviorsT = CacheBehaviors>
256 DistributionSummary& WithCacheBehaviors(CacheBehaviorsT&& value) {
257 SetCacheBehaviors(std::forward<CacheBehaviorsT>(value));
258 return *this;
259 }
261
263
267 inline const CustomErrorResponses& GetCustomErrorResponses() const { return m_customErrorResponses; }
268 inline bool CustomErrorResponsesHasBeenSet() const { return m_customErrorResponsesHasBeenSet; }
269 template <typename CustomErrorResponsesT = CustomErrorResponses>
270 void SetCustomErrorResponses(CustomErrorResponsesT&& value) {
271 m_customErrorResponsesHasBeenSet = true;
272 m_customErrorResponses = std::forward<CustomErrorResponsesT>(value);
273 }
274 template <typename CustomErrorResponsesT = CustomErrorResponses>
275 DistributionSummary& WithCustomErrorResponses(CustomErrorResponsesT&& value) {
276 SetCustomErrorResponses(std::forward<CustomErrorResponsesT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::String& GetComment() const { return m_comment; }
286 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
287 template <typename CommentT = Aws::String>
288 void SetComment(CommentT&& value) {
289 m_commentHasBeenSet = true;
290 m_comment = std::forward<CommentT>(value);
291 }
292 template <typename CommentT = Aws::String>
293 DistributionSummary& WithComment(CommentT&& value) {
294 SetComment(std::forward<CommentT>(value));
295 return *this;
296 }
298
300
308 inline PriceClass GetPriceClass() const { return m_priceClass; }
309 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
310 inline void SetPriceClass(PriceClass value) {
311 m_priceClassHasBeenSet = true;
312 m_priceClass = value;
313 }
315 SetPriceClass(value);
316 return *this;
317 }
319
321
324 inline bool GetEnabled() const { return m_enabled; }
325 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
326 inline void SetEnabled(bool value) {
327 m_enabledHasBeenSet = true;
328 m_enabled = value;
329 }
330 inline DistributionSummary& WithEnabled(bool value) {
331 SetEnabled(value);
332 return *this;
333 }
335
337
341 inline const ViewerCertificate& GetViewerCertificate() const { return m_viewerCertificate; }
342 inline bool ViewerCertificateHasBeenSet() const { return m_viewerCertificateHasBeenSet; }
343 template <typename ViewerCertificateT = ViewerCertificate>
344 void SetViewerCertificate(ViewerCertificateT&& value) {
345 m_viewerCertificateHasBeenSet = true;
346 m_viewerCertificate = std::forward<ViewerCertificateT>(value);
347 }
348 template <typename ViewerCertificateT = ViewerCertificate>
349 DistributionSummary& WithViewerCertificate(ViewerCertificateT&& value) {
350 SetViewerCertificate(std::forward<ViewerCertificateT>(value));
351 return *this;
352 }
354
356
360 inline const Restrictions& GetRestrictions() const { return m_restrictions; }
361 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
362 template <typename RestrictionsT = Restrictions>
363 void SetRestrictions(RestrictionsT&& value) {
364 m_restrictionsHasBeenSet = true;
365 m_restrictions = std::forward<RestrictionsT>(value);
366 }
367 template <typename RestrictionsT = Restrictions>
368 DistributionSummary& WithRestrictions(RestrictionsT&& value) {
369 SetRestrictions(std::forward<RestrictionsT>(value));
370 return *this;
371 }
373
375
378 inline const Aws::String& GetWebACLId() const { return m_webACLId; }
379 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
380 template <typename WebACLIdT = Aws::String>
381 void SetWebACLId(WebACLIdT&& value) {
382 m_webACLIdHasBeenSet = true;
383 m_webACLId = std::forward<WebACLIdT>(value);
384 }
385 template <typename WebACLIdT = Aws::String>
386 DistributionSummary& WithWebACLId(WebACLIdT&& value) {
387 SetWebACLId(std::forward<WebACLIdT>(value));
388 return *this;
389 }
391
393
399 inline HttpVersion GetHttpVersion() const { return m_httpVersion; }
400 inline bool HttpVersionHasBeenSet() const { return m_httpVersionHasBeenSet; }
401 inline void SetHttpVersion(HttpVersion value) {
402 m_httpVersionHasBeenSet = true;
403 m_httpVersion = value;
404 }
406 SetHttpVersion(value);
407 return *this;
408 }
410
412
416 inline bool GetIsIPV6Enabled() const { return m_isIPV6Enabled; }
417 inline bool IsIPV6EnabledHasBeenSet() const { return m_isIPV6EnabledHasBeenSet; }
418 inline void SetIsIPV6Enabled(bool value) {
419 m_isIPV6EnabledHasBeenSet = true;
420 m_isIPV6Enabled = value;
421 }
423 SetIsIPV6Enabled(value);
424 return *this;
425 }
427
429
439 inline const Aws::Vector<AliasICPRecordal>& GetAliasICPRecordals() const { return m_aliasICPRecordals; }
440 inline bool AliasICPRecordalsHasBeenSet() const { return m_aliasICPRecordalsHasBeenSet; }
441 template <typename AliasICPRecordalsT = Aws::Vector<AliasICPRecordal>>
442 void SetAliasICPRecordals(AliasICPRecordalsT&& value) {
443 m_aliasICPRecordalsHasBeenSet = true;
444 m_aliasICPRecordals = std::forward<AliasICPRecordalsT>(value);
445 }
446 template <typename AliasICPRecordalsT = Aws::Vector<AliasICPRecordal>>
447 DistributionSummary& WithAliasICPRecordals(AliasICPRecordalsT&& value) {
448 SetAliasICPRecordals(std::forward<AliasICPRecordalsT>(value));
449 return *this;
450 }
451 template <typename AliasICPRecordalsT = AliasICPRecordal>
452 DistributionSummary& AddAliasICPRecordals(AliasICPRecordalsT&& value) {
453 m_aliasICPRecordalsHasBeenSet = true;
454 m_aliasICPRecordals.emplace_back(std::forward<AliasICPRecordalsT>(value));
455 return *this;
456 }
458
460
465 inline bool GetStaging() const { return m_staging; }
466 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
467 inline void SetStaging(bool value) {
468 m_stagingHasBeenSet = true;
469 m_staging = value;
470 }
471 inline DistributionSummary& WithStaging(bool value) {
472 SetStaging(value);
473 return *this;
474 }
476
478
483 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
484 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
486 m_connectionModeHasBeenSet = true;
487 m_connectionMode = value;
488 }
490 SetConnectionMode(value);
491 return *this;
492 }
494
496
500 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
501 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
502 template <typename AnycastIpListIdT = Aws::String>
503 void SetAnycastIpListId(AnycastIpListIdT&& value) {
504 m_anycastIpListIdHasBeenSet = true;
505 m_anycastIpListId = std::forward<AnycastIpListIdT>(value);
506 }
507 template <typename AnycastIpListIdT = Aws::String>
508 DistributionSummary& WithAnycastIpListId(AnycastIpListIdT&& value) {
509 SetAnycastIpListId(std::forward<AnycastIpListIdT>(value));
510 return *this;
511 }
513
515
518 inline const ViewerMtlsConfig& GetViewerMtlsConfig() const { return m_viewerMtlsConfig; }
519 inline bool ViewerMtlsConfigHasBeenSet() const { return m_viewerMtlsConfigHasBeenSet; }
520 template <typename ViewerMtlsConfigT = ViewerMtlsConfig>
521 void SetViewerMtlsConfig(ViewerMtlsConfigT&& value) {
522 m_viewerMtlsConfigHasBeenSet = true;
523 m_viewerMtlsConfig = std::forward<ViewerMtlsConfigT>(value);
524 }
525 template <typename ViewerMtlsConfigT = ViewerMtlsConfig>
526 DistributionSummary& WithViewerMtlsConfig(ViewerMtlsConfigT&& value) {
527 SetViewerMtlsConfig(std::forward<ViewerMtlsConfigT>(value));
528 return *this;
529 }
531
533
536 inline const ConnectionFunctionAssociation& GetConnectionFunctionAssociation() const { return m_connectionFunctionAssociation; }
537 inline bool ConnectionFunctionAssociationHasBeenSet() const { return m_connectionFunctionAssociationHasBeenSet; }
538 template <typename ConnectionFunctionAssociationT = ConnectionFunctionAssociation>
539 void SetConnectionFunctionAssociation(ConnectionFunctionAssociationT&& value) {
540 m_connectionFunctionAssociationHasBeenSet = true;
541 m_connectionFunctionAssociation = std::forward<ConnectionFunctionAssociationT>(value);
542 }
543 template <typename ConnectionFunctionAssociationT = ConnectionFunctionAssociation>
544 DistributionSummary& WithConnectionFunctionAssociation(ConnectionFunctionAssociationT&& value) {
545 SetConnectionFunctionAssociation(std::forward<ConnectionFunctionAssociationT>(value));
546 return *this;
547 }
549 private:
550 Aws::String m_id;
551
552 Aws::String m_aRN;
553
554 Aws::String m_eTag;
555
556 Aws::String m_status;
557
558 Aws::Utils::DateTime m_lastModifiedTime{};
559
560 Aws::String m_domainName;
561
562 Aliases m_aliases;
563
564 Origins m_origins;
565
566 OriginGroups m_originGroups;
567
568 DefaultCacheBehavior m_defaultCacheBehavior;
569
570 CacheBehaviors m_cacheBehaviors;
571
572 CustomErrorResponses m_customErrorResponses;
573
574 Aws::String m_comment;
575
576 PriceClass m_priceClass{PriceClass::NOT_SET};
577
578 bool m_enabled{false};
579
580 ViewerCertificate m_viewerCertificate;
581
582 Restrictions m_restrictions;
583
584 Aws::String m_webACLId;
585
586 HttpVersion m_httpVersion{HttpVersion::NOT_SET};
587
588 bool m_isIPV6Enabled{false};
589
590 Aws::Vector<AliasICPRecordal> m_aliasICPRecordals;
591
592 bool m_staging{false};
593
594 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
595
596 Aws::String m_anycastIpListId;
597
598 ViewerMtlsConfig m_viewerMtlsConfig;
599
600 ConnectionFunctionAssociation m_connectionFunctionAssociation;
601 bool m_idHasBeenSet = false;
602 bool m_aRNHasBeenSet = false;
603 bool m_eTagHasBeenSet = false;
604 bool m_statusHasBeenSet = false;
605 bool m_lastModifiedTimeHasBeenSet = false;
606 bool m_domainNameHasBeenSet = false;
607 bool m_aliasesHasBeenSet = false;
608 bool m_originsHasBeenSet = false;
609 bool m_originGroupsHasBeenSet = false;
610 bool m_defaultCacheBehaviorHasBeenSet = false;
611 bool m_cacheBehaviorsHasBeenSet = false;
612 bool m_customErrorResponsesHasBeenSet = false;
613 bool m_commentHasBeenSet = false;
614 bool m_priceClassHasBeenSet = false;
615 bool m_enabledHasBeenSet = false;
616 bool m_viewerCertificateHasBeenSet = false;
617 bool m_restrictionsHasBeenSet = false;
618 bool m_webACLIdHasBeenSet = false;
619 bool m_httpVersionHasBeenSet = false;
620 bool m_isIPV6EnabledHasBeenSet = false;
621 bool m_aliasICPRecordalsHasBeenSet = false;
622 bool m_stagingHasBeenSet = false;
623 bool m_connectionModeHasBeenSet = false;
624 bool m_anycastIpListIdHasBeenSet = false;
625 bool m_viewerMtlsConfigHasBeenSet = false;
626 bool m_connectionFunctionAssociationHasBeenSet = false;
627};
628
629} // namespace Model
630} // namespace CloudFront
631} // 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)
const ConnectionFunctionAssociation & GetConnectionFunctionAssociation() const
DistributionSummary & WithComment(CommentT &&value)
DistributionSummary & WithOrigins(OriginsT &&value)
void SetViewerMtlsConfig(ViewerMtlsConfigT &&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)
void SetConnectionFunctionAssociation(ConnectionFunctionAssociationT &&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 ViewerMtlsConfig & GetViewerMtlsConfig() const
const DefaultCacheBehavior & GetDefaultCacheBehavior() const
DistributionSummary & WithConnectionMode(ConnectionMode value)
DistributionSummary & WithConnectionFunctionAssociation(ConnectionFunctionAssociationT &&value)
DistributionSummary & WithHttpVersion(HttpVersion value)
DistributionSummary & WithPriceClass(PriceClass value)
DistributionSummary & WithViewerMtlsConfig(ViewerMtlsConfigT &&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