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/ViewerMinimumTlsProtocolVersionEnum.h>
15#include <aws/lightsail/model/CacheBehaviorPerPath.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>
92 template<
typename CacheBehaviorSettingsT = CacheSettings>
93 void SetCacheBehaviorSettings(CacheBehaviorSettingsT&& value) { m_cacheBehaviorSettingsHasBeenSet =
true; m_cacheBehaviorSettings = std::forward<CacheBehaviorSettingsT>(value); }
94 template<
typename CacheBehaviorSettingsT = CacheSettings>
105 template<
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
106 void SetCacheBehaviors(CacheBehaviorsT&& value) { m_cacheBehaviorsHasBeenSet =
true; m_cacheBehaviors = std::forward<CacheBehaviorsT>(value); }
107 template<
typename CacheBehaviorsT = Aws::Vector<CacheBehaviorPerPath>>
109 template<
typename CacheBehaviorsT = CacheBehaviorPerPath>
119 inline void SetIsEnabled(
bool value) { m_isEnabledHasBeenSet =
true; m_isEnabled = value; }
144 template<
typename CertificateNameT = Aws::String>
145 void SetCertificateName(CertificateNameT&& value) { m_certificateNameHasBeenSet =
true; m_certificateName = std::forward<CertificateNameT>(value); }
146 template<
typename CertificateNameT = Aws::String>
166 bool m_distributionNameHasBeenSet =
false;
169 bool m_originHasBeenSet =
false;
172 bool m_defaultCacheBehaviorHasBeenSet =
false;
175 bool m_cacheBehaviorSettingsHasBeenSet =
false;
178 bool m_cacheBehaviorsHasBeenSet =
false;
180 bool m_isEnabled{
false};
181 bool m_isEnabledHasBeenSet =
false;
184 bool m_viewerMinimumTlsProtocolVersionHasBeenSet =
false;
187 bool m_certificateNameHasBeenSet =
false;
189 bool m_useDefaultCertificate{
false};
190 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