AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFileSystemRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticfilesystem/model/PerformanceMode.h>
11#include <aws/elasticfilesystem/model/ThroughputMode.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticfilesystem/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EFS
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EFS_API CreateFileSystemRequest() = default;
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 "CreateFileSystem"; }
36
37 AWS_EFS_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetCreationToken() const { return m_creationToken; }
46 inline bool CreationTokenHasBeenSet() const { return m_creationTokenHasBeenSet; }
47 template<typename CreationTokenT = Aws::String>
48 void SetCreationToken(CreationTokenT&& value) { m_creationTokenHasBeenSet = true; m_creationToken = std::forward<CreationTokenT>(value); }
49 template<typename CreationTokenT = Aws::String>
50 CreateFileSystemRequest& WithCreationToken(CreationTokenT&& value) { SetCreationToken(std::forward<CreationTokenT>(value)); return *this;}
52
54
66 inline PerformanceMode GetPerformanceMode() const { return m_performanceMode; }
67 inline bool PerformanceModeHasBeenSet() const { return m_performanceModeHasBeenSet; }
68 inline void SetPerformanceMode(PerformanceMode value) { m_performanceModeHasBeenSet = true; m_performanceMode = value; }
71
73
80 inline bool GetEncrypted() const { return m_encrypted; }
81 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
82 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
83 inline CreateFileSystemRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
85
87
105 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
106 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
107 template<typename KmsKeyIdT = Aws::String>
108 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
109 template<typename KmsKeyIdT = Aws::String>
110 CreateFileSystemRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
112
114
126 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
127 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
128 inline void SetThroughputMode(ThroughputMode value) { m_throughputModeHasBeenSet = true; m_throughputMode = value; }
131
133
142 inline double GetProvisionedThroughputInMibps() const { return m_provisionedThroughputInMibps; }
143 inline bool ProvisionedThroughputInMibpsHasBeenSet() const { return m_provisionedThroughputInMibpsHasBeenSet; }
144 inline void SetProvisionedThroughputInMibps(double value) { m_provisionedThroughputInMibpsHasBeenSet = true; m_provisionedThroughputInMibps = value; }
147
149
159 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
160 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
161 template<typename AvailabilityZoneNameT = Aws::String>
162 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value); }
163 template<typename AvailabilityZoneNameT = Aws::String>
164 CreateFileSystemRequest& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) { SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value)); return *this;}
166
168
180 inline bool GetBackup() const { return m_backup; }
181 inline bool BackupHasBeenSet() const { return m_backupHasBeenSet; }
182 inline void SetBackup(bool value) { m_backupHasBeenSet = true; m_backup = value; }
183 inline CreateFileSystemRequest& WithBackup(bool value) { SetBackup(value); return *this;}
185
187
196 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template<typename TagsT = Aws::Vector<Tag>>
199 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
200 template<typename TagsT = Aws::Vector<Tag>>
201 CreateFileSystemRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
202 template<typename TagsT = Tag>
203 CreateFileSystemRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
205 private:
206
208 bool m_creationTokenHasBeenSet = true;
209
210 PerformanceMode m_performanceMode{PerformanceMode::NOT_SET};
211 bool m_performanceModeHasBeenSet = false;
212
213 bool m_encrypted{false};
214 bool m_encryptedHasBeenSet = false;
215
216 Aws::String m_kmsKeyId;
217 bool m_kmsKeyIdHasBeenSet = false;
218
219 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
220 bool m_throughputModeHasBeenSet = false;
221
222 double m_provisionedThroughputInMibps{0.0};
223 bool m_provisionedThroughputInMibpsHasBeenSet = false;
224
225 Aws::String m_availabilityZoneName;
226 bool m_availabilityZoneNameHasBeenSet = false;
227
228 bool m_backup{false};
229 bool m_backupHasBeenSet = false;
230
231 Aws::Vector<Tag> m_tags;
232 bool m_tagsHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace EFS
237} // 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