AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDistributionRequest.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace Lightsail
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LIGHTSAIL_API UpdateDistributionRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateDistribution"; }
37
38 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
39
41
42
44
49 inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
50 inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
51 inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
52 inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
53 inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
55 inline UpdateDistributionRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
56 inline UpdateDistributionRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
58
60
65 inline const InputOrigin& GetOrigin() const{ return m_origin; }
66 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
67 inline void SetOrigin(const InputOrigin& value) { m_originHasBeenSet = true; m_origin = value; }
68 inline void SetOrigin(InputOrigin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
69 inline UpdateDistributionRequest& WithOrigin(const InputOrigin& value) { SetOrigin(value); return *this;}
70 inline UpdateDistributionRequest& WithOrigin(InputOrigin&& value) { SetOrigin(std::move(value)); return *this;}
72
74
77 inline const CacheBehavior& GetDefaultCacheBehavior() const{ return m_defaultCacheBehavior; }
78 inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
79 inline void SetDefaultCacheBehavior(const CacheBehavior& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
80 inline void SetDefaultCacheBehavior(CacheBehavior&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::move(value); }
84
86
92 inline const CacheSettings& GetCacheBehaviorSettings() const{ return m_cacheBehaviorSettings; }
93 inline bool CacheBehaviorSettingsHasBeenSet() const { return m_cacheBehaviorSettingsHasBeenSet; }
94 inline void SetCacheBehaviorSettings(const CacheSettings& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = value; }
95 inline void SetCacheBehaviorSettings(CacheSettings&& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = std::move(value); }
99
101
105 inline const Aws::Vector<CacheBehaviorPerPath>& GetCacheBehaviors() const{ return m_cacheBehaviors; }
106 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
107 inline void SetCacheBehaviors(const Aws::Vector<CacheBehaviorPerPath>& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
108 inline void SetCacheBehaviors(Aws::Vector<CacheBehaviorPerPath>&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::move(value); }
111 inline UpdateDistributionRequest& AddCacheBehaviors(const CacheBehaviorPerPath& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(value); return *this; }
112 inline UpdateDistributionRequest& AddCacheBehaviors(CacheBehaviorPerPath&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(std::move(value)); return *this; }
114
116
119 inline bool GetIsEnabled() const{ return m_isEnabled; }
120 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
121 inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
122 inline UpdateDistributionRequest& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
124
126
130 inline const ViewerMinimumTlsProtocolVersionEnum& GetViewerMinimumTlsProtocolVersion() const{ return m_viewerMinimumTlsProtocolVersion; }
131 inline bool ViewerMinimumTlsProtocolVersionHasBeenSet() const { return m_viewerMinimumTlsProtocolVersionHasBeenSet; }
132 inline void SetViewerMinimumTlsProtocolVersion(const ViewerMinimumTlsProtocolVersionEnum& value) { m_viewerMinimumTlsProtocolVersionHasBeenSet = true; m_viewerMinimumTlsProtocolVersion = value; }
133 inline void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum&& value) { m_viewerMinimumTlsProtocolVersionHasBeenSet = true; m_viewerMinimumTlsProtocolVersion = std::move(value); }
137
139
146 inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
147 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
148 inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
149 inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
150 inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
152 inline UpdateDistributionRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
153 inline UpdateDistributionRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
155
157
164 inline bool GetUseDefaultCertificate() const{ return m_useDefaultCertificate; }
165 inline bool UseDefaultCertificateHasBeenSet() const { return m_useDefaultCertificateHasBeenSet; }
166 inline void SetUseDefaultCertificate(bool value) { m_useDefaultCertificateHasBeenSet = true; m_useDefaultCertificate = value; }
169 private:
170
171 Aws::String m_distributionName;
172 bool m_distributionNameHasBeenSet = false;
173
174 InputOrigin m_origin;
175 bool m_originHasBeenSet = false;
176
177 CacheBehavior m_defaultCacheBehavior;
178 bool m_defaultCacheBehaviorHasBeenSet = false;
179
180 CacheSettings m_cacheBehaviorSettings;
181 bool m_cacheBehaviorSettingsHasBeenSet = false;
182
183 Aws::Vector<CacheBehaviorPerPath> m_cacheBehaviors;
184 bool m_cacheBehaviorsHasBeenSet = false;
185
186 bool m_isEnabled;
187 bool m_isEnabledHasBeenSet = false;
188
189 ViewerMinimumTlsProtocolVersionEnum m_viewerMinimumTlsProtocolVersion;
190 bool m_viewerMinimumTlsProtocolVersionHasBeenSet = false;
191
192 Aws::String m_certificateName;
193 bool m_certificateNameHasBeenSet = false;
194
195 bool m_useDefaultCertificate;
196 bool m_useDefaultCertificateHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Lightsail
201} // namespace Aws
UpdateDistributionRequest & WithCacheBehaviorSettings(const CacheSettings &value)
UpdateDistributionRequest & WithOrigin(const InputOrigin &value)
UpdateDistributionRequest & WithDistributionName(const char *value)
UpdateDistributionRequest & WithDistributionName(const Aws::String &value)
UpdateDistributionRequest & WithDefaultCacheBehavior(const CacheBehavior &value)
UpdateDistributionRequest & WithCacheBehaviorSettings(CacheSettings &&value)
UpdateDistributionRequest & WithCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
void SetCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
UpdateDistributionRequest & WithIsEnabled(bool value)
void SetViewerMinimumTlsProtocolVersion(const ViewerMinimumTlsProtocolVersionEnum &value)
UpdateDistributionRequest & WithCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
UpdateDistributionRequest & AddCacheBehaviors(const CacheBehaviorPerPath &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum &&value)
UpdateDistributionRequest & WithCertificateName(Aws::String &&value)
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
UpdateDistributionRequest & WithDefaultCacheBehavior(CacheBehavior &&value)
UpdateDistributionRequest & WithOrigin(InputOrigin &&value)
void SetCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
const ViewerMinimumTlsProtocolVersionEnum & GetViewerMinimumTlsProtocolVersion() const
UpdateDistributionRequest & AddCacheBehaviors(CacheBehaviorPerPath &&value)
UpdateDistributionRequest & WithCertificateName(const Aws::String &value)
UpdateDistributionRequest & WithDistributionName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateDistributionRequest & WithCertificateName(const char *value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
UpdateDistributionRequest & WithUseDefaultCertificate(bool value)
UpdateDistributionRequest & WithViewerMinimumTlsProtocolVersion(const ViewerMinimumTlsProtocolVersionEnum &value)
UpdateDistributionRequest & WithViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector