7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/InputOrigin.h>
11#include <aws/lightsail/model/CacheBehavior.h>
12#include <aws/lightsail/model/CacheSettings.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lightsail/model/IpAddressType.h>
15#include <aws/lightsail/model/ViewerMinimumTlsProtocolVersionEnum.h>
16#include <aws/lightsail/model/CacheBehaviorPerPath.h>
17#include <aws/lightsail/model/Tag.h>
51 template<
typename DistributionNameT = Aws::String>
52 void SetDistributionName(DistributionNameT&& value) { m_distributionNameHasBeenSet =
true; m_distributionName = std::forward<DistributionNameT>(value); }
53 template<
typename DistributionNameT = Aws::String>
65 template<
typename OriginT = InputOrigin>
66 void SetOrigin(OriginT&& value) { m_originHasBeenSet =
true; m_origin = std::forward<OriginT>(value); }
67 template<
typename OriginT = InputOrigin>
77 template<
typename DefaultCacheBehaviorT = CacheBehavior>
78 void SetDefaultCacheBehavior(DefaultCacheBehaviorT&& value) { m_defaultCacheBehaviorHasBeenSet =
true; m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value); }
79 template<
typename DefaultCacheBehaviorT = CacheBehavior>
90 template<
typename CacheBehaviorSettingsT = CacheSettings>
91 void SetCacheBehaviorSettings(CacheBehaviorSettingsT&& value) { m_cacheBehaviorSettingsHasBeenSet =
true; m_cacheBehaviorSettings = std::forward<CacheBehaviorSettingsT>(value); }
92 template<
typename CacheBehaviorSettingsT = CacheSettings>
103 template<
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
104 void SetCacheBehaviors(CacheBehaviorsT&& value) { m_cacheBehaviorsHasBeenSet =
true; m_cacheBehaviors = std::forward<CacheBehaviorsT>(value); }
105 template<
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
107 template<
typename CacheBehaviorsT = CacheBehaviorPerPath>
121 template<
typename BundleIdT = Aws::String>
122 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet =
true; m_bundleId = std::forward<BundleIdT>(value); }
123 template<
typename BundleIdT = Aws::String>
147 template<
typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
149 template<
typename TagsT = Aws::Vector<Tag>>
151 template<
typename TagsT = Tag>
164 template<
typename CertificateNameT = Aws::String>
165 void SetCertificateName(CertificateNameT&& value) { m_certificateNameHasBeenSet =
true; m_certificateName = std::forward<CertificateNameT>(value); }
166 template<
typename CertificateNameT = Aws::String>
182 bool m_distributionNameHasBeenSet =
false;
185 bool m_originHasBeenSet =
false;
188 bool m_defaultCacheBehaviorHasBeenSet =
false;
191 bool m_cacheBehaviorSettingsHasBeenSet =
false;
194 bool m_cacheBehaviorsHasBeenSet =
false;
197 bool m_bundleIdHasBeenSet =
false;
200 bool m_ipAddressTypeHasBeenSet =
false;
203 bool m_tagsHasBeenSet =
false;
206 bool m_certificateNameHasBeenSet =
false;
209 bool m_viewerMinimumTlsProtocolVersionHasBeenSet =
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 CertificateNameHasBeenSet() const
void SetDistributionName(DistributionNameT &&value)
const CacheSettings & GetCacheBehaviorSettings() 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
bool OriginHasBeenSet() const
bool TagsHasBeenSet() const
CreateDistributionRequest & WithDefaultCacheBehavior(DefaultCacheBehaviorT &&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 & AddCacheBehaviors(CacheBehaviorsT &&value)
CreateDistributionRequest & WithIpAddressType(IpAddressType 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)
CreateDistributionRequest & WithCertificateName(CertificateNameT &&value)
AWS_LIGHTSAIL_API CreateDistributionRequest()=default
bool BundleIdHasBeenSet() const
CreateDistributionRequest & WithOrigin(OriginT &&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