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>
48 template <
typename DistributionNameT = Aws::String>
50 m_distributionNameHasBeenSet =
true;
51 m_distributionName = std::forward<DistributionNameT>(value);
53 template <
typename DistributionNameT = Aws::String>
68 template <
typename OriginT = InputOrigin>
70 m_originHasBeenSet =
true;
71 m_origin = std::forward<OriginT>(value);
73 template <
typename OriginT = InputOrigin>
86 template <
typename DefaultCacheBehaviorT = CacheBehavior>
88 m_defaultCacheBehaviorHasBeenSet =
true;
89 m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value);
91 template <
typename DefaultCacheBehaviorT = CacheBehavior>
105 template <
typename CacheBehaviorSettingsT = CacheSettings>
107 m_cacheBehaviorSettingsHasBeenSet =
true;
108 m_cacheBehaviorSettings = std::forward<CacheBehaviorSettingsT>(value);
110 template <
typename CacheBehaviorSettingsT = CacheSettings>
124 template <
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
126 m_cacheBehaviorsHasBeenSet =
true;
127 m_cacheBehaviors = std::forward<CacheBehaviorsT>(value);
129 template <
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
134 template <
typename CacheBehaviorsT = CacheBehaviorPerPath>
136 m_cacheBehaviorsHasBeenSet =
true;
137 m_cacheBehaviors.emplace_back(std::forward<CacheBehaviorsT>(value));
152 template <
typename BundleIdT = Aws::String>
154 m_bundleIdHasBeenSet =
true;
155 m_bundleId = std::forward<BundleIdT>(value);
157 template <
typename BundleIdT = Aws::String>
173 m_ipAddressTypeHasBeenSet =
true;
174 m_ipAddressType = value;
190 template <
typename TagsT = Aws::Vector<Tag>>
192 m_tagsHasBeenSet =
true;
193 m_tags = std::forward<TagsT>(value);
195 template <
typename TagsT = Aws::Vector<Tag>>
197 SetTags(std::forward<TagsT>(value));
200 template <
typename TagsT = Tag>
202 m_tagsHasBeenSet =
true;
203 m_tags.emplace_back(std::forward<TagsT>(value));
217 template <
typename CertificateNameT = Aws::String>
219 m_certificateNameHasBeenSet =
true;
220 m_certificateName = std::forward<CertificateNameT>(value);
222 template <
typename CertificateNameT = Aws::String>
236 m_viewerMinimumTlsProtocolVersionHasBeenSet =
true;
237 m_viewerMinimumTlsProtocolVersion = value;
259 m_enablePrivateOriginAccessHasBeenSet =
true;
260 m_enablePrivateOriginAccess = value;
277 template <
typename DefaultRootObjectT = Aws::String>
279 m_defaultRootObjectHasBeenSet =
true;
280 m_defaultRootObject = std::forward<DefaultRootObjectT>(value);
282 template <
typename DefaultRootObjectT = Aws::String>
298 template <
typename CustomErrorResponsesT = Aws::Vector<DistributionCustomErrorResponse>>
300 m_customErrorResponsesHasBeenSet =
true;
301 m_customErrorResponses = std::forward<CustomErrorResponsesT>(value);
303 template <
typename CustomErrorResponsesT = Aws::Vector<DistributionCustomErrorResponse>>
308 template <
typename CustomErrorResponsesT = DistributionCustomErrorResponse>
310 m_customErrorResponsesHasBeenSet =
true;
311 m_customErrorResponses.emplace_back(std::forward<CustomErrorResponsesT>(value));
336 bool m_enablePrivateOriginAccess{
false};
341 bool m_distributionNameHasBeenSet =
false;
342 bool m_originHasBeenSet =
false;
343 bool m_defaultCacheBehaviorHasBeenSet =
false;
344 bool m_cacheBehaviorSettingsHasBeenSet =
false;
345 bool m_cacheBehaviorsHasBeenSet =
false;
346 bool m_bundleIdHasBeenSet =
false;
347 bool m_ipAddressTypeHasBeenSet =
false;
348 bool m_tagsHasBeenSet =
false;
349 bool m_certificateNameHasBeenSet =
false;
350 bool m_viewerMinimumTlsProtocolVersionHasBeenSet =
false;
351 bool m_enablePrivateOriginAccessHasBeenSet =
false;
352 bool m_defaultRootObjectHasBeenSet =
false;
353 bool m_customErrorResponsesHasBeenSet =
false;
bool CacheBehaviorSettingsHasBeenSet() const
CreateDistributionRequest & WithViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
void SetIpAddressType(IpAddressType value)
CreateDistributionRequest & WithDistributionName(DistributionNameT &&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
const Aws::String & GetDistributionName() const
void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
bool DistributionNameHasBeenSet() const
CreateDistributionRequest & AddTags(TagsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDefaultRootObject() const
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
virtual const char * GetServiceRequestName() const override
CreateDistributionRequest & WithDefaultRootObject(DefaultRootObjectT &&value)
CreateDistributionRequest & WithEnablePrivateOriginAccess(bool value)
CreateDistributionRequest & AddCacheBehaviors(CacheBehaviorsT &&value)
CreateDistributionRequest & WithIpAddressType(IpAddressType value)
const Aws::Vector< DistributionCustomErrorResponse > & GetCustomErrorResponses() const
void SetDefaultRootObject(DefaultRootObjectT &&value)
CreateDistributionRequest & AddCustomErrorResponses(CustomErrorResponsesT &&value)
void SetOrigin(OriginT &&value)
void SetCertificateName(CertificateNameT &&value)
void SetBundleId(BundleIdT &&value)
bool DefaultCacheBehaviorHasBeenSet() 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