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/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>
107 template <
typename CacheBehaviorSettingsT = CacheSettings>
109 m_cacheBehaviorSettingsHasBeenSet =
true;
110 m_cacheBehaviorSettings = std::forward<CacheBehaviorSettingsT>(value);
112 template <
typename CacheBehaviorSettingsT = CacheSettings>
126 template <
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
128 m_cacheBehaviorsHasBeenSet =
true;
129 m_cacheBehaviors = std::forward<CacheBehaviorsT>(value);
131 template <
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
136 template <
typename CacheBehaviorsT = CacheBehaviorPerPath>
138 m_cacheBehaviorsHasBeenSet =
true;
139 m_cacheBehaviors.emplace_back(std::forward<CacheBehaviorsT>(value));
151 m_isEnabledHasBeenSet =
true;
168 m_viewerMinimumTlsProtocolVersionHasBeenSet =
true;
169 m_viewerMinimumTlsProtocolVersion = value;
187 template <
typename CertificateNameT = Aws::String>
189 m_certificateNameHasBeenSet =
true;
190 m_certificateName = std::forward<CertificateNameT>(value);
192 template <
typename CertificateNameT = Aws::String>
210 m_useDefaultCertificateHasBeenSet =
true;
211 m_useDefaultCertificate = value;
235 m_enablePrivateOriginAccessHasBeenSet =
true;
236 m_enablePrivateOriginAccess = value;
253 template <
typename DefaultRootObjectT = Aws::String>
255 m_defaultRootObjectHasBeenSet =
true;
256 m_defaultRootObject = std::forward<DefaultRootObjectT>(value);
258 template <
typename DefaultRootObjectT = Aws::String>
274 template <
typename CustomErrorResponsesT = Aws::Vector<DistributionCustomErrorResponse>>
276 m_customErrorResponsesHasBeenSet =
true;
277 m_customErrorResponses = std::forward<CustomErrorResponsesT>(value);
279 template <
typename CustomErrorResponsesT = Aws::Vector<DistributionCustomErrorResponse>>
284 template <
typename CustomErrorResponsesT = DistributionCustomErrorResponse>
286 m_customErrorResponsesHasBeenSet =
true;
287 m_customErrorResponses.emplace_back(std::forward<CustomErrorResponsesT>(value));
302 bool m_isEnabled{
false};
308 bool m_useDefaultCertificate{
false};
310 bool m_enablePrivateOriginAccess{
false};
315 bool m_distributionNameHasBeenSet =
false;
316 bool m_originHasBeenSet =
false;
317 bool m_defaultCacheBehaviorHasBeenSet =
false;
318 bool m_cacheBehaviorSettingsHasBeenSet =
false;
319 bool m_cacheBehaviorsHasBeenSet =
false;
320 bool m_isEnabledHasBeenSet =
false;
321 bool m_viewerMinimumTlsProtocolVersionHasBeenSet =
false;
322 bool m_certificateNameHasBeenSet =
false;
323 bool m_useDefaultCertificateHasBeenSet =
false;
324 bool m_enablePrivateOriginAccessHasBeenSet =
false;
325 bool m_defaultRootObjectHasBeenSet =
false;
326 bool m_customErrorResponsesHasBeenSet =
false;
bool GetEnablePrivateOriginAccess() const
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)
bool EnablePrivateOriginAccessHasBeenSet() const
UpdateDistributionRequest & WithCacheBehaviorSettings(CacheBehaviorSettingsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< DistributionCustomErrorResponse > & GetCustomErrorResponses() const
UpdateDistributionRequest & WithEnablePrivateOriginAccess(bool value)
bool GetIsEnabled() const
void SetDistributionName(DistributionNameT &&value)
UpdateDistributionRequest & WithViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
ViewerMinimumTlsProtocolVersionEnum GetViewerMinimumTlsProtocolVersion() const
const CacheSettings & GetCacheBehaviorSettings() const
const Aws::String & GetDefaultRootObject() const
void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum value)
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
UpdateDistributionRequest & WithOrigin(OriginT &&value)
UpdateDistributionRequest & WithCustomErrorResponses(CustomErrorResponsesT &&value)
bool CertificateNameHasBeenSet() const
void SetUseDefaultCertificate(bool value)
bool CustomErrorResponsesHasBeenSet() const
void SetOrigin(OriginT &&value)
void SetCustomErrorResponses(CustomErrorResponsesT &&value)
AWS_LIGHTSAIL_API UpdateDistributionRequest()=default
UpdateDistributionRequest & WithDistributionName(DistributionNameT &&value)
const CacheBehavior & GetDefaultCacheBehavior() const
bool DefaultRootObjectHasBeenSet() const
void SetDefaultCacheBehavior(DefaultCacheBehaviorT &&value)
bool DistributionNameHasBeenSet() const
void SetIsEnabled(bool value)
void SetEnablePrivateOriginAccess(bool value)
UpdateDistributionRequest & WithCertificateName(CertificateNameT &&value)
bool DefaultCacheBehaviorHasBeenSet() const
UpdateDistributionRequest & WithDefaultRootObject(DefaultRootObjectT &&value)
UpdateDistributionRequest & AddCustomErrorResponses(CustomErrorResponsesT &&value)
bool OriginHasBeenSet() const
const Aws::String & GetCertificateName() const
void SetCacheBehaviors(CacheBehaviorsT &&value)
bool CacheBehaviorsHasBeenSet() const
bool IsEnabledHasBeenSet() const
const Aws::String & GetDistributionName() const
void SetDefaultRootObject(DefaultRootObjectT &&value)
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