AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateDistributionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Lightsail
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateDistribution"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
48 
54  inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
55 
61  inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
62 
68  inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
69 
75  inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
76 
82  inline UpdateDistributionRequest& WithDistributionName(const Aws::String& value) { SetDistributionName(value); return *this;}
83 
89  inline UpdateDistributionRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
90 
96  inline UpdateDistributionRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
97 
98 
104  inline const InputOrigin& GetOrigin() const{ return m_origin; }
105 
111  inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
112 
118  inline void SetOrigin(const InputOrigin& value) { m_originHasBeenSet = true; m_origin = value; }
119 
125  inline void SetOrigin(InputOrigin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
126 
132  inline UpdateDistributionRequest& WithOrigin(const InputOrigin& value) { SetOrigin(value); return *this;}
133 
139  inline UpdateDistributionRequest& WithOrigin(InputOrigin&& value) { SetOrigin(std::move(value)); return *this;}
140 
141 
145  inline const CacheBehavior& GetDefaultCacheBehavior() const{ return m_defaultCacheBehavior; }
146 
150  inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
151 
155  inline void SetDefaultCacheBehavior(const CacheBehavior& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
156 
160  inline void SetDefaultCacheBehavior(CacheBehavior&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::move(value); }
161 
165  inline UpdateDistributionRequest& WithDefaultCacheBehavior(const CacheBehavior& value) { SetDefaultCacheBehavior(value); return *this;}
166 
170  inline UpdateDistributionRequest& WithDefaultCacheBehavior(CacheBehavior&& value) { SetDefaultCacheBehavior(std::move(value)); return *this;}
171 
172 
179  inline const CacheSettings& GetCacheBehaviorSettings() const{ return m_cacheBehaviorSettings; }
180 
187  inline bool CacheBehaviorSettingsHasBeenSet() const { return m_cacheBehaviorSettingsHasBeenSet; }
188 
195  inline void SetCacheBehaviorSettings(const CacheSettings& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = value; }
196 
203  inline void SetCacheBehaviorSettings(CacheSettings&& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = std::move(value); }
204 
211  inline UpdateDistributionRequest& WithCacheBehaviorSettings(const CacheSettings& value) { SetCacheBehaviorSettings(value); return *this;}
212 
219  inline UpdateDistributionRequest& WithCacheBehaviorSettings(CacheSettings&& value) { SetCacheBehaviorSettings(std::move(value)); return *this;}
220 
221 
226  inline const Aws::Vector<CacheBehaviorPerPath>& GetCacheBehaviors() const{ return m_cacheBehaviors; }
227 
232  inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
233 
238  inline void SetCacheBehaviors(const Aws::Vector<CacheBehaviorPerPath>& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
239 
244  inline void SetCacheBehaviors(Aws::Vector<CacheBehaviorPerPath>&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::move(value); }
245 
250  inline UpdateDistributionRequest& WithCacheBehaviors(const Aws::Vector<CacheBehaviorPerPath>& value) { SetCacheBehaviors(value); return *this;}
251 
256  inline UpdateDistributionRequest& WithCacheBehaviors(Aws::Vector<CacheBehaviorPerPath>&& value) { SetCacheBehaviors(std::move(value)); return *this;}
257 
262  inline UpdateDistributionRequest& AddCacheBehaviors(const CacheBehaviorPerPath& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(value); return *this; }
263 
268  inline UpdateDistributionRequest& AddCacheBehaviors(CacheBehaviorPerPath&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(std::move(value)); return *this; }
269 
270 
274  inline bool GetIsEnabled() const{ return m_isEnabled; }
275 
279  inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
280 
284  inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
285 
289  inline UpdateDistributionRequest& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
290 
291  private:
292 
293  Aws::String m_distributionName;
294  bool m_distributionNameHasBeenSet;
295 
296  InputOrigin m_origin;
297  bool m_originHasBeenSet;
298 
299  CacheBehavior m_defaultCacheBehavior;
300  bool m_defaultCacheBehaviorHasBeenSet;
301 
302  CacheSettings m_cacheBehaviorSettings;
303  bool m_cacheBehaviorSettingsHasBeenSet;
304 
305  Aws::Vector<CacheBehaviorPerPath> m_cacheBehaviors;
306  bool m_cacheBehaviorsHasBeenSet;
307 
308  bool m_isEnabled;
309  bool m_isEnabledHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace Lightsail
314 } // namespace Aws
Aws::Lightsail::Model::UpdateDistributionRequest::WithDefaultCacheBehavior
UpdateDistributionRequest & WithDefaultCacheBehavior(const CacheBehavior &value)
Definition: UpdateDistributionRequest.h:165
CacheSettings.h
Aws::Lightsail::Model::UpdateDistributionRequest::CacheBehaviorSettingsHasBeenSet
bool CacheBehaviorSettingsHasBeenSet() const
Definition: UpdateDistributionRequest.h:187
Aws::Lightsail::Model::UpdateDistributionRequest::SetDefaultCacheBehavior
void SetDefaultCacheBehavior(CacheBehavior &&value)
Definition: UpdateDistributionRequest.h:160
Aws::Lightsail::Model::UpdateDistributionRequest::WithIsEnabled
UpdateDistributionRequest & WithIsEnabled(bool value)
Definition: UpdateDistributionRequest.h:289
Aws::Lightsail::Model::UpdateDistributionRequest::SetCacheBehaviors
void SetCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
Definition: UpdateDistributionRequest.h:238
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::UpdateDistributionRequest::IsEnabledHasBeenSet
bool IsEnabledHasBeenSet() const
Definition: UpdateDistributionRequest.h:279
Aws::Lightsail::Model::UpdateDistributionRequest::SetOrigin
void SetOrigin(const InputOrigin &value)
Definition: UpdateDistributionRequest.h:118
Aws::Lightsail::Model::UpdateDistributionRequest::GetDistributionName
const Aws::String & GetDistributionName() const
Definition: UpdateDistributionRequest.h:47
Aws::Lightsail::Model::UpdateDistributionRequest::SetIsEnabled
void SetIsEnabled(bool value)
Definition: UpdateDistributionRequest.h:284
Aws::Lightsail::Model::UpdateDistributionRequest::WithOrigin
UpdateDistributionRequest & WithOrigin(const InputOrigin &value)
Definition: UpdateDistributionRequest.h:132
Aws::Lightsail::Model::UpdateDistributionRequest::WithCacheBehaviorSettings
UpdateDistributionRequest & WithCacheBehaviorSettings(const CacheSettings &value)
Definition: UpdateDistributionRequest.h:211
Aws::Lightsail::Model::UpdateDistributionRequest::GetCacheBehaviors
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
Definition: UpdateDistributionRequest.h:226
Aws::Lightsail::Model::UpdateDistributionRequest::OriginHasBeenSet
bool OriginHasBeenSet() const
Definition: UpdateDistributionRequest.h:111
InputOrigin.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::UpdateDistributionRequest::DefaultCacheBehaviorHasBeenSet
bool DefaultCacheBehaviorHasBeenSet() const
Definition: UpdateDistributionRequest.h:150
AWSVector.h
Aws::Lightsail::Model::UpdateDistributionRequest::SetCacheBehaviors
void SetCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
Definition: UpdateDistributionRequest.h:244
LightsailRequest.h
Aws::Lightsail::Model::UpdateDistributionRequest::WithCacheBehaviors
UpdateDistributionRequest & WithCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
Definition: UpdateDistributionRequest.h:250
Aws::Lightsail::Model::UpdateDistributionRequest::SetDistributionName
void SetDistributionName(Aws::String &&value)
Definition: UpdateDistributionRequest.h:68
CacheBehavior.h
Aws::Lightsail::Model::UpdateDistributionRequest::WithDistributionName
UpdateDistributionRequest & WithDistributionName(Aws::String &&value)
Definition: UpdateDistributionRequest.h:89
Aws::Lightsail::Model::UpdateDistributionRequest::WithDistributionName
UpdateDistributionRequest & WithDistributionName(const Aws::String &value)
Definition: UpdateDistributionRequest.h:82
Aws::Lightsail::Model::UpdateDistributionRequest::SetDefaultCacheBehavior
void SetDefaultCacheBehavior(const CacheBehavior &value)
Definition: UpdateDistributionRequest.h:155
Aws::Lightsail::Model::UpdateDistributionRequest::AddCacheBehaviors
UpdateDistributionRequest & AddCacheBehaviors(const CacheBehaviorPerPath &value)
Definition: UpdateDistributionRequest.h:262
Aws::Lightsail::Model::UpdateDistributionRequest::CacheBehaviorsHasBeenSet
bool CacheBehaviorsHasBeenSet() const
Definition: UpdateDistributionRequest.h:232
Aws::Lightsail::Model::UpdateDistributionRequest::SetDistributionName
void SetDistributionName(const char *value)
Definition: UpdateDistributionRequest.h:75
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::UpdateDistributionRequest::WithDistributionName
UpdateDistributionRequest & WithDistributionName(const char *value)
Definition: UpdateDistributionRequest.h:96
CacheBehaviorPerPath.h
AWSString.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::UpdateDistributionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CacheSettings
Definition: CacheSettings.h:39
Aws::Lightsail::Model::UpdateDistributionRequest::SetCacheBehaviorSettings
void SetCacheBehaviorSettings(CacheSettings &&value)
Definition: UpdateDistributionRequest.h:203
Aws::Lightsail::Model::UpdateDistributionRequest
Definition: UpdateDistributionRequest.h:27
Aws::Lightsail::Model::CacheBehaviorPerPath
Definition: CacheBehaviorPerPath.h:42
Aws::Lightsail::Model::UpdateDistributionRequest::SetOrigin
void SetOrigin(InputOrigin &&value)
Definition: UpdateDistributionRequest.h:125
Aws::Lightsail::Model::UpdateDistributionRequest::GetOrigin
const InputOrigin & GetOrigin() const
Definition: UpdateDistributionRequest.h:104
Aws::Lightsail::Model::InputOrigin
Definition: InputOrigin.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::UpdateDistributionRequest::WithCacheBehaviors
UpdateDistributionRequest & WithCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
Definition: UpdateDistributionRequest.h:256
Aws::Lightsail::Model::UpdateDistributionRequest::WithOrigin
UpdateDistributionRequest & WithOrigin(InputOrigin &&value)
Definition: UpdateDistributionRequest.h:139
Aws::Lightsail::Model::UpdateDistributionRequest::SetDistributionName
void SetDistributionName(const Aws::String &value)
Definition: UpdateDistributionRequest.h:61
Aws::Lightsail::Model::UpdateDistributionRequest::AddCacheBehaviors
UpdateDistributionRequest & AddCacheBehaviors(CacheBehaviorPerPath &&value)
Definition: UpdateDistributionRequest.h:268
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::UpdateDistributionRequest::DistributionNameHasBeenSet
bool DistributionNameHasBeenSet() const
Definition: UpdateDistributionRequest.h:54
Aws::Lightsail::Model::UpdateDistributionRequest::WithDefaultCacheBehavior
UpdateDistributionRequest & WithDefaultCacheBehavior(CacheBehavior &&value)
Definition: UpdateDistributionRequest.h:170
Aws::Lightsail::Model::UpdateDistributionRequest::GetIsEnabled
bool GetIsEnabled() const
Definition: UpdateDistributionRequest.h:274
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::UpdateDistributionRequest::GetDefaultCacheBehavior
const CacheBehavior & GetDefaultCacheBehavior() const
Definition: UpdateDistributionRequest.h:145
Aws::Lightsail::Model::UpdateDistributionRequest::GetCacheBehaviorSettings
const CacheSettings & GetCacheBehaviorSettings() const
Definition: UpdateDistributionRequest.h:179
Aws::Lightsail::Model::UpdateDistributionRequest::UpdateDistributionRequest
UpdateDistributionRequest()
Aws::Lightsail::Model::UpdateDistributionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDistributionRequest.h:35
Aws::Lightsail::Model::CacheBehavior
Definition: CacheBehavior.h:33
Aws::Lightsail::Model::UpdateDistributionRequest::WithCacheBehaviorSettings
UpdateDistributionRequest & WithCacheBehaviorSettings(CacheSettings &&value)
Definition: UpdateDistributionRequest.h:219
Aws::Lightsail::Model::UpdateDistributionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::UpdateDistributionRequest::SetCacheBehaviorSettings
void SetCacheBehaviorSettings(const CacheSettings &value)
Definition: UpdateDistributionRequest.h:195