AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCreationToken(const Aws::String& value) { m_creationTokenHasBeenSet = true; m_creationToken = value; }
48 inline void SetCreationToken(Aws::String&& value) { m_creationTokenHasBeenSet = true; m_creationToken = std::move(value); }
49 inline void SetCreationToken(const char* value) { m_creationTokenHasBeenSet = true; m_creationToken.assign(value); }
50 inline CreateFileSystemRequest& WithCreationToken(const Aws::String& value) { SetCreationToken(value); return *this;}
51 inline CreateFileSystemRequest& WithCreationToken(Aws::String&& value) { SetCreationToken(std::move(value)); return *this;}
52 inline CreateFileSystemRequest& WithCreationToken(const char* value) { SetCreationToken(value); return *this;}
54
56
68 inline const PerformanceMode& GetPerformanceMode() const{ return m_performanceMode; }
69 inline bool PerformanceModeHasBeenSet() const { return m_performanceModeHasBeenSet; }
70 inline void SetPerformanceMode(const PerformanceMode& value) { m_performanceModeHasBeenSet = true; m_performanceMode = value; }
71 inline void SetPerformanceMode(PerformanceMode&& value) { m_performanceModeHasBeenSet = true; m_performanceMode = std::move(value); }
73 inline CreateFileSystemRequest& WithPerformanceMode(PerformanceMode&& value) { SetPerformanceMode(std::move(value)); return *this;}
75
77
84 inline bool GetEncrypted() const{ return m_encrypted; }
85 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
86 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
87 inline CreateFileSystemRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
89
91
109 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
110 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
111 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
112 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
113 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
114 inline CreateFileSystemRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
115 inline CreateFileSystemRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
116 inline CreateFileSystemRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
118
120
132 inline const ThroughputMode& GetThroughputMode() const{ return m_throughputMode; }
133 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
134 inline void SetThroughputMode(const ThroughputMode& value) { m_throughputModeHasBeenSet = true; m_throughputMode = value; }
135 inline void SetThroughputMode(ThroughputMode&& value) { m_throughputModeHasBeenSet = true; m_throughputMode = std::move(value); }
136 inline CreateFileSystemRequest& WithThroughputMode(const ThroughputMode& value) { SetThroughputMode(value); return *this;}
137 inline CreateFileSystemRequest& WithThroughputMode(ThroughputMode&& value) { SetThroughputMode(std::move(value)); return *this;}
139
141
150 inline double GetProvisionedThroughputInMibps() const{ return m_provisionedThroughputInMibps; }
151 inline bool ProvisionedThroughputInMibpsHasBeenSet() const { return m_provisionedThroughputInMibpsHasBeenSet; }
152 inline void SetProvisionedThroughputInMibps(double value) { m_provisionedThroughputInMibpsHasBeenSet = true; m_provisionedThroughputInMibps = value; }
155
157
167 inline const Aws::String& GetAvailabilityZoneName() const{ return m_availabilityZoneName; }
168 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
169 inline void SetAvailabilityZoneName(const Aws::String& value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName = value; }
170 inline void SetAvailabilityZoneName(Aws::String&& value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName = std::move(value); }
171 inline void SetAvailabilityZoneName(const char* value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName.assign(value); }
173 inline CreateFileSystemRequest& WithAvailabilityZoneName(Aws::String&& value) { SetAvailabilityZoneName(std::move(value)); return *this;}
174 inline CreateFileSystemRequest& WithAvailabilityZoneName(const char* value) { SetAvailabilityZoneName(value); return *this;}
176
178
190 inline bool GetBackup() const{ return m_backup; }
191 inline bool BackupHasBeenSet() const { return m_backupHasBeenSet; }
192 inline void SetBackup(bool value) { m_backupHasBeenSet = true; m_backup = value; }
193 inline CreateFileSystemRequest& WithBackup(bool value) { SetBackup(value); return *this;}
195
197
206 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
209 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
210 inline CreateFileSystemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
211 inline CreateFileSystemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
212 inline CreateFileSystemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
213 inline CreateFileSystemRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
215 private:
216
217 Aws::String m_creationToken;
218 bool m_creationTokenHasBeenSet = false;
219
220 PerformanceMode m_performanceMode;
221 bool m_performanceModeHasBeenSet = false;
222
223 bool m_encrypted;
224 bool m_encryptedHasBeenSet = false;
225
226 Aws::String m_kmsKeyId;
227 bool m_kmsKeyIdHasBeenSet = false;
228
229 ThroughputMode m_throughputMode;
230 bool m_throughputModeHasBeenSet = false;
231
232 double m_provisionedThroughputInMibps;
233 bool m_provisionedThroughputInMibpsHasBeenSet = false;
234
235 Aws::String m_availabilityZoneName;
236 bool m_availabilityZoneNameHasBeenSet = false;
237
238 bool m_backup;
239 bool m_backupHasBeenSet = false;
240
241 Aws::Vector<Tag> m_tags;
242 bool m_tagsHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace EFS
247} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
CreateFileSystemRequest & AddTags(Tag &&value)
const ThroughputMode & GetThroughputMode() const
CreateFileSystemRequest & WithProvisionedThroughputInMibps(double value)
CreateFileSystemRequest & WithCreationToken(Aws::String &&value)
CreateFileSystemRequest & WithAvailabilityZoneName(const Aws::String &value)
CreateFileSystemRequest & WithKmsKeyId(const Aws::String &value)
CreateFileSystemRequest & WithCreationToken(const Aws::String &value)
CreateFileSystemRequest & WithEncrypted(bool value)
CreateFileSystemRequest & WithCreationToken(const char *value)
CreateFileSystemRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFileSystemRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFileSystemRequest & WithAvailabilityZoneName(const char *value)
CreateFileSystemRequest & WithAvailabilityZoneName(Aws::String &&value)
CreateFileSystemRequest & WithThroughputMode(const ThroughputMode &value)
void SetPerformanceMode(PerformanceMode &&value)
CreateFileSystemRequest & WithBackup(bool value)
void SetThroughputMode(const ThroughputMode &value)
const PerformanceMode & GetPerformanceMode() const
CreateFileSystemRequest & WithPerformanceMode(const PerformanceMode &value)
CreateFileSystemRequest & AddTags(const Tag &value)
void SetPerformanceMode(const PerformanceMode &value)
AWS_EFS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetCreationToken(const Aws::String &value)
CreateFileSystemRequest & WithKmsKeyId(const char *value)
void SetAvailabilityZoneName(const Aws::String &value)
CreateFileSystemRequest & WithThroughputMode(ThroughputMode &&value)
CreateFileSystemRequest & WithKmsKeyId(Aws::String &&value)
CreateFileSystemRequest & WithPerformanceMode(PerformanceMode &&value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector