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/InputOrigin.h>
15#include <aws/lightsail/model/ViewerMinimumTlsProtocolVersionEnum.h>
47 template <
typename DistributionNameT = Aws::String>
49 m_distributionNameHasBeenSet =
true;
50 m_distributionName = std::forward<DistributionNameT>(value);
52 template <
typename DistributionNameT = Aws::String>
67 template <
typename OriginT = InputOrigin>
69 m_originHasBeenSet =
true;
70 m_origin = std::forward<OriginT>(value);
72 template <
typename OriginT = InputOrigin>
85 template <
typename DefaultCacheBehaviorT = CacheBehavior>
87 m_defaultCacheBehaviorHasBeenSet =
true;
88 m_defaultCacheBehavior = std::forward<DefaultCacheBehaviorT>(value);
90 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));
150 m_isEnabledHasBeenSet =
true;
167 m_viewerMinimumTlsProtocolVersionHasBeenSet =
true;
168 m_viewerMinimumTlsProtocolVersion = value;
186 template <
typename CertificateNameT = Aws::String>
188 m_certificateNameHasBeenSet =
true;
189 m_certificateName = std::forward<CertificateNameT>(value);
191 template <
typename CertificateNameT = Aws::String>
209 m_useDefaultCertificateHasBeenSet =
true;
210 m_useDefaultCertificate = value;
228 bool m_isEnabled{
false};
234 bool m_useDefaultCertificate{
false};
235 bool m_distributionNameHasBeenSet =
false;
236 bool m_originHasBeenSet =
false;
237 bool m_defaultCacheBehaviorHasBeenSet =
false;
238 bool m_cacheBehaviorSettingsHasBeenSet =
false;
239 bool m_cacheBehaviorsHasBeenSet =
false;
240 bool m_isEnabledHasBeenSet =
false;
241 bool m_viewerMinimumTlsProtocolVersionHasBeenSet =
false;
242 bool m_certificateNameHasBeenSet =
false;
243 bool m_useDefaultCertificateHasBeenSet =
false;
UpdateDistributionRequest & WithDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
UpdateDistributionRequest & AddCacheBehaviors(CacheBehaviorsT &&value)
void SetCacheBehaviorSettings(CacheBehaviorSettingsT &&value)
UpdateDistributionRequest & WithCacheBehaviors(CacheBehaviorsT &&value)
bool CacheBehaviorSettingsHasBeenSet() const
bool ViewerMinimumTlsProtocolVersionHasBeenSet() const
bool UseDefaultCertificateHasBeenSet() const
UpdateDistributionRequest & WithIsEnabled(bool value)
UpdateDistributionRequest & WithCacheBehaviorSettings(CacheBehaviorSettingsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool GetIsEnabled() const
void SetDistributionName(DistributionNameT &&value)
UpdateDistributionRequest & WithViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
ViewerMinimumTlsProtocolVersionEnum GetViewerMinimumTlsProtocolVersion() const
const CacheSettings & GetCacheBehaviorSettings() const
void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
UpdateDistributionRequest & WithOrigin(OriginT &&value)
bool CertificateNameHasBeenSet() const
void SetUseDefaultCertificate(bool value)
void SetOrigin(OriginT &&value)
AWS_LIGHTSAIL_API UpdateDistributionRequest()=default
UpdateDistributionRequest & WithDistributionName(DistributionNameT &&value)
const CacheBehavior & GetDefaultCacheBehavior() const
void SetDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
bool DistributionNameHasBeenSet() const
void SetIsEnabled(bool value)
UpdateDistributionRequest & WithCertificateName(CertificateNameT &&value)
bool DefaultCacheBehaviorHasBeenSet() const
bool OriginHasBeenSet() const
const Aws::String & GetCertificateName() const
void SetCacheBehaviors(CacheBehaviorsT &&value)
bool CacheBehaviorsHasBeenSet() const
bool IsEnabledHasBeenSet() const
const Aws::String & GetDistributionName() const
void SetCertificateName(CertificateNameT &&value)
virtual const char * GetServiceRequestName() const override
bool GetUseDefaultCertificate() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
UpdateDistributionRequest & WithUseDefaultCertificate(bool value)
const InputOrigin & GetOrigin() const
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