7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/CacheBehavior.h>
12#include <aws/lightsail/model/CacheBehaviorPerPath.h>
13#include <aws/lightsail/model/CacheSettings.h>
14#include <aws/lightsail/model/DistributionCustomErrorResponse.h>
15#include <aws/lightsail/model/InputOrigin.h>
16#include <aws/lightsail/model/IpAddressType.h>
17#include <aws/lightsail/model/Tag.h>
18#include <aws/lightsail/model/ViewerMinimumTlsProtocolVersionEnum.h>
19#include <aws/lightsail/model/WafRule.h>
49 template <
typename DistributionNameT = Aws::String>
51 m_distributionNameHasBeenSet =
true;
52 m_distributionName = std::forward<DistributionNameT>(value);
54 template <
typename DistributionNameT = Aws::String>
69 template <
typename OriginT = InputOrigin>
71 m_originHasBeenSet =
true;
72 m_origin = std::forward<OriginT>(value);
74 template <
typename OriginT = InputOrigin>
87 template <
typename DefaultCacheBehaviorT = CacheBehavior>
89 m_defaultCacheBehaviorHasBeenSet =
true;
90 m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value);
92 template <
typename DefaultCacheBehaviorT = CacheBehavior>
106 template <
typename CacheBehaviorSettingsT = CacheSettings>
108 m_cacheBehaviorSettingsHasBeenSet =
true;
109 m_cacheBehaviorSettings = std::forward<CacheBehaviorSettingsT>(value);
111 template <
typename CacheBehaviorSettingsT = CacheSettings>
125 template <
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
127 m_cacheBehaviorsHasBeenSet =
true;
128 m_cacheBehaviors = std::forward<CacheBehaviorsT>(value);
130 template <
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
135 template <
typename CacheBehaviorsT = CacheBehaviorPerPath>
137 m_cacheBehaviorsHasBeenSet =
true;
138 m_cacheBehaviors.emplace_back(std::forward<CacheBehaviorsT>(value));
153 template <
typename BundleIdT = Aws::String>
155 m_bundleIdHasBeenSet =
true;
156 m_bundleId = std::forward<BundleIdT>(value);
158 template <
typename BundleIdT = Aws::String>
174 m_ipAddressTypeHasBeenSet =
true;
175 m_ipAddressType = value;
191 template <
typename TagsT = Aws::Vector<Tag>>
193 m_tagsHasBeenSet =
true;
194 m_tags = std::forward<TagsT>(value);
196 template <
typename TagsT = Aws::Vector<Tag>>
198 SetTags(std::forward<TagsT>(value));
201 template <
typename TagsT = Tag>
203 m_tagsHasBeenSet =
true;
204 m_tags.emplace_back(std::forward<TagsT>(value));
218 template <
typename CertificateNameT = Aws::String>
220 m_certificateNameHasBeenSet =
true;
221 m_certificateName = std::forward<CertificateNameT>(value);
223 template <
typename CertificateNameT = Aws::String>
237 m_viewerMinimumTlsProtocolVersionHasBeenSet =
true;
238 m_viewerMinimumTlsProtocolVersion = value;
260 m_enablePrivateOriginAccessHasBeenSet =
true;
261 m_enablePrivateOriginAccess = value;
278 template <
typename DefaultRootObjectT = Aws::String>
280 m_defaultRootObjectHasBeenSet =
true;
281 m_defaultRootObject = std::forward<DefaultRootObjectT>(value);
283 template <
typename DefaultRootObjectT = Aws::String>
299 template <
typename CustomErrorResponsesT = Aws::Vector<DistributionCustomErrorResponse>>
301 m_customErrorResponsesHasBeenSet =
true;
302 m_customErrorResponses = std::forward<CustomErrorResponsesT>(value);
304 template <
typename CustomErrorResponsesT = Aws::Vector<DistributionCustomErrorResponse>>
309 template <
typename CustomErrorResponsesT = DistributionCustomErrorResponse>
311 m_customErrorResponsesHasBeenSet =
true;
312 m_customErrorResponses.emplace_back(std::forward<CustomErrorResponsesT>(value));
330 m_enableWafHasBeenSet =
true;
361 template <
typename WafRulesT = Aws::Vector<WafRule>>
363 m_wafRulesHasBeenSet =
true;
364 m_wafRules = std::forward<WafRulesT>(value);
366 template <
typename WafRulesT = Aws::Vector<WafRule>>
371 template <
typename WafRulesT = WafRule>
373 m_wafRulesHasBeenSet =
true;
374 m_wafRules.emplace_back(std::forward<WafRulesT>(value));
393 template <
typename SubdomainNameT = Aws::String>
395 m_subdomainNameHasBeenSet =
true;
396 m_subdomainName = std::forward<SubdomainNameT>(value);
398 template <
typename SubdomainNameT = Aws::String>
425 bool m_enablePrivateOriginAccess{
false};
431 bool m_enableWaf{
false};
436 bool m_distributionNameHasBeenSet =
false;
437 bool m_originHasBeenSet =
false;
438 bool m_defaultCacheBehaviorHasBeenSet =
false;
439 bool m_cacheBehaviorSettingsHasBeenSet =
false;
440 bool m_cacheBehaviorsHasBeenSet =
false;
441 bool m_bundleIdHasBeenSet =
false;
442 bool m_ipAddressTypeHasBeenSet =
false;
443 bool m_tagsHasBeenSet =
false;
444 bool m_certificateNameHasBeenSet =
false;
445 bool m_viewerMinimumTlsProtocolVersionHasBeenSet =
false;
446 bool m_enablePrivateOriginAccessHasBeenSet =
false;
447 bool m_defaultRootObjectHasBeenSet =
false;
448 bool m_customErrorResponsesHasBeenSet =
false;
449 bool m_enableWafHasBeenSet =
false;
450 bool m_wafRulesHasBeenSet =
false;
451 bool m_subdomainNameHasBeenSet =
false;
bool CacheBehaviorSettingsHasBeenSet() const
CreateDistributionRequest & WithViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
void SetIpAddressType(IpAddressType value)
CreateDistributionRequest & WithDistributionName(DistributionNameT &&value)
void SetSubdomainName(SubdomainNameT &&value)
void SetCacheBehaviorSettings(CacheBehaviorSettingsT &&value)
void SetTags(TagsT &&value)
bool DefaultRootObjectHasBeenSet() const
bool CertificateNameHasBeenSet() const
void SetDistributionName(DistributionNameT &&value)
const CacheSettings & GetCacheBehaviorSettings() const
bool CustomErrorResponsesHasBeenSet() const
bool EnablePrivateOriginAccessHasBeenSet() const
IpAddressType GetIpAddressType() const
void SetWafRules(WafRulesT &&value)
bool EnableWafHasBeenSet() const
bool SubdomainNameHasBeenSet() const
CreateDistributionRequest & WithWafRules(WafRulesT &&value)
const Aws::String & GetDistributionName() const
CreateDistributionRequest & WithEnableWaf(bool value)
bool GetEnableWaf() const
void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
bool DistributionNameHasBeenSet() const
CreateDistributionRequest & WithSubdomainName(SubdomainNameT &&value)
CreateDistributionRequest & AddTags(TagsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDefaultRootObject() const
CreateDistributionRequest & AddWafRules(WafRulesT &&value)
bool OriginHasBeenSet() const
bool TagsHasBeenSet() const
void SetEnablePrivateOriginAccess(bool value)
CreateDistributionRequest & WithDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
void SetCustomErrorResponses(CustomErrorResponsesT &&value)
CreateDistributionRequest & WithCacheBehaviorSettings(CacheBehaviorSettingsT &&value)
void SetCacheBehaviors(CacheBehaviorsT &&value)
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
const CacheBehavior & GetDefaultCacheBehavior() const
bool ViewerMinimumTlsProtocolVersionHasBeenSet() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
bool CacheBehaviorsHasBeenSet() const
void SetDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
const Aws::String & GetBundleId() const
const Aws::Vector< Tag > & GetTags() const
bool WafRulesHasBeenSet() const
virtual const char * GetServiceRequestName() const override
CreateDistributionRequest & WithDefaultRootObject(DefaultRootObjectT &&value)
CreateDistributionRequest & WithEnablePrivateOriginAccess(bool value)
CreateDistributionRequest & AddCacheBehaviors(CacheBehaviorsT &&value)
void SetEnableWaf(bool value)
CreateDistributionRequest & WithIpAddressType(IpAddressType value)
const Aws::Vector< DistributionCustomErrorResponse > & GetCustomErrorResponses() const
const Aws::Vector< WafRule > & GetWafRules() const
void SetDefaultRootObject(DefaultRootObjectT &&value)
CreateDistributionRequest & AddCustomErrorResponses(CustomErrorResponsesT &&value)
void SetOrigin(OriginT &&value)
void SetCertificateName(CertificateNameT &&value)
void SetBundleId(BundleIdT &&value)
bool DefaultCacheBehaviorHasBeenSet() const
const Aws::String & GetSubdomainName() const
ViewerMinimumTlsProtocolVersionEnum GetViewerMinimumTlsProtocolVersion() const
const Aws::String & GetCertificateName() const
bool IpAddressTypeHasBeenSet() const
const InputOrigin & GetOrigin() const
CreateDistributionRequest & WithCacheBehaviors(CacheBehaviorsT &&value)
bool GetEnablePrivateOriginAccess() const
CreateDistributionRequest & WithCertificateName(CertificateNameT &&value)
AWS_LIGHTSAIL_API CreateDistributionRequest()=default
bool BundleIdHasBeenSet() const
CreateDistributionRequest & WithOrigin(OriginT &&value)
CreateDistributionRequest & WithCustomErrorResponses(CustomErrorResponsesT &&value)
CreateDistributionRequest & WithBundleId(BundleIdT &&value)
CreateDistributionRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
ViewerMinimumTlsProtocolVersionEnum
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector