AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateFileSystemRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticfilesystem/EFSRequest.h>
11#include <aws/elasticfilesystem/EFS_EXPORTS.h>
12#include <aws/elasticfilesystem/model/PerformanceMode.h>
13#include <aws/elasticfilesystem/model/Tag.h>
14#include <aws/elasticfilesystem/model/ThroughputMode.h>
15
16#include <utility>
17
18namespace Aws {
19namespace EFS {
20namespace Model {
21
25 public:
26 AWS_EFS_API CreateFileSystemRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFileSystem"; }
33
34 AWS_EFS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetCreationToken() const { return m_creationToken; }
42 inline bool CreationTokenHasBeenSet() const { return m_creationTokenHasBeenSet; }
43 template <typename CreationTokenT = Aws::String>
44 void SetCreationToken(CreationTokenT&& value) {
45 m_creationTokenHasBeenSet = true;
46 m_creationToken = std::forward<CreationTokenT>(value);
47 }
48 template <typename CreationTokenT = Aws::String>
49 CreateFileSystemRequest& WithCreationToken(CreationTokenT&& value) {
50 SetCreationToken(std::forward<CreationTokenT>(value));
51 return *this;
52 }
54
56
68 inline PerformanceMode GetPerformanceMode() const { return m_performanceMode; }
69 inline bool PerformanceModeHasBeenSet() const { return m_performanceModeHasBeenSet; }
71 m_performanceModeHasBeenSet = true;
72 m_performanceMode = value;
73 }
75 SetPerformanceMode(value);
76 return *this;
77 }
79
81
88 inline bool GetEncrypted() const { return m_encrypted; }
89 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
90 inline void SetEncrypted(bool value) {
91 m_encryptedHasBeenSet = true;
92 m_encrypted = value;
93 }
95 SetEncrypted(value);
96 return *this;
97 }
99
101
119 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
120 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
121 template <typename KmsKeyIdT = Aws::String>
122 void SetKmsKeyId(KmsKeyIdT&& value) {
123 m_kmsKeyIdHasBeenSet = true;
124 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
125 }
126 template <typename KmsKeyIdT = Aws::String>
128 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
129 return *this;
130 }
132
134
146 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
147 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
149 m_throughputModeHasBeenSet = true;
150 m_throughputMode = value;
151 }
153 SetThroughputMode(value);
154 return *this;
155 }
157
159
168 inline double GetProvisionedThroughputInMibps() const { return m_provisionedThroughputInMibps; }
169 inline bool ProvisionedThroughputInMibpsHasBeenSet() const { return m_provisionedThroughputInMibpsHasBeenSet; }
170 inline void SetProvisionedThroughputInMibps(double value) {
171 m_provisionedThroughputInMibpsHasBeenSet = true;
172 m_provisionedThroughputInMibps = value;
173 }
176 return *this;
177 }
179
181
191 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
192 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
193 template <typename AvailabilityZoneNameT = Aws::String>
194 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) {
195 m_availabilityZoneNameHasBeenSet = true;
196 m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value);
197 }
198 template <typename AvailabilityZoneNameT = Aws::String>
199 CreateFileSystemRequest& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) {
200 SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value));
201 return *this;
202 }
204
206
218 inline bool GetBackup() const { return m_backup; }
219 inline bool BackupHasBeenSet() const { return m_backupHasBeenSet; }
220 inline void SetBackup(bool value) {
221 m_backupHasBeenSet = true;
222 m_backup = value;
223 }
225 SetBackup(value);
226 return *this;
227 }
229
231
240 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
241 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
242 template <typename TagsT = Aws::Vector<Tag>>
243 void SetTags(TagsT&& value) {
244 m_tagsHasBeenSet = true;
245 m_tags = std::forward<TagsT>(value);
246 }
247 template <typename TagsT = Aws::Vector<Tag>>
249 SetTags(std::forward<TagsT>(value));
250 return *this;
251 }
252 template <typename TagsT = Tag>
254 m_tagsHasBeenSet = true;
255 m_tags.emplace_back(std::forward<TagsT>(value));
256 return *this;
257 }
259 private:
261
262 PerformanceMode m_performanceMode{PerformanceMode::NOT_SET};
263
264 bool m_encrypted{false};
265
266 Aws::String m_kmsKeyId;
267
268 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
269
270 double m_provisionedThroughputInMibps{0.0};
271
272 Aws::String m_availabilityZoneName;
273
274 bool m_backup{false};
275
276 Aws::Vector<Tag> m_tags;
277 bool m_creationTokenHasBeenSet = true;
278 bool m_performanceModeHasBeenSet = false;
279 bool m_encryptedHasBeenSet = false;
280 bool m_kmsKeyIdHasBeenSet = false;
281 bool m_throughputModeHasBeenSet = false;
282 bool m_provisionedThroughputInMibpsHasBeenSet = false;
283 bool m_availabilityZoneNameHasBeenSet = false;
284 bool m_backupHasBeenSet = false;
285 bool m_tagsHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace EFS
290} // namespace Aws
void SetAvailabilityZoneName(AvailabilityZoneNameT &&value)
CreateFileSystemRequest & WithProvisionedThroughputInMibps(double value)
CreateFileSystemRequest & WithTags(TagsT &&value)
CreateFileSystemRequest & WithEncrypted(bool value)
CreateFileSystemRequest & AddTags(TagsT &&value)
CreateFileSystemRequest & WithBackup(bool value)
AWS_EFS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateFileSystemRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateFileSystemRequest & WithCreationToken(CreationTokenT &&value)
CreateFileSystemRequest & WithAvailabilityZoneName(AvailabilityZoneNameT &&value)
AWS_EFS_API CreateFileSystemRequest()=default
CreateFileSystemRequest & WithThroughputMode(ThroughputMode value)
CreateFileSystemRequest & WithPerformanceMode(PerformanceMode value)
const Aws::Vector< Tag > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector