AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/AliasICPRecordal.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Xml
29{
30 class XmlNode;
31} // namespace Xml
32} // namespace Utils
33namespace CloudFront
34{
35namespace Model
36{
37
45 {
46 public:
47 AWS_CLOUDFRONT_API DistributionSummary();
48 AWS_CLOUDFRONT_API DistributionSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
49 AWS_CLOUDFRONT_API DistributionSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
52
53
55
59 inline const Aws::String& GetId() const{ return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 inline DistributionSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
65 inline DistributionSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
66 inline DistributionSummary& WithId(const char* value) { SetId(value); return *this;}
68
70
75 inline const Aws::String& GetARN() const{ return m_aRN; }
76 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
77 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
78 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
79 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
80 inline DistributionSummary& WithARN(const Aws::String& value) { SetARN(value); return *this;}
81 inline DistributionSummary& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
82 inline DistributionSummary& WithARN(const char* value) { SetARN(value); return *this;}
84
86
91 inline const Aws::String& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
96 inline DistributionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
97 inline DistributionSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
98 inline DistributionSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
106 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
107 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
108 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
110 inline DistributionSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
112
114
118 inline const Aws::String& GetDomainName() const{ return m_domainName; }
119 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
120 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
121 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
122 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
123 inline DistributionSummary& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
124 inline DistributionSummary& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
125 inline DistributionSummary& WithDomainName(const char* value) { SetDomainName(value); return *this;}
127
129
133 inline const Aliases& GetAliases() const{ return m_aliases; }
134 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
135 inline void SetAliases(const Aliases& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
136 inline void SetAliases(Aliases&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); }
137 inline DistributionSummary& WithAliases(const Aliases& value) { SetAliases(value); return *this;}
138 inline DistributionSummary& WithAliases(Aliases&& value) { SetAliases(std::move(value)); return *this;}
140
142
146 inline const Origins& GetOrigins() const{ return m_origins; }
147 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
148 inline void SetOrigins(const Origins& value) { m_originsHasBeenSet = true; m_origins = value; }
149 inline void SetOrigins(Origins&& value) { m_originsHasBeenSet = true; m_origins = std::move(value); }
150 inline DistributionSummary& WithOrigins(const Origins& value) { SetOrigins(value); return *this;}
151 inline DistributionSummary& WithOrigins(Origins&& value) { SetOrigins(std::move(value)); return *this;}
153
155
159 inline const OriginGroups& GetOriginGroups() const{ return m_originGroups; }
160 inline bool OriginGroupsHasBeenSet() const { return m_originGroupsHasBeenSet; }
161 inline void SetOriginGroups(const OriginGroups& value) { m_originGroupsHasBeenSet = true; m_originGroups = value; }
162 inline void SetOriginGroups(OriginGroups&& value) { m_originGroupsHasBeenSet = true; m_originGroups = std::move(value); }
163 inline DistributionSummary& WithOriginGroups(const OriginGroups& value) { SetOriginGroups(value); return *this;}
164 inline DistributionSummary& WithOriginGroups(OriginGroups&& value) { SetOriginGroups(std::move(value)); return *this;}
166
168
174 inline const DefaultCacheBehavior& GetDefaultCacheBehavior() const{ return m_defaultCacheBehavior; }
175 inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
176 inline void SetDefaultCacheBehavior(const DefaultCacheBehavior& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
177 inline void SetDefaultCacheBehavior(DefaultCacheBehavior&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::move(value); }
181
183
187 inline const CacheBehaviors& GetCacheBehaviors() const{ return m_cacheBehaviors; }
188 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
189 inline void SetCacheBehaviors(const CacheBehaviors& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
190 inline void SetCacheBehaviors(CacheBehaviors&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::move(value); }
191 inline DistributionSummary& WithCacheBehaviors(const CacheBehaviors& value) { SetCacheBehaviors(value); return *this;}
192 inline DistributionSummary& WithCacheBehaviors(CacheBehaviors&& value) { SetCacheBehaviors(std::move(value)); return *this;}
194
196
200 inline const CustomErrorResponses& GetCustomErrorResponses() const{ return m_customErrorResponses; }
201 inline bool CustomErrorResponsesHasBeenSet() const { return m_customErrorResponsesHasBeenSet; }
202 inline void SetCustomErrorResponses(const CustomErrorResponses& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = value; }
203 inline void SetCustomErrorResponses(CustomErrorResponses&& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = std::move(value); }
207
209
212 inline const Aws::String& GetComment() const{ return m_comment; }
213 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
214 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
215 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
216 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
217 inline DistributionSummary& WithComment(const Aws::String& value) { SetComment(value); return *this;}
218 inline DistributionSummary& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
219 inline DistributionSummary& WithComment(const char* value) { SetComment(value); return *this;}
221
223
227 inline const PriceClass& GetPriceClass() const{ return m_priceClass; }
228 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
229 inline void SetPriceClass(const PriceClass& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
230 inline void SetPriceClass(PriceClass&& value) { m_priceClassHasBeenSet = true; m_priceClass = std::move(value); }
231 inline DistributionSummary& WithPriceClass(const PriceClass& value) { SetPriceClass(value); return *this;}
232 inline DistributionSummary& WithPriceClass(PriceClass&& value) { SetPriceClass(std::move(value)); return *this;}
234
236
239 inline bool GetEnabled() const{ return m_enabled; }
240 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
241 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
242 inline DistributionSummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
244
246
250 inline const ViewerCertificate& GetViewerCertificate() const{ return m_viewerCertificate; }
251 inline bool ViewerCertificateHasBeenSet() const { return m_viewerCertificateHasBeenSet; }
252 inline void SetViewerCertificate(const ViewerCertificate& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = value; }
253 inline void SetViewerCertificate(ViewerCertificate&& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = std::move(value); }
255 inline DistributionSummary& WithViewerCertificate(ViewerCertificate&& value) { SetViewerCertificate(std::move(value)); return *this;}
257
259
263 inline const Restrictions& GetRestrictions() const{ return m_restrictions; }
264 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
265 inline void SetRestrictions(const Restrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
266 inline void SetRestrictions(Restrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
267 inline DistributionSummary& WithRestrictions(const Restrictions& value) { SetRestrictions(value); return *this;}
268 inline DistributionSummary& WithRestrictions(Restrictions&& value) { SetRestrictions(std::move(value)); return *this;}
270
272
275 inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
276 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
277 inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
278 inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
279 inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
280 inline DistributionSummary& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
281 inline DistributionSummary& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
282 inline DistributionSummary& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
284
286
292 inline const HttpVersion& GetHttpVersion() const{ return m_httpVersion; }
293 inline bool HttpVersionHasBeenSet() const { return m_httpVersionHasBeenSet; }
294 inline void SetHttpVersion(const HttpVersion& value) { m_httpVersionHasBeenSet = true; m_httpVersion = value; }
295 inline void SetHttpVersion(HttpVersion&& value) { m_httpVersionHasBeenSet = true; m_httpVersion = std::move(value); }
296 inline DistributionSummary& WithHttpVersion(const HttpVersion& value) { SetHttpVersion(value); return *this;}
297 inline DistributionSummary& WithHttpVersion(HttpVersion&& value) { SetHttpVersion(std::move(value)); return *this;}
299
301
305 inline bool GetIsIPV6Enabled() const{ return m_isIPV6Enabled; }
306 inline bool IsIPV6EnabledHasBeenSet() const { return m_isIPV6EnabledHasBeenSet; }
307 inline void SetIsIPV6Enabled(bool value) { m_isIPV6EnabledHasBeenSet = true; m_isIPV6Enabled = value; }
308 inline DistributionSummary& WithIsIPV6Enabled(bool value) { SetIsIPV6Enabled(value); return *this;}
310
312
322 inline const Aws::Vector<AliasICPRecordal>& GetAliasICPRecordals() const{ return m_aliasICPRecordals; }
323 inline bool AliasICPRecordalsHasBeenSet() const { return m_aliasICPRecordalsHasBeenSet; }
324 inline void SetAliasICPRecordals(const Aws::Vector<AliasICPRecordal>& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = value; }
325 inline void SetAliasICPRecordals(Aws::Vector<AliasICPRecordal>&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = std::move(value); }
328 inline DistributionSummary& AddAliasICPRecordals(const AliasICPRecordal& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(value); return *this; }
329 inline DistributionSummary& AddAliasICPRecordals(AliasICPRecordal&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(std::move(value)); return *this; }
331
333
338 inline bool GetStaging() const{ return m_staging; }
339 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
340 inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; }
341 inline DistributionSummary& WithStaging(bool value) { SetStaging(value); return *this;}
343 private:
344
345 Aws::String m_id;
346 bool m_idHasBeenSet = false;
347
348 Aws::String m_aRN;
349 bool m_aRNHasBeenSet = false;
350
351 Aws::String m_status;
352 bool m_statusHasBeenSet = false;
353
354 Aws::Utils::DateTime m_lastModifiedTime;
355 bool m_lastModifiedTimeHasBeenSet = false;
356
357 Aws::String m_domainName;
358 bool m_domainNameHasBeenSet = false;
359
360 Aliases m_aliases;
361 bool m_aliasesHasBeenSet = false;
362
363 Origins m_origins;
364 bool m_originsHasBeenSet = false;
365
366 OriginGroups m_originGroups;
367 bool m_originGroupsHasBeenSet = false;
368
369 DefaultCacheBehavior m_defaultCacheBehavior;
370 bool m_defaultCacheBehaviorHasBeenSet = false;
371
372 CacheBehaviors m_cacheBehaviors;
373 bool m_cacheBehaviorsHasBeenSet = false;
374
375 CustomErrorResponses m_customErrorResponses;
376 bool m_customErrorResponsesHasBeenSet = false;
377
378 Aws::String m_comment;
379 bool m_commentHasBeenSet = false;
380
381 PriceClass m_priceClass;
382 bool m_priceClassHasBeenSet = false;
383
384 bool m_enabled;
385 bool m_enabledHasBeenSet = false;
386
387 ViewerCertificate m_viewerCertificate;
388 bool m_viewerCertificateHasBeenSet = false;
389
390 Restrictions m_restrictions;
391 bool m_restrictionsHasBeenSet = false;
392
393 Aws::String m_webACLId;
394 bool m_webACLIdHasBeenSet = false;
395
396 HttpVersion m_httpVersion;
397 bool m_httpVersionHasBeenSet = false;
398
399 bool m_isIPV6Enabled;
400 bool m_isIPV6EnabledHasBeenSet = false;
401
402 Aws::Vector<AliasICPRecordal> m_aliasICPRecordals;
403 bool m_aliasICPRecordalsHasBeenSet = false;
404
405 bool m_staging;
406 bool m_stagingHasBeenSet = false;
407 };
408
409} // namespace Model
410} // namespace CloudFront
411} // namespace Aws
DistributionSummary & WithPriceClass(const PriceClass &value)
void SetDefaultCacheBehavior(DefaultCacheBehavior &&value)
DistributionSummary & WithOrigins(const Origins &value)
DistributionSummary & WithIsIPV6Enabled(bool value)
DistributionSummary & WithRestrictions(Restrictions &&value)
DistributionSummary & WithStatus(Aws::String &&value)
const ViewerCertificate & GetViewerCertificate() const
DistributionSummary & WithOrigins(Origins &&value)
void SetCustomErrorResponses(const CustomErrorResponses &value)
AWS_CLOUDFRONT_API DistributionSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionSummary & AddAliasICPRecordals(AliasICPRecordal &&value)
void SetRestrictions(const Restrictions &value)
void SetAliasICPRecordals(Aws::Vector< AliasICPRecordal > &&value)
DistributionSummary & WithOriginGroups(OriginGroups &&value)
DistributionSummary & WithViewerCertificate(ViewerCertificate &&value)
DistributionSummary & WithViewerCertificate(const ViewerCertificate &value)
DistributionSummary & WithDomainName(Aws::String &&value)
DistributionSummary & WithComment(const char *value)
DistributionSummary & WithId(const Aws::String &value)
DistributionSummary & WithRestrictions(const Restrictions &value)
DistributionSummary & WithAliases(Aliases &&value)
DistributionSummary & WithDefaultCacheBehavior(const DefaultCacheBehavior &value)
const CacheBehaviors & GetCacheBehaviors() const
DistributionSummary & WithWebACLId(const Aws::String &value)
DistributionSummary & WithWebACLId(Aws::String &&value)
DistributionSummary & WithStatus(const Aws::String &value)
DistributionSummary & WithWebACLId(const char *value)
DistributionSummary & WithLastModifiedTime(const Aws::Utils::DateTime &value)
DistributionSummary & WithComment(const Aws::String &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
DistributionSummary & WithCustomErrorResponses(const CustomErrorResponses &value)
DistributionSummary & WithComment(Aws::String &&value)
DistributionSummary & WithDomainName(const Aws::String &value)
DistributionSummary & WithId(const char *value)
void SetViewerCertificate(const ViewerCertificate &value)
DistributionSummary & WithEnabled(bool value)
DistributionSummary & WithCustomErrorResponses(CustomErrorResponses &&value)
DistributionSummary & AddAliasICPRecordals(const AliasICPRecordal &value)
DistributionSummary & WithOriginGroups(const OriginGroups &value)
DistributionSummary & WithLastModifiedTime(Aws::Utils::DateTime &&value)
AWS_CLOUDFRONT_API DistributionSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOriginGroups(const OriginGroups &value)
void SetHttpVersion(const HttpVersion &value)
DistributionSummary & WithPriceClass(PriceClass &&value)
void SetDefaultCacheBehavior(const DefaultCacheBehavior &value)
const Aws::Vector< AliasICPRecordal > & GetAliasICPRecordals() const
DistributionSummary & WithDomainName(const char *value)
DistributionSummary & WithDefaultCacheBehavior(DefaultCacheBehavior &&value)
DistributionSummary & WithARN(const char *value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionSummary & WithAliasICPRecordals(Aws::Vector< AliasICPRecordal > &&value)
void SetAliasICPRecordals(const Aws::Vector< AliasICPRecordal > &value)
const DefaultCacheBehavior & GetDefaultCacheBehavior() const
DistributionSummary & WithHttpVersion(HttpVersion &&value)
DistributionSummary & WithARN(const Aws::String &value)
DistributionSummary & WithAliasICPRecordals(const Aws::Vector< AliasICPRecordal > &value)
DistributionSummary & WithARN(Aws::String &&value)
DistributionSummary & WithCacheBehaviors(const CacheBehaviors &value)
void SetCacheBehaviors(const CacheBehaviors &value)
DistributionSummary & WithStatus(const char *value)
const CustomErrorResponses & GetCustomErrorResponses() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
DistributionSummary & WithAliases(const Aliases &value)
DistributionSummary & WithId(Aws::String &&value)
DistributionSummary & WithStaging(bool value)
DistributionSummary & WithHttpVersion(const HttpVersion &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetViewerCertificate(ViewerCertificate &&value)
void SetCustomErrorResponses(CustomErrorResponses &&value)
DistributionSummary & WithCacheBehaviors(CacheBehaviors &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector