AWS SDK for C++  1.9.108
AWS SDK for C++
CreateDistributionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateDistribution"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
47  inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
48 
52  inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
53 
57  inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
58 
62  inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
63 
67  inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
68 
72  inline CreateDistributionRequest& WithDistributionName(const Aws::String& value) { SetDistributionName(value); return *this;}
73 
77  inline CreateDistributionRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
78 
82  inline CreateDistributionRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
83 
84 
90  inline const InputOrigin& GetOrigin() const{ return m_origin; }
91 
97  inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
98 
104  inline void SetOrigin(const InputOrigin& value) { m_originHasBeenSet = true; m_origin = value; }
105 
111  inline void SetOrigin(InputOrigin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
112 
118  inline CreateDistributionRequest& WithOrigin(const InputOrigin& value) { SetOrigin(value); return *this;}
119 
125  inline CreateDistributionRequest& WithOrigin(InputOrigin&& value) { SetOrigin(std::move(value)); return *this;}
126 
127 
131  inline const CacheBehavior& GetDefaultCacheBehavior() const{ return m_defaultCacheBehavior; }
132 
136  inline bool DefaultCacheBehaviorHasBeenSet() const { return m_defaultCacheBehaviorHasBeenSet; }
137 
141  inline void SetDefaultCacheBehavior(const CacheBehavior& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
142 
146  inline void SetDefaultCacheBehavior(CacheBehavior&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = std::move(value); }
147 
151  inline CreateDistributionRequest& WithDefaultCacheBehavior(const CacheBehavior& value) { SetDefaultCacheBehavior(value); return *this;}
152 
156  inline CreateDistributionRequest& WithDefaultCacheBehavior(CacheBehavior&& value) { SetDefaultCacheBehavior(std::move(value)); return *this;}
157 
158 
163  inline const CacheSettings& GetCacheBehaviorSettings() const{ return m_cacheBehaviorSettings; }
164 
169  inline bool CacheBehaviorSettingsHasBeenSet() const { return m_cacheBehaviorSettingsHasBeenSet; }
170 
175  inline void SetCacheBehaviorSettings(const CacheSettings& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = value; }
176 
181  inline void SetCacheBehaviorSettings(CacheSettings&& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = std::move(value); }
182 
187  inline CreateDistributionRequest& WithCacheBehaviorSettings(const CacheSettings& value) { SetCacheBehaviorSettings(value); return *this;}
188 
193  inline CreateDistributionRequest& WithCacheBehaviorSettings(CacheSettings&& value) { SetCacheBehaviorSettings(std::move(value)); return *this;}
194 
195 
200  inline const Aws::Vector<CacheBehaviorPerPath>& GetCacheBehaviors() const{ return m_cacheBehaviors; }
201 
206  inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
207 
212  inline void SetCacheBehaviors(const Aws::Vector<CacheBehaviorPerPath>& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
213 
218  inline void SetCacheBehaviors(Aws::Vector<CacheBehaviorPerPath>&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::move(value); }
219 
224  inline CreateDistributionRequest& WithCacheBehaviors(const Aws::Vector<CacheBehaviorPerPath>& value) { SetCacheBehaviors(value); return *this;}
225 
230  inline CreateDistributionRequest& WithCacheBehaviors(Aws::Vector<CacheBehaviorPerPath>&& value) { SetCacheBehaviors(std::move(value)); return *this;}
231 
236  inline CreateDistributionRequest& AddCacheBehaviors(const CacheBehaviorPerPath& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(value); return *this; }
237 
242  inline CreateDistributionRequest& AddCacheBehaviors(CacheBehaviorPerPath&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(std::move(value)); return *this; }
243 
244 
252  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
253 
261  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
262 
270  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
271 
279  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
280 
288  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
289 
297  inline CreateDistributionRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
298 
306  inline CreateDistributionRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
307 
315  inline CreateDistributionRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
316 
317 
323  inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
324 
330  inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
331 
337  inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
338 
344  inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
345 
351  inline CreateDistributionRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
352 
358  inline CreateDistributionRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
359 
360 
366  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
367 
373  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
374 
380  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
381 
387  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
388 
394  inline CreateDistributionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
395 
401  inline CreateDistributionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
402 
408  inline CreateDistributionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
409 
415  inline CreateDistributionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
416 
417  private:
418 
419  Aws::String m_distributionName;
420  bool m_distributionNameHasBeenSet;
421 
422  InputOrigin m_origin;
423  bool m_originHasBeenSet;
424 
425  CacheBehavior m_defaultCacheBehavior;
426  bool m_defaultCacheBehaviorHasBeenSet;
427 
428  CacheSettings m_cacheBehaviorSettings;
429  bool m_cacheBehaviorSettingsHasBeenSet;
430 
431  Aws::Vector<CacheBehaviorPerPath> m_cacheBehaviors;
432  bool m_cacheBehaviorsHasBeenSet;
433 
434  Aws::String m_bundleId;
435  bool m_bundleIdHasBeenSet;
436 
437  IpAddressType m_ipAddressType;
438  bool m_ipAddressTypeHasBeenSet;
439 
440  Aws::Vector<Tag> m_tags;
441  bool m_tagsHasBeenSet;
442  };
443 
444 } // namespace Model
445 } // namespace Lightsail
446 } // namespace Aws
Aws::Lightsail::Model::CreateDistributionRequest::CacheBehaviorSettingsHasBeenSet
bool CacheBehaviorSettingsHasBeenSet() const
Definition: CreateDistributionRequest.h:169
Aws::Lightsail::Model::IpAddressType
IpAddressType
Definition: IpAddressType.h:17
CacheSettings.h
Aws::Lightsail::Model::CreateDistributionRequest::GetOrigin
const InputOrigin & GetOrigin() const
Definition: CreateDistributionRequest.h:90
Aws::Lightsail::Model::CreateDistributionRequest::GetIpAddressType
const IpAddressType & GetIpAddressType() const
Definition: CreateDistributionRequest.h:323
Aws::Lightsail::Model::CreateDistributionRequest::GetCacheBehaviors
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
Definition: CreateDistributionRequest.h:200
Aws::Lightsail::Model::CreateDistributionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDistributionRequest.h:366
Aws::Lightsail::Model::CreateDistributionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDistributionRequest.h:387
Aws::Lightsail::Model::CreateDistributionRequest::WithCacheBehaviors
CreateDistributionRequest & WithCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
Definition: CreateDistributionRequest.h:230
Aws::Lightsail::Model::CreateDistributionRequest::WithDefaultCacheBehavior
CreateDistributionRequest & WithDefaultCacheBehavior(const CacheBehavior &value)
Definition: CreateDistributionRequest.h:151
Aws::Lightsail::Model::CreateDistributionRequest::SetDistributionName
void SetDistributionName(const char *value)
Definition: CreateDistributionRequest.h:67
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateDistributionRequest::DefaultCacheBehaviorHasBeenSet
bool DefaultCacheBehaviorHasBeenSet() const
Definition: CreateDistributionRequest.h:136
Aws::Lightsail::Model::CreateDistributionRequest::SetDistributionName
void SetDistributionName(Aws::String &&value)
Definition: CreateDistributionRequest.h:62
Aws::Lightsail::Model::CreateDistributionRequest::SetOrigin
void SetOrigin(InputOrigin &&value)
Definition: CreateDistributionRequest.h:111
Aws::Lightsail::Model::CreateDistributionRequest::WithIpAddressType
CreateDistributionRequest & WithIpAddressType(const IpAddressType &value)
Definition: CreateDistributionRequest.h:351
Aws::Lightsail::Model::CreateDistributionRequest::AddCacheBehaviors
CreateDistributionRequest & AddCacheBehaviors(CacheBehaviorPerPath &&value)
Definition: CreateDistributionRequest.h:242
Aws::Lightsail::Model::CreateDistributionRequest::SetCacheBehaviorSettings
void SetCacheBehaviorSettings(CacheSettings &&value)
Definition: CreateDistributionRequest.h:181
Aws::Lightsail::Model::CreateDistributionRequest::OriginHasBeenSet
bool OriginHasBeenSet() const
Definition: CreateDistributionRequest.h:97
Aws::Lightsail::Model::CreateDistributionRequest::GetCacheBehaviorSettings
const CacheSettings & GetCacheBehaviorSettings() const
Definition: CreateDistributionRequest.h:163
Aws::Lightsail::Model::CreateDistributionRequest::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: CreateDistributionRequest.h:279
Aws::Lightsail::Model::CreateDistributionRequest::SetDefaultCacheBehavior
void SetDefaultCacheBehavior(CacheBehavior &&value)
Definition: CreateDistributionRequest.h:146
Aws::Lightsail::Model::CreateDistributionRequest::CreateDistributionRequest
CreateDistributionRequest()
InputOrigin.h
Aws::Lightsail::Model::CreateDistributionRequest::SetCacheBehaviors
void SetCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
Definition: CreateDistributionRequest.h:212
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateDistributionRequest::SetCacheBehaviorSettings
void SetCacheBehaviorSettings(const CacheSettings &value)
Definition: CreateDistributionRequest.h:175
Aws::Lightsail::Model::CreateDistributionRequest::WithBundleId
CreateDistributionRequest & WithBundleId(const Aws::String &value)
Definition: CreateDistributionRequest.h:297
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateDistributionRequest::WithDistributionName
CreateDistributionRequest & WithDistributionName(Aws::String &&value)
Definition: CreateDistributionRequest.h:77
Aws::Lightsail::Model::CreateDistributionRequest::IpAddressTypeHasBeenSet
bool IpAddressTypeHasBeenSet() const
Definition: CreateDistributionRequest.h:330
CacheBehavior.h
Aws::Lightsail::Model::CreateDistributionRequest
Definition: CreateDistributionRequest.h:29
Aws::Lightsail::Model::CreateDistributionRequest::SetIpAddressType
void SetIpAddressType(const IpAddressType &value)
Definition: CreateDistributionRequest.h:337
Aws::Lightsail::Model::CreateDistributionRequest::WithCacheBehaviorSettings
CreateDistributionRequest & WithCacheBehaviorSettings(const CacheSettings &value)
Definition: CreateDistributionRequest.h:187
Aws::Lightsail::Model::CreateDistributionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDistributionRequest.h:380
Aws::Lightsail::Model::CreateDistributionRequest::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: CreateDistributionRequest.h:261
Aws::Lightsail::Model::CreateDistributionRequest::SetIpAddressType
void SetIpAddressType(IpAddressType &&value)
Definition: CreateDistributionRequest.h:344
Aws::Lightsail::Model::CreateDistributionRequest::WithCacheBehaviorSettings
CreateDistributionRequest & WithCacheBehaviorSettings(CacheSettings &&value)
Definition: CreateDistributionRequest.h:193
Aws::Lightsail::Model::CreateDistributionRequest::AddTags
CreateDistributionRequest & AddTags(const Tag &value)
Definition: CreateDistributionRequest.h:408
Tag.h
Aws::Lightsail::Model::CreateDistributionRequest::GetDefaultCacheBehavior
const CacheBehavior & GetDefaultCacheBehavior() const
Definition: CreateDistributionRequest.h:131
Aws::Lightsail::Model::CreateDistributionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDistributionRequest.h:37
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateDistributionRequest::WithIpAddressType
CreateDistributionRequest & WithIpAddressType(IpAddressType &&value)
Definition: CreateDistributionRequest.h:358
Aws::Lightsail::Model::CreateDistributionRequest::AddTags
CreateDistributionRequest & AddTags(Tag &&value)
Definition: CreateDistributionRequest.h:415
CacheBehaviorPerPath.h
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateDistributionRequest::WithBundleId
CreateDistributionRequest & WithBundleId(const char *value)
Definition: CreateDistributionRequest.h:315
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CacheSettings
Definition: CacheSettings.h:39
Aws::Lightsail::Model::CreateDistributionRequest::AddCacheBehaviors
CreateDistributionRequest & AddCacheBehaviors(const CacheBehaviorPerPath &value)
Definition: CreateDistributionRequest.h:236
Aws::Lightsail::Model::CreateDistributionRequest::WithBundleId
CreateDistributionRequest & WithBundleId(Aws::String &&value)
Definition: CreateDistributionRequest.h:306
Aws::Lightsail::Model::CacheBehaviorPerPath
Definition: CacheBehaviorPerPath.h:42
Aws::Lightsail::Model::CreateDistributionRequest::WithOrigin
CreateDistributionRequest & WithOrigin(const InputOrigin &value)
Definition: CreateDistributionRequest.h:118
Aws::Lightsail::Model::CreateDistributionRequest::DistributionNameHasBeenSet
bool DistributionNameHasBeenSet() const
Definition: CreateDistributionRequest.h:52
Aws::Lightsail::Model::InputOrigin
Definition: InputOrigin.h:38
Aws::Lightsail::Model::CreateDistributionRequest::WithOrigin
CreateDistributionRequest & WithOrigin(InputOrigin &&value)
Definition: CreateDistributionRequest.h:125
Aws::Lightsail::Model::CreateDistributionRequest::SetBundleId
void SetBundleId(const char *value)
Definition: CreateDistributionRequest.h:288
Aws::Lightsail::Model::CreateDistributionRequest::WithTags
CreateDistributionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDistributionRequest.h:401
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateDistributionRequest::SetDistributionName
void SetDistributionName(const Aws::String &value)
Definition: CreateDistributionRequest.h:57
Aws::Lightsail::Model::CreateDistributionRequest::WithDefaultCacheBehavior
CreateDistributionRequest & WithDefaultCacheBehavior(CacheBehavior &&value)
Definition: CreateDistributionRequest.h:156
Aws::Lightsail::Model::CreateDistributionRequest::SetDefaultCacheBehavior
void SetDefaultCacheBehavior(const CacheBehavior &value)
Definition: CreateDistributionRequest.h:141
Aws::Lightsail::Model::CreateDistributionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateDistributionRequest::SetCacheBehaviors
void SetCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
Definition: CreateDistributionRequest.h:218
Aws::Lightsail::Model::CreateDistributionRequest::SetOrigin
void SetOrigin(const InputOrigin &value)
Definition: CreateDistributionRequest.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateDistributionRequest::SerializePayload
Aws::String SerializePayload() const override
IpAddressType.h
Aws::Lightsail::Model::CreateDistributionRequest::GetDistributionName
const Aws::String & GetDistributionName() const
Definition: CreateDistributionRequest.h:47
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateDistributionRequest::WithDistributionName
CreateDistributionRequest & WithDistributionName(const char *value)
Definition: CreateDistributionRequest.h:82
Aws::Lightsail::Model::CreateDistributionRequest::WithCacheBehaviors
CreateDistributionRequest & WithCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
Definition: CreateDistributionRequest.h:224
Aws::Lightsail::Model::CreateDistributionRequest::WithTags
CreateDistributionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDistributionRequest.h:394
Aws::Lightsail::Model::CreateDistributionRequest::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: CreateDistributionRequest.h:270
Aws::Lightsail::Model::CreateDistributionRequest::CacheBehaviorsHasBeenSet
bool CacheBehaviorsHasBeenSet() const
Definition: CreateDistributionRequest.h:206
Aws::Lightsail::Model::CreateDistributionRequest::GetBundleId
const Aws::String & GetBundleId() const
Definition: CreateDistributionRequest.h:252
Aws::Lightsail::Model::CreateDistributionRequest::WithDistributionName
CreateDistributionRequest & WithDistributionName(const Aws::String &value)
Definition: CreateDistributionRequest.h:72
Aws::Lightsail::Model::CacheBehavior
Definition: CacheBehavior.h:33
Aws::Lightsail::Model::CreateDistributionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDistributionRequest.h:373