AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDistributionRequest.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/IpAddressType.h>
15#include <aws/lightsail/model/ViewerMinimumTlsProtocolVersionEnum.h>
16#include <aws/lightsail/model/CacheBehaviorPerPath.h>
17#include <aws/lightsail/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Lightsail
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_LIGHTSAIL_API CreateDistributionRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateDistribution"; }
39
40 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
41
43
44
46
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 CreateDistributionRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
56 inline CreateDistributionRequest& 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 CreateDistributionRequest& WithOrigin(const InputOrigin& value) { SetOrigin(value); return *this;}
70 inline CreateDistributionRequest& 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
90 inline const CacheSettings& GetCacheBehaviorSettings() const{ return m_cacheBehaviorSettings; }
91 inline bool CacheBehaviorSettingsHasBeenSet() const { return m_cacheBehaviorSettingsHasBeenSet; }
92 inline void SetCacheBehaviorSettings(const CacheSettings& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = value; }
93 inline void SetCacheBehaviorSettings(CacheSettings&& value) { m_cacheBehaviorSettingsHasBeenSet = true; m_cacheBehaviorSettings = std::move(value); }
97
99
103 inline const Aws::Vector<CacheBehaviorPerPath>& GetCacheBehaviors() const{ return m_cacheBehaviors; }
104 inline bool CacheBehaviorsHasBeenSet() const { return m_cacheBehaviorsHasBeenSet; }
105 inline void SetCacheBehaviors(const Aws::Vector<CacheBehaviorPerPath>& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
106 inline void SetCacheBehaviors(Aws::Vector<CacheBehaviorPerPath>&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = std::move(value); }
109 inline CreateDistributionRequest& AddCacheBehaviors(const CacheBehaviorPerPath& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(value); return *this; }
110 inline CreateDistributionRequest& AddCacheBehaviors(CacheBehaviorPerPath&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors.push_back(std::move(value)); return *this; }
112
114
121 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
122 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
123 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
124 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
125 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
126 inline CreateDistributionRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
127 inline CreateDistributionRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
128 inline CreateDistributionRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
130
132
137 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
138 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
139 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
140 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
141 inline CreateDistributionRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
142 inline CreateDistributionRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
144
146
151 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline CreateDistributionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
156 inline CreateDistributionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
157 inline CreateDistributionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline CreateDistributionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160
162
168 inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
169 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
170 inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
171 inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
172 inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
174 inline CreateDistributionRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
175 inline CreateDistributionRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
177
179
182 inline const ViewerMinimumTlsProtocolVersionEnum& GetViewerMinimumTlsProtocolVersion() const{ return m_viewerMinimumTlsProtocolVersion; }
183 inline bool ViewerMinimumTlsProtocolVersionHasBeenSet() const { return m_viewerMinimumTlsProtocolVersionHasBeenSet; }
184 inline void SetViewerMinimumTlsProtocolVersion(const ViewerMinimumTlsProtocolVersionEnum& value) { m_viewerMinimumTlsProtocolVersionHasBeenSet = true; m_viewerMinimumTlsProtocolVersion = value; }
185 inline void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum&& value) { m_viewerMinimumTlsProtocolVersionHasBeenSet = true; m_viewerMinimumTlsProtocolVersion = std::move(value); }
189 private:
190
191 Aws::String m_distributionName;
192 bool m_distributionNameHasBeenSet = false;
193
194 InputOrigin m_origin;
195 bool m_originHasBeenSet = false;
196
197 CacheBehavior m_defaultCacheBehavior;
198 bool m_defaultCacheBehaviorHasBeenSet = false;
199
200 CacheSettings m_cacheBehaviorSettings;
201 bool m_cacheBehaviorSettingsHasBeenSet = false;
202
203 Aws::Vector<CacheBehaviorPerPath> m_cacheBehaviors;
204 bool m_cacheBehaviorsHasBeenSet = false;
205
206 Aws::String m_bundleId;
207 bool m_bundleIdHasBeenSet = false;
208
209 IpAddressType m_ipAddressType;
210 bool m_ipAddressTypeHasBeenSet = false;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214
215 Aws::String m_certificateName;
216 bool m_certificateNameHasBeenSet = false;
217
218 ViewerMinimumTlsProtocolVersionEnum m_viewerMinimumTlsProtocolVersion;
219 bool m_viewerMinimumTlsProtocolVersionHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace Lightsail
224} // namespace Aws
void SetViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum &&value)
const ViewerMinimumTlsProtocolVersionEnum & GetViewerMinimumTlsProtocolVersion() const
CreateDistributionRequest & WithCertificateName(const char *value)
void SetCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
CreateDistributionRequest & AddCacheBehaviors(const CacheBehaviorPerPath &value)
CreateDistributionRequest & AddCacheBehaviors(CacheBehaviorPerPath &&value)
CreateDistributionRequest & WithDistributionName(const char *value)
CreateDistributionRequest & WithOrigin(InputOrigin &&value)
CreateDistributionRequest & WithDistributionName(const Aws::String &value)
CreateDistributionRequest & WithCertificateName(const Aws::String &value)
CreateDistributionRequest & WithCacheBehaviors(Aws::Vector< CacheBehaviorPerPath > &&value)
CreateDistributionRequest & WithBundleId(Aws::String &&value)
CreateDistributionRequest & WithTags(const Aws::Vector< Tag > &value)
void SetCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDistributionRequest & WithIpAddressType(IpAddressType &&value)
CreateDistributionRequest & AddTags(Tag &&value)
const Aws::Vector< CacheBehaviorPerPath > & GetCacheBehaviors() const
CreateDistributionRequest & WithBundleId(const Aws::String &value)
CreateDistributionRequest & WithDistributionName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateDistributionRequest & WithCertificateName(Aws::String &&value)
CreateDistributionRequest & WithIpAddressType(const IpAddressType &value)
CreateDistributionRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
CreateDistributionRequest & WithBundleId(const char *value)
CreateDistributionRequest & WithViewerMinimumTlsProtocolVersion(const ViewerMinimumTlsProtocolVersionEnum &value)
CreateDistributionRequest & WithCacheBehaviors(const Aws::Vector< CacheBehaviorPerPath > &value)
CreateDistributionRequest & WithViewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum &&value)
CreateDistributionRequest & WithDefaultCacheBehavior(CacheBehavior &&value)
CreateDistributionRequest & WithCacheBehaviorSettings(CacheSettings &&value)
CreateDistributionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDistributionRequest & WithCacheBehaviorSettings(const CacheSettings &value)
void SetViewerMinimumTlsProtocolVersion(const ViewerMinimumTlsProtocolVersionEnum &value)
CreateDistributionRequest & WithDefaultCacheBehavior(const CacheBehavior &value)
CreateDistributionRequest & WithOrigin(const InputOrigin &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