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/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fsx/model/FileSystemType.h>
11#include <aws/fsx/model/StorageType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/fsx/model/CreateFileSystemWindowsConfiguration.h>
14#include <aws/fsx/model/CreateFileSystemLustreConfiguration.h>
15#include <aws/fsx/model/CreateFileSystemOntapConfiguration.h>
16#include <aws/fsx/model/CreateFileSystemOpenZFSConfiguration.h>
17#include <aws/fsx/model/Tag.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace FSx
24{
25namespace Model
26{
27
35 {
36 public:
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "CreateFileSystem"; }
44
45 AWS_FSX_API Aws::String SerializePayload() const override;
46
48
49
51
56 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
57 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
58 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
59 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
60 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
62 inline CreateFileSystemRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
63 inline CreateFileSystemRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
65
67
72 inline const FileSystemType& GetFileSystemType() const{ return m_fileSystemType; }
73 inline bool FileSystemTypeHasBeenSet() const { return m_fileSystemTypeHasBeenSet; }
74 inline void SetFileSystemType(const FileSystemType& value) { m_fileSystemTypeHasBeenSet = true; m_fileSystemType = value; }
75 inline void SetFileSystemType(FileSystemType&& value) { m_fileSystemTypeHasBeenSet = true; m_fileSystemType = std::move(value); }
76 inline CreateFileSystemRequest& WithFileSystemType(const FileSystemType& value) { SetFileSystemType(value); return *this;}
77 inline CreateFileSystemRequest& WithFileSystemType(FileSystemType&& value) { SetFileSystemType(std::move(value)); return *this;}
79
81
105 inline int GetStorageCapacity() const{ return m_storageCapacity; }
106 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
107 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
108 inline CreateFileSystemRequest& WithStorageCapacity(int value) { SetStorageCapacity(value); return *this;}
110
112
128 inline const StorageType& GetStorageType() const{ return m_storageType; }
129 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
130 inline void SetStorageType(const StorageType& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
131 inline void SetStorageType(StorageType&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
132 inline CreateFileSystemRequest& WithStorageType(const StorageType& value) { SetStorageType(value); return *this;}
133 inline CreateFileSystemRequest& WithStorageType(StorageType&& value) { SetStorageType(std::move(value)); return *this;}
135
137
154 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
155 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
156 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
157 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
158 inline CreateFileSystemRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
159 inline CreateFileSystemRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
160 inline CreateFileSystemRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
161 inline CreateFileSystemRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
162 inline CreateFileSystemRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
164
166
173 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
174 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
175 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
176 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
179 inline CreateFileSystemRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
180 inline CreateFileSystemRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
181 inline CreateFileSystemRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
183
185
189 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
192 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
193 inline CreateFileSystemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
194 inline CreateFileSystemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
195 inline CreateFileSystemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
196 inline CreateFileSystemRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
198
200
201 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
202 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
203 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
204 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
205 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
206 inline CreateFileSystemRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
207 inline CreateFileSystemRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
208 inline CreateFileSystemRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
210
212
216 inline const CreateFileSystemWindowsConfiguration& GetWindowsConfiguration() const{ return m_windowsConfiguration; }
217 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
218 inline void SetWindowsConfiguration(const CreateFileSystemWindowsConfiguration& value) { m_windowsConfigurationHasBeenSet = true; m_windowsConfiguration = value; }
219 inline void SetWindowsConfiguration(CreateFileSystemWindowsConfiguration&& value) { m_windowsConfigurationHasBeenSet = true; m_windowsConfiguration = std::move(value); }
223
225
226 inline const CreateFileSystemLustreConfiguration& GetLustreConfiguration() const{ return m_lustreConfiguration; }
227 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
228 inline void SetLustreConfiguration(const CreateFileSystemLustreConfiguration& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = value; }
229 inline void SetLustreConfiguration(CreateFileSystemLustreConfiguration&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::move(value); }
233
235
236 inline const CreateFileSystemOntapConfiguration& GetOntapConfiguration() const{ return m_ontapConfiguration; }
237 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
238 inline void SetOntapConfiguration(const CreateFileSystemOntapConfiguration& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = value; }
239 inline void SetOntapConfiguration(CreateFileSystemOntapConfiguration&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::move(value); }
243
245
260 inline const Aws::String& GetFileSystemTypeVersion() const{ return m_fileSystemTypeVersion; }
261 inline bool FileSystemTypeVersionHasBeenSet() const { return m_fileSystemTypeVersionHasBeenSet; }
262 inline void SetFileSystemTypeVersion(const Aws::String& value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion = value; }
263 inline void SetFileSystemTypeVersion(Aws::String&& value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion = std::move(value); }
264 inline void SetFileSystemTypeVersion(const char* value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion.assign(value); }
267 inline CreateFileSystemRequest& WithFileSystemTypeVersion(const char* value) { SetFileSystemTypeVersion(value); return *this;}
269
271
274 inline const CreateFileSystemOpenZFSConfiguration& GetOpenZFSConfiguration() const{ return m_openZFSConfiguration; }
275 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
276 inline void SetOpenZFSConfiguration(const CreateFileSystemOpenZFSConfiguration& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = value; }
277 inline void SetOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::move(value); }
281 private:
282
283 Aws::String m_clientRequestToken;
284 bool m_clientRequestTokenHasBeenSet = false;
285
286 FileSystemType m_fileSystemType;
287 bool m_fileSystemTypeHasBeenSet = false;
288
289 int m_storageCapacity;
290 bool m_storageCapacityHasBeenSet = false;
291
292 StorageType m_storageType;
293 bool m_storageTypeHasBeenSet = false;
294
295 Aws::Vector<Aws::String> m_subnetIds;
296 bool m_subnetIdsHasBeenSet = false;
297
298 Aws::Vector<Aws::String> m_securityGroupIds;
299 bool m_securityGroupIdsHasBeenSet = false;
300
301 Aws::Vector<Tag> m_tags;
302 bool m_tagsHasBeenSet = false;
303
304 Aws::String m_kmsKeyId;
305 bool m_kmsKeyIdHasBeenSet = false;
306
307 CreateFileSystemWindowsConfiguration m_windowsConfiguration;
308 bool m_windowsConfigurationHasBeenSet = false;
309
310 CreateFileSystemLustreConfiguration m_lustreConfiguration;
311 bool m_lustreConfigurationHasBeenSet = false;
312
313 CreateFileSystemOntapConfiguration m_ontapConfiguration;
314 bool m_ontapConfigurationHasBeenSet = false;
315
316 Aws::String m_fileSystemTypeVersion;
317 bool m_fileSystemTypeVersionHasBeenSet = false;
318
319 CreateFileSystemOpenZFSConfiguration m_openZFSConfiguration;
320 bool m_openZFSConfigurationHasBeenSet = false;
321 };
322
323} // namespace Model
324} // namespace FSx
325} // namespace Aws
void SetWindowsConfiguration(CreateFileSystemWindowsConfiguration &&value)
void SetLustreConfiguration(CreateFileSystemLustreConfiguration &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateFileSystemRequest & WithOntapConfiguration(CreateFileSystemOntapConfiguration &&value)
CreateFileSystemRequest & WithOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
CreateFileSystemRequest & AddSecurityGroupIds(Aws::String &&value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateFileSystemRequest & WithFileSystemType(FileSystemType &&value)
CreateFileSystemRequest & WithClientRequestToken(const char *value)
void SetWindowsConfiguration(const CreateFileSystemWindowsConfiguration &value)
CreateFileSystemRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFileSystemRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateFileSystemRequest & WithFileSystemTypeVersion(const char *value)
CreateFileSystemRequest & WithLustreConfiguration(CreateFileSystemLustreConfiguration &&value)
CreateFileSystemRequest & AddTags(const Tag &value)
CreateFileSystemRequest & AddSecurityGroupIds(const char *value)
CreateFileSystemRequest & AddSecurityGroupIds(const Aws::String &value)
void SetOntapConfiguration(CreateFileSystemOntapConfiguration &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const CreateFileSystemLustreConfiguration & GetLustreConfiguration() const
CreateFileSystemRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFileSystemRequest & WithFileSystemType(const FileSystemType &value)
CreateFileSystemRequest & WithFileSystemTypeVersion(Aws::String &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateFileSystemRequest & AddSubnetIds(const Aws::String &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFileSystemRequest & AddTags(Tag &&value)
CreateFileSystemRequest & WithKmsKeyId(const char *value)
const FileSystemType & GetFileSystemType() const
virtual const char * GetServiceRequestName() const override
CreateFileSystemRequest & WithLustreConfiguration(const CreateFileSystemLustreConfiguration &value)
void SetFileSystemTypeVersion(const Aws::String &value)
CreateFileSystemRequest & WithFileSystemTypeVersion(const Aws::String &value)
void SetClientRequestToken(const Aws::String &value)
CreateFileSystemRequest & AddSubnetIds(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateFileSystemRequest & WithWindowsConfiguration(const CreateFileSystemWindowsConfiguration &value)
CreateFileSystemRequest & WithClientRequestToken(Aws::String &&value)
void SetFileSystemType(const FileSystemType &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const CreateFileSystemWindowsConfiguration & GetWindowsConfiguration() const
CreateFileSystemRequest & AddSubnetIds(Aws::String &&value)
CreateFileSystemRequest & WithStorageType(StorageType &&value)
CreateFileSystemRequest & WithStorageType(const StorageType &value)
CreateFileSystemRequest & WithKmsKeyId(Aws::String &&value)
CreateFileSystemRequest & WithKmsKeyId(const Aws::String &value)
CreateFileSystemRequest & WithOntapConfiguration(const CreateFileSystemOntapConfiguration &value)
void SetOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration &&value)
CreateFileSystemRequest & WithWindowsConfiguration(CreateFileSystemWindowsConfiguration &&value)
CreateFileSystemRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateFileSystemRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const CreateFileSystemOntapConfiguration & GetOntapConfiguration() const
CreateFileSystemRequest & WithStorageCapacity(int value)
void SetOpenZFSConfiguration(const CreateFileSystemOpenZFSConfiguration &value)
void SetLustreConfiguration(const CreateFileSystemLustreConfiguration &value)
CreateFileSystemRequest & WithOpenZFSConfiguration(const CreateFileSystemOpenZFSConfiguration &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetOntapConfiguration(const CreateFileSystemOntapConfiguration &value)
CreateFileSystemRequest & WithClientRequestToken(const Aws::String &value)
const CreateFileSystemOpenZFSConfiguration & GetOpenZFSConfiguration() const
CreateFileSystemRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Tag > & GetTags() const
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