AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Xml
27{
28 class XmlNode;
29} // namespace Xml
30} // namespace Utils
31namespace CloudFront
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_CLOUDFRONT_API DistributionConfig();
45 AWS_CLOUDFRONT_API DistributionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
46 AWS_CLOUDFRONT_API DistributionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49
50
52
60 inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
61 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
62 inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
63 inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); }
64 inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
65 inline DistributionConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
66 inline DistributionConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;}
67 inline DistributionConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
69
71
75 inline const Aliases& GetAliases() const{ return m_aliases; }
76 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
77 inline void SetAliases(const Aliases& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
78 inline void SetAliases(Aliases&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); }
79 inline DistributionConfig& WithAliases(const Aliases& value) { SetAliases(value); return *this;}
80 inline DistributionConfig& WithAliases(Aliases&& value) { SetAliases(std::move(value)); return *this;}
82
84
102 inline const Aws::String& GetDefaultRootObject() const{ return m_defaultRootObject; }
103 inline bool DefaultRootObjectHasBeenSet() const { return m_defaultRootObjectHasBeenSet; }
104 inline void SetDefaultRootObject(const Aws::String& value) { m_defaultRootObjectHasBeenSet = true; m_defaultRootObject = value; }
105 inline void SetDefaultRootObject(Aws::String&& value) { m_defaultRootObjectHasBeenSet = true; m_defaultRootObject = std::move(value); }
106 inline void SetDefaultRootObject(const char* value) { m_defaultRootObjectHasBeenSet = true; m_defaultRootObject.assign(value); }
107 inline DistributionConfig& WithDefaultRootObject(const Aws::String& value) { SetDefaultRootObject(value); return *this;}
108 inline DistributionConfig& WithDefaultRootObject(Aws::String&& value) { SetDefaultRootObject(std::move(value)); return *this;}
109 inline DistributionConfig& WithDefaultRootObject(const char* value) { SetDefaultRootObject(value); return *this;}
111
113
117 inline const Origins& GetOrigins() const{ return m_origins; }
118 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
119 inline void SetOrigins(const Origins& value) { m_originsHasBeenSet = true; m_origins = value; }
120 inline void SetOrigins(Origins&& value) { m_originsHasBeenSet = true; m_origins = std::move(value); }
121 inline DistributionConfig& WithOrigins(const Origins& value) { SetOrigins(value); return *this;}
122 inline DistributionConfig& WithOrigins(Origins&& value) { SetOrigins(std::move(value)); return *this;}
124
126
130 inline const OriginGroups& GetOriginGroups() const{ return m_originGroups; }
131 inline bool OriginGroupsHasBeenSet() const { return m_originGroupsHasBeenSet; }
132 inline void SetOriginGroups(const OriginGroups& value) { m_originGroupsHasBeenSet = true; m_originGroups = value; }
133 inline void SetOriginGroups(OriginGroups&& value) { m_originGroupsHasBeenSet = true; m_originGroups = std::move(value); }
134 inline DistributionConfig& WithOriginGroups(const OriginGroups& value) { SetOriginGroups(value); return *this;}
135 inline DistributionConfig& WithOriginGroups(OriginGroups&& value) { SetOriginGroups(std::move(value)); return *this;}
137
139
145 inline const DefaultCacheBehavior& GetDefaultCacheBehavior() const{ return m_defaultCacheBehavior; }
146 inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
147 inline void SetDefaultCacheBehavior(const DefaultCacheBehavior& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
148 inline void SetDefaultCacheBehavior(DefaultCacheBehavior&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::move(value); }
152
154
158 inline const CacheBehaviors& GetCacheBehaviors() const{ return m_cacheBehaviors; }
159 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
160 inline void SetCacheBehaviors(const CacheBehaviors& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
161 inline void SetCacheBehaviors(CacheBehaviors&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::move(value); }
162 inline DistributionConfig& WithCacheBehaviors(const CacheBehaviors& value) { SetCacheBehaviors(value); return *this;}
163 inline DistributionConfig& WithCacheBehaviors(CacheBehaviors&& value) { SetCacheBehaviors(std::move(value)); return *this;}
165
167
176 inline const CustomErrorResponses& GetCustomErrorResponses() const{ return m_customErrorResponses; }
177 inline bool CustomErrorResponsesHasBeenSet() const { return m_customErrorResponsesHasBeenSet; }
178 inline void SetCustomErrorResponses(const CustomErrorResponses& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = value; }
179 inline void SetCustomErrorResponses(CustomErrorResponses&& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = std::move(value); }
183
185
189 inline const Aws::String& GetComment() const{ return m_comment; }
190 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
191 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
192 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
193 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
194 inline DistributionConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
195 inline DistributionConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
196 inline DistributionConfig& WithComment(const char* value) { SetComment(value); return *this;}
198
200
206 inline const LoggingConfig& GetLogging() const{ return m_logging; }
207 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
208 inline void SetLogging(const LoggingConfig& value) { m_loggingHasBeenSet = true; m_logging = value; }
209 inline void SetLogging(LoggingConfig&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); }
210 inline DistributionConfig& WithLogging(const LoggingConfig& value) { SetLogging(value); return *this;}
211 inline DistributionConfig& WithLogging(LoggingConfig&& value) { SetLogging(std::move(value)); return *this;}
213
215
231 inline const PriceClass& GetPriceClass() const{ return m_priceClass; }
232 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
233 inline void SetPriceClass(const PriceClass& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
234 inline void SetPriceClass(PriceClass&& value) { m_priceClassHasBeenSet = true; m_priceClass = std::move(value); }
235 inline DistributionConfig& WithPriceClass(const PriceClass& value) { SetPriceClass(value); return *this;}
236 inline DistributionConfig& WithPriceClass(PriceClass&& value) { SetPriceClass(std::move(value)); return *this;}
238
240
243 inline bool GetEnabled() const{ return m_enabled; }
244 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
245 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
246 inline DistributionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
248
250
254 inline const ViewerCertificate& GetViewerCertificate() const{ return m_viewerCertificate; }
255 inline bool ViewerCertificateHasBeenSet() const { return m_viewerCertificateHasBeenSet; }
256 inline void SetViewerCertificate(const ViewerCertificate& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = value; }
257 inline void SetViewerCertificate(ViewerCertificate&& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = std::move(value); }
259 inline DistributionConfig& WithViewerCertificate(ViewerCertificate&& value) { SetViewerCertificate(std::move(value)); return *this;}
261
263
267 inline const Restrictions& GetRestrictions() const{ return m_restrictions; }
268 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
269 inline void SetRestrictions(const Restrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
270 inline void SetRestrictions(Restrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
271 inline DistributionConfig& WithRestrictions(const Restrictions& value) { SetRestrictions(value); return *this;}
272 inline DistributionConfig& WithRestrictions(Restrictions&& value) { SetRestrictions(std::move(value)); return *this;}
274
276
293 inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
294 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
295 inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
296 inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
297 inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
298 inline DistributionConfig& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
299 inline DistributionConfig& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
300 inline DistributionConfig& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
302
304
320 inline const HttpVersion& GetHttpVersion() const{ return m_httpVersion; }
321 inline bool HttpVersionHasBeenSet() const { return m_httpVersionHasBeenSet; }
322 inline void SetHttpVersion(const HttpVersion& value) { m_httpVersionHasBeenSet = true; m_httpVersion = value; }
323 inline void SetHttpVersion(HttpVersion&& value) { m_httpVersionHasBeenSet = true; m_httpVersion = std::move(value); }
324 inline DistributionConfig& WithHttpVersion(const HttpVersion& value) { SetHttpVersion(value); return *this;}
325 inline DistributionConfig& WithHttpVersion(HttpVersion&& value) { SetHttpVersion(std::move(value)); return *this;}
327
329
359 inline bool GetIsIPV6Enabled() const{ return m_isIPV6Enabled; }
360 inline bool IsIPV6EnabledHasBeenSet() const { return m_isIPV6EnabledHasBeenSet; }
361 inline void SetIsIPV6Enabled(bool value) { m_isIPV6EnabledHasBeenSet = true; m_isIPV6Enabled = value; }
362 inline DistributionConfig& WithIsIPV6Enabled(bool value) { SetIsIPV6Enabled(value); return *this;}
364
366
370 inline const Aws::String& GetContinuousDeploymentPolicyId() const{ return m_continuousDeploymentPolicyId; }
371 inline bool ContinuousDeploymentPolicyIdHasBeenSet() const { return m_continuousDeploymentPolicyIdHasBeenSet; }
372 inline void SetContinuousDeploymentPolicyId(const Aws::String& value) { m_continuousDeploymentPolicyIdHasBeenSet = true; m_continuousDeploymentPolicyId = value; }
373 inline void SetContinuousDeploymentPolicyId(Aws::String&& value) { m_continuousDeploymentPolicyIdHasBeenSet = true; m_continuousDeploymentPolicyId = std::move(value); }
374 inline void SetContinuousDeploymentPolicyId(const char* value) { m_continuousDeploymentPolicyIdHasBeenSet = true; m_continuousDeploymentPolicyId.assign(value); }
379
381
386 inline bool GetStaging() const{ return m_staging; }
387 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
388 inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; }
389 inline DistributionConfig& WithStaging(bool value) { SetStaging(value); return *this;}
391 private:
392
393 Aws::String m_callerReference;
394 bool m_callerReferenceHasBeenSet = false;
395
396 Aliases m_aliases;
397 bool m_aliasesHasBeenSet = false;
398
399 Aws::String m_defaultRootObject;
400 bool m_defaultRootObjectHasBeenSet = false;
401
402 Origins m_origins;
403 bool m_originsHasBeenSet = false;
404
405 OriginGroups m_originGroups;
406 bool m_originGroupsHasBeenSet = false;
407
408 DefaultCacheBehavior m_defaultCacheBehavior;
409 bool m_defaultCacheBehaviorHasBeenSet = false;
410
411 CacheBehaviors m_cacheBehaviors;
412 bool m_cacheBehaviorsHasBeenSet = false;
413
414 CustomErrorResponses m_customErrorResponses;
415 bool m_customErrorResponsesHasBeenSet = false;
416
417 Aws::String m_comment;
418 bool m_commentHasBeenSet = false;
419
420 LoggingConfig m_logging;
421 bool m_loggingHasBeenSet = false;
422
423 PriceClass m_priceClass;
424 bool m_priceClassHasBeenSet = false;
425
426 bool m_enabled;
427 bool m_enabledHasBeenSet = false;
428
429 ViewerCertificate m_viewerCertificate;
430 bool m_viewerCertificateHasBeenSet = false;
431
432 Restrictions m_restrictions;
433 bool m_restrictionsHasBeenSet = false;
434
435 Aws::String m_webACLId;
436 bool m_webACLIdHasBeenSet = false;
437
438 HttpVersion m_httpVersion;
439 bool m_httpVersionHasBeenSet = false;
440
441 bool m_isIPV6Enabled;
442 bool m_isIPV6EnabledHasBeenSet = false;
443
444 Aws::String m_continuousDeploymentPolicyId;
445 bool m_continuousDeploymentPolicyIdHasBeenSet = false;
446
447 bool m_staging;
448 bool m_stagingHasBeenSet = false;
449 };
450
451} // namespace Model
452} // namespace CloudFront
453} // namespace Aws
DistributionConfig & WithCallerReference(Aws::String &&value)
DistributionConfig & WithCacheBehaviors(const CacheBehaviors &value)
DistributionConfig & WithPriceClass(PriceClass &&value)
const Aws::String & GetDefaultRootObject() const
DistributionConfig & WithDefaultRootObject(Aws::String &&value)
DistributionConfig & WithOrigins(Origins &&value)
DistributionConfig & WithHttpVersion(const HttpVersion &value)
DistributionConfig & WithCustomErrorResponses(CustomErrorResponses &&value)
DistributionConfig & WithComment(const char *value)
void SetDefaultCacheBehavior(DefaultCacheBehavior &&value)
void SetRestrictions(const Restrictions &value)
DistributionConfig & WithStaging(bool value)
DistributionConfig & WithLogging(const LoggingConfig &value)
DistributionConfig & WithViewerCertificate(const ViewerCertificate &value)
DistributionConfig & WithIsIPV6Enabled(bool value)
DistributionConfig & WithComment(const Aws::String &value)
void SetContinuousDeploymentPolicyId(const char *value)
AWS_CLOUDFRONT_API DistributionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLogging(const LoggingConfig &value)
DistributionConfig & WithContinuousDeploymentPolicyId(Aws::String &&value)
void SetCacheBehaviors(const CacheBehaviors &value)
DistributionConfig & WithComment(Aws::String &&value)
const ViewerCertificate & GetViewerCertificate() const
DistributionConfig & WithCallerReference(const Aws::String &value)
void SetDefaultRootObject(const Aws::String &value)
DistributionConfig & WithWebACLId(const char *value)
DistributionConfig & WithDefaultRootObject(const Aws::String &value)
DistributionConfig & WithCacheBehaviors(CacheBehaviors &&value)
void SetComment(const Aws::String &value)
DistributionConfig & WithAliases(const Aliases &value)
void SetViewerCertificate(ViewerCertificate &&value)
DistributionConfig & WithWebACLId(const Aws::String &value)
DistributionConfig & WithWebACLId(Aws::String &&value)
void SetContinuousDeploymentPolicyId(Aws::String &&value)
DistributionConfig & WithDefaultCacheBehavior(DefaultCacheBehavior &&value)
DistributionConfig & WithHttpVersion(HttpVersion &&value)
DistributionConfig & WithDefaultRootObject(const char *value)
void SetCustomErrorResponses(const CustomErrorResponses &value)
DistributionConfig & WithViewerCertificate(ViewerCertificate &&value)
DistributionConfig & WithOriginGroups(const OriginGroups &value)
DistributionConfig & WithContinuousDeploymentPolicyId(const char *value)
void SetPriceClass(const PriceClass &value)
const CustomErrorResponses & GetCustomErrorResponses() const
DistributionConfig & WithContinuousDeploymentPolicyId(const Aws::String &value)
DistributionConfig & WithCustomErrorResponses(const CustomErrorResponses &value)
AWS_CLOUDFRONT_API DistributionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionConfig & WithOriginGroups(OriginGroups &&value)
DistributionConfig & WithEnabled(bool value)
const DefaultCacheBehavior & GetDefaultCacheBehavior() const
const CacheBehaviors & GetCacheBehaviors() const
void SetCacheBehaviors(CacheBehaviors &&value)
void SetWebACLId(const Aws::String &value)
DistributionConfig & WithCallerReference(const char *value)
const Aws::String & GetContinuousDeploymentPolicyId() const
const Aws::String & GetCallerReference() const
void SetOriginGroups(const OriginGroups &value)
void SetCustomErrorResponses(CustomErrorResponses &&value)
DistributionConfig & WithAliases(Aliases &&value)
void SetHttpVersion(const HttpVersion &value)
void SetContinuousDeploymentPolicyId(const Aws::String &value)
void SetCallerReference(const Aws::String &value)
DistributionConfig & WithOrigins(const Origins &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionConfig & WithRestrictions(const Restrictions &value)
DistributionConfig & WithDefaultCacheBehavior(const DefaultCacheBehavior &value)
DistributionConfig & WithPriceClass(const PriceClass &value)
DistributionConfig & WithLogging(LoggingConfig &&value)
DistributionConfig & WithRestrictions(Restrictions &&value)
void SetDefaultCacheBehavior(const DefaultCacheBehavior &value)
void SetViewerCertificate(const ViewerCertificate &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String