AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DistributionConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/Aliases.h>
10#include <aws/cloudfront/model/Origins.h>
11#include <aws/cloudfront/model/OriginGroups.h>
12#include <aws/cloudfront/model/DefaultCacheBehavior.h>
13#include <aws/cloudfront/model/CacheBehaviors.h>
14#include <aws/cloudfront/model/CustomErrorResponses.h>
15#include <aws/cloudfront/model/LoggingConfig.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/cloudfront/model/TenantConfig.h>
21#include <aws/cloudfront/model/ConnectionMode.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
44 {
45 public:
46 AWS_CLOUDFRONT_API DistributionConfig() = default;
47 AWS_CLOUDFRONT_API DistributionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_CLOUDFRONT_API DistributionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
51
52
54
62 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
63 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
64 template<typename CallerReferenceT = Aws::String>
65 void SetCallerReference(CallerReferenceT&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::forward<CallerReferenceT>(value); }
66 template<typename CallerReferenceT = Aws::String>
67 DistributionConfig& WithCallerReference(CallerReferenceT&& value) { SetCallerReference(std::forward<CallerReferenceT>(value)); return *this;}
69
71
79 inline const Aliases& GetAliases() const { return m_aliases; }
80 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
81 template<typename AliasesT = Aliases>
82 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases = std::forward<AliasesT>(value); }
83 template<typename AliasesT = Aliases>
84 DistributionConfig& WithAliases(AliasesT&& value) { SetAliases(std::forward<AliasesT>(value)); return *this;}
86
88
110 inline const Aws::String& GetDefaultRootObject() const { return m_defaultRootObject; }
111 inline bool DefaultRootObjectHasBeenSet() const { return m_defaultRootObjectHasBeenSet; }
112 template<typename DefaultRootObjectT = Aws::String>
113 void SetDefaultRootObject(DefaultRootObjectT&& value) { m_defaultRootObjectHasBeenSet = true; m_defaultRootObject = std::forward<DefaultRootObjectT>(value); }
114 template<typename DefaultRootObjectT = Aws::String>
115 DistributionConfig& WithDefaultRootObject(DefaultRootObjectT&& value) { SetDefaultRootObject(std::forward<DefaultRootObjectT>(value)); return *this;}
117
119
123 inline const Origins& GetOrigins() const { return m_origins; }
124 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
125 template<typename OriginsT = Origins>
126 void SetOrigins(OriginsT&& value) { m_originsHasBeenSet = true; m_origins = std::forward<OriginsT>(value); }
127 template<typename OriginsT = Origins>
128 DistributionConfig& WithOrigins(OriginsT&& value) { SetOrigins(std::forward<OriginsT>(value)); return *this;}
130
132
136 inline const OriginGroups& GetOriginGroups() const { return m_originGroups; }
137 inline bool OriginGroupsHasBeenSet() const { return m_originGroupsHasBeenSet; }
138 template<typename OriginGroupsT = OriginGroups>
139 void SetOriginGroups(OriginGroupsT&& value) { m_originGroupsHasBeenSet = true; m_originGroups = std::forward<OriginGroupsT>(value); }
140 template<typename OriginGroupsT = OriginGroups>
141 DistributionConfig& WithOriginGroups(OriginGroupsT&& value) { SetOriginGroups(std::forward<OriginGroupsT>(value)); return *this;}
143
145
151 inline const DefaultCacheBehavior& GetDefaultCacheBehavior() const { return m_defaultCacheBehavior; }
152 inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
153 template<typename DefaultCacheBehaviorT = DefaultCacheBehavior>
154 void SetDefaultCacheBehavior(DefaultCacheBehaviorT&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value); }
155 template<typename DefaultCacheBehaviorT = DefaultCacheBehavior>
156 DistributionConfig& WithDefaultCacheBehavior(DefaultCacheBehaviorT&& value) { SetDefaultCacheBehavior(std::forward<DefaultCacheBehaviorT>(value)); return *this;}
158
160
164 inline const CacheBehaviors& GetCacheBehaviors() const { return m_cacheBehaviors; }
165 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
166 template<typename CacheBehaviorsT = CacheBehaviors>
167 void SetCacheBehaviors(CacheBehaviorsT&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::forward<CacheBehaviorsT>(value); }
168 template<typename CacheBehaviorsT = CacheBehaviors>
169 DistributionConfig& WithCacheBehaviors(CacheBehaviorsT&& value) { SetCacheBehaviors(std::forward<CacheBehaviorsT>(value)); return *this;}
171
173
182 inline const CustomErrorResponses& GetCustomErrorResponses() const { return m_customErrorResponses; }
183 inline bool CustomErrorResponsesHasBeenSet() const { return m_customErrorResponsesHasBeenSet; }
184 template<typename CustomErrorResponsesT = CustomErrorResponses>
185 void SetCustomErrorResponses(CustomErrorResponsesT&& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = std::forward<CustomErrorResponsesT>(value); }
186 template<typename CustomErrorResponsesT = CustomErrorResponses>
187 DistributionConfig& WithCustomErrorResponses(CustomErrorResponsesT&& value) { SetCustomErrorResponses(std::forward<CustomErrorResponsesT>(value)); return *this;}
189
191
195 inline const Aws::String& GetComment() const { return m_comment; }
196 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
197 template<typename CommentT = Aws::String>
198 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
199 template<typename CommentT = Aws::String>
200 DistributionConfig& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
202
204
210 inline const LoggingConfig& GetLogging() const { return m_logging; }
211 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
212 template<typename LoggingT = LoggingConfig>
213 void SetLogging(LoggingT&& value) { m_loggingHasBeenSet = true; m_logging = std::forward<LoggingT>(value); }
214 template<typename LoggingT = LoggingConfig>
215 DistributionConfig& WithLogging(LoggingT&& value) { SetLogging(std::forward<LoggingT>(value)); return *this;}
217
219
240 inline PriceClass GetPriceClass() const { return m_priceClass; }
241 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
242 inline void SetPriceClass(PriceClass value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
243 inline DistributionConfig& WithPriceClass(PriceClass value) { SetPriceClass(value); return *this;}
245
247
250 inline bool GetEnabled() const { return m_enabled; }
251 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
252 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
253 inline DistributionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
255
257
261 inline const ViewerCertificate& GetViewerCertificate() const { return m_viewerCertificate; }
262 inline bool ViewerCertificateHasBeenSet() const { return m_viewerCertificateHasBeenSet; }
263 template<typename ViewerCertificateT = ViewerCertificate>
264 void SetViewerCertificate(ViewerCertificateT&& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = std::forward<ViewerCertificateT>(value); }
265 template<typename ViewerCertificateT = ViewerCertificate>
266 DistributionConfig& WithViewerCertificate(ViewerCertificateT&& value) { SetViewerCertificate(std::forward<ViewerCertificateT>(value)); return *this;}
268
270
274 inline const Restrictions& GetRestrictions() const { return m_restrictions; }
275 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
276 template<typename RestrictionsT = Restrictions>
277 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
278 template<typename RestrictionsT = Restrictions>
279 DistributionConfig& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
281
283
301 inline const Aws::String& GetWebACLId() const { return m_webACLId; }
302 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
303 template<typename WebACLIdT = Aws::String>
304 void SetWebACLId(WebACLIdT&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::forward<WebACLIdT>(value); }
305 template<typename WebACLIdT = Aws::String>
306 DistributionConfig& WithWebACLId(WebACLIdT&& value) { SetWebACLId(std::forward<WebACLIdT>(value)); return *this;}
308
310
326 inline HttpVersion GetHttpVersion() const { return m_httpVersion; }
327 inline bool HttpVersionHasBeenSet() const { return m_httpVersionHasBeenSet; }
328 inline void SetHttpVersion(HttpVersion value) { m_httpVersionHasBeenSet = true; m_httpVersion = value; }
329 inline DistributionConfig& WithHttpVersion(HttpVersion value) { SetHttpVersion(value); return *this;}
331
333
366 inline bool GetIsIPV6Enabled() const { return m_isIPV6Enabled; }
367 inline bool IsIPV6EnabledHasBeenSet() const { return m_isIPV6EnabledHasBeenSet; }
368 inline void SetIsIPV6Enabled(bool value) { m_isIPV6EnabledHasBeenSet = true; m_isIPV6Enabled = value; }
369 inline DistributionConfig& WithIsIPV6Enabled(bool value) { SetIsIPV6Enabled(value); return *this;}
371
373
382 inline const Aws::String& GetContinuousDeploymentPolicyId() const { return m_continuousDeploymentPolicyId; }
383 inline bool ContinuousDeploymentPolicyIdHasBeenSet() const { return m_continuousDeploymentPolicyIdHasBeenSet; }
384 template<typename ContinuousDeploymentPolicyIdT = Aws::String>
385 void SetContinuousDeploymentPolicyId(ContinuousDeploymentPolicyIdT&& value) { m_continuousDeploymentPolicyIdHasBeenSet = true; m_continuousDeploymentPolicyId = std::forward<ContinuousDeploymentPolicyIdT>(value); }
386 template<typename ContinuousDeploymentPolicyIdT = Aws::String>
387 DistributionConfig& WithContinuousDeploymentPolicyId(ContinuousDeploymentPolicyIdT&& value) { SetContinuousDeploymentPolicyId(std::forward<ContinuousDeploymentPolicyIdT>(value)); return *this;}
389
391
401 inline bool GetStaging() const { return m_staging; }
402 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
403 inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; }
404 inline DistributionConfig& WithStaging(bool value) { SetStaging(value); return *this;}
406
408
415 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
416 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
417 template<typename AnycastIpListIdT = Aws::String>
418 void SetAnycastIpListId(AnycastIpListIdT&& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = std::forward<AnycastIpListIdT>(value); }
419 template<typename AnycastIpListIdT = Aws::String>
420 DistributionConfig& WithAnycastIpListId(AnycastIpListIdT&& value) { SetAnycastIpListId(std::forward<AnycastIpListIdT>(value)); return *this;}
422
424
431 inline const TenantConfig& GetTenantConfig() const { return m_tenantConfig; }
432 inline bool TenantConfigHasBeenSet() const { return m_tenantConfigHasBeenSet; }
433 template<typename TenantConfigT = TenantConfig>
434 void SetTenantConfig(TenantConfigT&& value) { m_tenantConfigHasBeenSet = true; m_tenantConfig = std::forward<TenantConfigT>(value); }
435 template<typename TenantConfigT = TenantConfig>
436 DistributionConfig& WithTenantConfig(TenantConfigT&& value) { SetTenantConfig(std::forward<TenantConfigT>(value)); return *this;}
438
440
445 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
446 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
447 inline void SetConnectionMode(ConnectionMode value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; }
450 private:
451
452 Aws::String m_callerReference;
453 bool m_callerReferenceHasBeenSet = false;
454
455 Aliases m_aliases;
456 bool m_aliasesHasBeenSet = false;
457
458 Aws::String m_defaultRootObject;
459 bool m_defaultRootObjectHasBeenSet = false;
460
461 Origins m_origins;
462 bool m_originsHasBeenSet = false;
463
464 OriginGroups m_originGroups;
465 bool m_originGroupsHasBeenSet = false;
466
467 DefaultCacheBehavior m_defaultCacheBehavior;
468 bool m_defaultCacheBehaviorHasBeenSet = false;
469
470 CacheBehaviors m_cacheBehaviors;
471 bool m_cacheBehaviorsHasBeenSet = false;
472
473 CustomErrorResponses m_customErrorResponses;
474 bool m_customErrorResponsesHasBeenSet = false;
475
476 Aws::String m_comment;
477 bool m_commentHasBeenSet = false;
478
479 LoggingConfig m_logging;
480 bool m_loggingHasBeenSet = false;
481
482 PriceClass m_priceClass{PriceClass::NOT_SET};
483 bool m_priceClassHasBeenSet = false;
484
485 bool m_enabled{false};
486 bool m_enabledHasBeenSet = false;
487
488 ViewerCertificate m_viewerCertificate;
489 bool m_viewerCertificateHasBeenSet = false;
490
491 Restrictions m_restrictions;
492 bool m_restrictionsHasBeenSet = false;
493
494 Aws::String m_webACLId;
495 bool m_webACLIdHasBeenSet = false;
496
497 HttpVersion m_httpVersion{HttpVersion::NOT_SET};
498 bool m_httpVersionHasBeenSet = false;
499
500 bool m_isIPV6Enabled{false};
501 bool m_isIPV6EnabledHasBeenSet = false;
502
503 Aws::String m_continuousDeploymentPolicyId;
504 bool m_continuousDeploymentPolicyIdHasBeenSet = false;
505
506 bool m_staging{false};
507 bool m_stagingHasBeenSet = false;
508
509 Aws::String m_anycastIpListId;
510 bool m_anycastIpListIdHasBeenSet = false;
511
512 TenantConfig m_tenantConfig;
513 bool m_tenantConfigHasBeenSet = false;
514
515 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
516 bool m_connectionModeHasBeenSet = false;
517 };
518
519} // namespace Model
520} // namespace CloudFront
521} // namespace Aws
void SetDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
const Aws::String & GetDefaultRootObject() const
void SetCallerReference(CallerReferenceT &&value)
DistributionConfig & WithCustomErrorResponses(CustomErrorResponsesT &&value)
DistributionConfig & WithStaging(bool value)
DistributionConfig & WithHttpVersion(HttpVersion value)
void SetViewerCertificate(ViewerCertificateT &&value)
DistributionConfig & WithIsIPV6Enabled(bool value)
AWS_CLOUDFRONT_API DistributionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ViewerCertificate & GetViewerCertificate() const
DistributionConfig & WithDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
DistributionConfig & WithConnectionMode(ConnectionMode value)
AWS_CLOUDFRONT_API DistributionConfig()=default
void SetCustomErrorResponses(CustomErrorResponsesT &&value)
DistributionConfig & WithCallerReference(CallerReferenceT &&value)
DistributionConfig & WithAliases(AliasesT &&value)
DistributionConfig & WithRestrictions(RestrictionsT &&value)
void SetCacheBehaviors(CacheBehaviorsT &&value)
const CustomErrorResponses & GetCustomErrorResponses() const
DistributionConfig & WithComment(CommentT &&value)
void SetContinuousDeploymentPolicyId(ContinuousDeploymentPolicyIdT &&value)
DistributionConfig & WithWebACLId(WebACLIdT &&value)
AWS_CLOUDFRONT_API DistributionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionConfig & WithContinuousDeploymentPolicyId(ContinuousDeploymentPolicyIdT &&value)
DistributionConfig & WithEnabled(bool value)
const DefaultCacheBehavior & GetDefaultCacheBehavior() const
DistributionConfig & WithViewerCertificate(ViewerCertificateT &&value)
const CacheBehaviors & GetCacheBehaviors() const
DistributionConfig & WithLogging(LoggingT &&value)
DistributionConfig & WithOrigins(OriginsT &&value)
const Aws::String & GetContinuousDeploymentPolicyId() const
const Aws::String & GetCallerReference() const
DistributionConfig & WithCacheBehaviors(CacheBehaviorsT &&value)
void SetAnycastIpListId(AnycastIpListIdT &&value)
DistributionConfig & WithTenantConfig(TenantConfigT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionConfig & WithOriginGroups(OriginGroupsT &&value)
void SetDefaultRootObject(DefaultRootObjectT &&value)
DistributionConfig & WithAnycastIpListId(AnycastIpListIdT &&value)
DistributionConfig & WithPriceClass(PriceClass value)
DistributionConfig & WithDefaultRootObject(DefaultRootObjectT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String