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>
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>
81 template<
typename AliasesT = Aliases>
82 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet =
true; m_aliases = std::forward<AliasesT>(value); }
83 template<
typename AliasesT = Aliases>
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>
125 template<
typename OriginsT = Origins>
126 void SetOrigins(OriginsT&& value) { m_originsHasBeenSet =
true; m_origins = std::forward<OriginsT>(value); }
127 template<
typename OriginsT = Origins>
138 template<
typename OriginGroupsT = OriginGroups>
139 void SetOriginGroups(OriginGroupsT&& value) { m_originGroupsHasBeenSet =
true; m_originGroups = std::forward<OriginGroupsT>(value); }
140 template<
typename OriginGroupsT = OriginGroups>
153 template<
typename DefaultCacheBehaviorT = DefaultCacheBehavior>
154 void SetDefaultCacheBehavior(DefaultCacheBehaviorT&& value) { m_defaultCacheBehaviorHasBeenSet =
true; m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value); }
155 template<
typename DefaultCacheBehaviorT = DefaultCacheBehavior>
166 template<
typename CacheBehaviorsT = CacheBehaviors>
167 void SetCacheBehaviors(CacheBehaviorsT&& value) { m_cacheBehaviorsHasBeenSet =
true; m_cacheBehaviors = std::forward<CacheBehaviorsT>(value); }
168 template<
typename CacheBehaviorsT = CacheBehaviors>
184 template<
typename CustomErrorResponsesT = CustomErrorResponses>
185 void SetCustomErrorResponses(CustomErrorResponsesT&& value) { m_customErrorResponsesHasBeenSet =
true; m_customErrorResponses = std::forward<CustomErrorResponsesT>(value); }
186 template<
typename CustomErrorResponsesT = CustomErrorResponses>
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>
212 template<
typename LoggingT = LoggingConfig>
213 void SetLogging(LoggingT&& value) { m_loggingHasBeenSet =
true; m_logging = std::forward<LoggingT>(value); }
214 template<
typename LoggingT = LoggingConfig>
252 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
263 template<
typename ViewerCertificateT = ViewerCertificate>
264 void SetViewerCertificate(ViewerCertificateT&& value) { m_viewerCertificateHasBeenSet =
true; m_viewerCertificate = std::forward<ViewerCertificateT>(value); }
265 template<
typename ViewerCertificateT = ViewerCertificate>
276 template<
typename RestrictionsT = Restrictions>
277 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet =
true; m_restrictions = std::forward<RestrictionsT>(value); }
278 template<
typename RestrictionsT = Restrictions>
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>
368 inline void SetIsIPV6Enabled(
bool value) { m_isIPV6EnabledHasBeenSet =
true; m_isIPV6Enabled = value; }
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>
403 inline void SetStaging(
bool value) { m_stagingHasBeenSet =
true; m_staging = value; }
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>
433 template<
typename TenantConfigT = TenantConfig>
434 void SetTenantConfig(TenantConfigT&& value) { m_tenantConfigHasBeenSet =
true; m_tenantConfig = std::forward<TenantConfigT>(value); }
435 template<
typename TenantConfigT = TenantConfig>
453 bool m_callerReferenceHasBeenSet =
false;
456 bool m_aliasesHasBeenSet =
false;
459 bool m_defaultRootObjectHasBeenSet =
false;
462 bool m_originsHasBeenSet =
false;
465 bool m_originGroupsHasBeenSet =
false;
468 bool m_defaultCacheBehaviorHasBeenSet =
false;
471 bool m_cacheBehaviorsHasBeenSet =
false;
474 bool m_customErrorResponsesHasBeenSet =
false;
477 bool m_commentHasBeenSet =
false;
480 bool m_loggingHasBeenSet =
false;
483 bool m_priceClassHasBeenSet =
false;
485 bool m_enabled{
false};
486 bool m_enabledHasBeenSet =
false;
488 ViewerCertificate m_viewerCertificate;
489 bool m_viewerCertificateHasBeenSet =
false;
491 Restrictions m_restrictions;
492 bool m_restrictionsHasBeenSet =
false;
495 bool m_webACLIdHasBeenSet =
false;
498 bool m_httpVersionHasBeenSet =
false;
500 bool m_isIPV6Enabled{
false};
501 bool m_isIPV6EnabledHasBeenSet =
false;
504 bool m_continuousDeploymentPolicyIdHasBeenSet =
false;
506 bool m_staging{
false};
507 bool m_stagingHasBeenSet =
false;
510 bool m_anycastIpListIdHasBeenSet =
false;
512 TenantConfig m_tenantConfig;
513 bool m_tenantConfigHasBeenSet =
false;
516 bool m_connectionModeHasBeenSet =
false;
void SetOrigins(OriginsT &&value)
void SetDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
bool TenantConfigHasBeenSet() const
const Aws::String & GetComment() const
const Restrictions & GetRestrictions() const
bool ViewerCertificateHasBeenSet() const
const Origins & GetOrigins() const
bool DefaultRootObjectHasBeenSet() const
HttpVersion GetHttpVersion() const
bool OriginGroupsHasBeenSet() const
const Aws::String & GetDefaultRootObject() const
bool GetIsIPV6Enabled() const
void SetWebACLId(WebACLIdT &&value)
bool HttpVersionHasBeenSet() const
const Aliases & GetAliases() const
void SetCallerReference(CallerReferenceT &&value)
DistributionConfig & WithCustomErrorResponses(CustomErrorResponsesT &&value)
bool CacheBehaviorsHasBeenSet() const
void SetTenantConfig(TenantConfigT &&value)
void SetStaging(bool value)
void SetLogging(LoggingT &&value)
void SetConnectionMode(ConnectionMode value)
DistributionConfig & WithStaging(bool value)
PriceClass GetPriceClass() const
bool StagingHasBeenSet() const
DistributionConfig & WithHttpVersion(HttpVersion value)
void SetIsIPV6Enabled(bool value)
bool DefaultCacheBehaviorHasBeenSet() const
const OriginGroups & GetOriginGroups() const
void SetViewerCertificate(ViewerCertificateT &&value)
DistributionConfig & WithIsIPV6Enabled(bool value)
bool OriginsHasBeenSet() const
AWS_CLOUDFRONT_API DistributionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AliasesHasBeenSet() const
const ViewerCertificate & GetViewerCertificate() const
DistributionConfig & WithDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
DistributionConfig & WithConnectionMode(ConnectionMode value)
bool IsIPV6EnabledHasBeenSet() const
AWS_CLOUDFRONT_API DistributionConfig()=default
void SetCustomErrorResponses(CustomErrorResponsesT &&value)
DistributionConfig & WithCallerReference(CallerReferenceT &&value)
bool RestrictionsHasBeenSet() const
const LoggingConfig & GetLogging() const
bool WebACLIdHasBeenSet() const
void SetOriginGroups(OriginGroupsT &&value)
DistributionConfig & WithAliases(AliasesT &&value)
void SetHttpVersion(HttpVersion value)
bool CustomErrorResponsesHasBeenSet() const
DistributionConfig & WithRestrictions(RestrictionsT &&value)
void SetRestrictions(RestrictionsT &&value)
void SetCacheBehaviors(CacheBehaviorsT &&value)
bool CommentHasBeenSet() const
const CustomErrorResponses & GetCustomErrorResponses() const
DistributionConfig & WithComment(CommentT &&value)
bool EnabledHasBeenSet() const
bool LoggingHasBeenSet() const
void SetContinuousDeploymentPolicyId(ContinuousDeploymentPolicyIdT &&value)
void SetPriceClass(PriceClass 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)
bool CallerReferenceHasBeenSet() const
bool AnycastIpListIdHasBeenSet() const
const Aws::String & GetWebACLId() const
const CacheBehaviors & GetCacheBehaviors() const
DistributionConfig & WithLogging(LoggingT &&value)
DistributionConfig & WithOrigins(OriginsT &&value)
const Aws::String & GetContinuousDeploymentPolicyId() const
const TenantConfig & GetTenantConfig() const
const Aws::String & GetCallerReference() const
bool PriceClassHasBeenSet() const
void SetAliases(AliasesT &&value)
const Aws::String & GetAnycastIpListId() const
ConnectionMode GetConnectionMode() const
DistributionConfig & WithCacheBehaviors(CacheBehaviorsT &&value)
void SetEnabled(bool value)
void SetAnycastIpListId(AnycastIpListIdT &&value)
bool ConnectionModeHasBeenSet() const
DistributionConfig & WithTenantConfig(TenantConfigT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionConfig & WithOriginGroups(OriginGroupsT &&value)
void SetDefaultRootObject(DefaultRootObjectT &&value)
void SetComment(CommentT &&value)
bool ContinuousDeploymentPolicyIdHasBeenSet() const
DistributionConfig & WithAnycastIpListId(AnycastIpListIdT &&value)
DistributionConfig & WithPriceClass(PriceClass value)
DistributionConfig & WithDefaultRootObject(DefaultRootObjectT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String