AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFileSystemFromBackupRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/fsx/model/CreateFileSystemWindowsConfiguration.h>
12#include <aws/fsx/model/CreateFileSystemLustreConfiguration.h>
13#include <aws/fsx/model/StorageType.h>
14#include <aws/fsx/model/CreateFileSystemOpenZFSConfiguration.h>
15#include <aws/fsx/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace FSx
22{
23namespace Model
24{
25
33 {
34 public:
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateFileSystemFromBackup"; }
42
43 AWS_FSX_API Aws::String SerializePayload() const override;
44
46
47
49
50 inline const Aws::String& GetBackupId() const{ return m_backupId; }
51 inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
52 inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
53 inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
54 inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
55 inline CreateFileSystemFromBackupRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
56 inline CreateFileSystemFromBackupRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
57 inline CreateFileSystemFromBackupRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;}
59
61
66 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
67 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
68 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
69 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
70 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
73 inline CreateFileSystemFromBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
75
77
88 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
89 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
90 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
91 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
93 inline CreateFileSystemFromBackupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
94 inline CreateFileSystemFromBackupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
95 inline CreateFileSystemFromBackupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
96 inline CreateFileSystemFromBackupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
98
100
106 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
107 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
108 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
109 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
112 inline CreateFileSystemFromBackupRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
113 inline CreateFileSystemFromBackupRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
114 inline CreateFileSystemFromBackupRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
116
118
123 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
126 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
127 inline CreateFileSystemFromBackupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
128 inline CreateFileSystemFromBackupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
129 inline CreateFileSystemFromBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
130 inline CreateFileSystemFromBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132
134
137 inline const CreateFileSystemWindowsConfiguration& GetWindowsConfiguration() const{ return m_windowsConfiguration; }
138 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
139 inline void SetWindowsConfiguration(const CreateFileSystemWindowsConfiguration& value) { m_windowsConfigurationHasBeenSet = true; m_windowsConfiguration = value; }
140 inline void SetWindowsConfiguration(CreateFileSystemWindowsConfiguration&& value) { m_windowsConfigurationHasBeenSet = true; m_windowsConfiguration = std::move(value); }
144
146
147 inline const CreateFileSystemLustreConfiguration& GetLustreConfiguration() const{ return m_lustreConfiguration; }
148 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
149 inline void SetLustreConfiguration(const CreateFileSystemLustreConfiguration& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = value; }
150 inline void SetLustreConfiguration(CreateFileSystemLustreConfiguration&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::move(value); }
154
156
171 inline const StorageType& GetStorageType() const{ return m_storageType; }
172 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
173 inline void SetStorageType(const StorageType& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
174 inline void SetStorageType(StorageType&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
176 inline CreateFileSystemFromBackupRequest& WithStorageType(StorageType&& value) { SetStorageType(std::move(value)); return *this;}
178
180
181 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
182 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
183 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
184 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
185 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
186 inline CreateFileSystemFromBackupRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
187 inline CreateFileSystemFromBackupRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
188 inline CreateFileSystemFromBackupRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
190
192
201 inline const Aws::String& GetFileSystemTypeVersion() const{ return m_fileSystemTypeVersion; }
202 inline bool FileSystemTypeVersionHasBeenSet() const { return m_fileSystemTypeVersionHasBeenSet; }
203 inline void SetFileSystemTypeVersion(const Aws::String& value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion = value; }
204 inline void SetFileSystemTypeVersion(Aws::String&& value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion = std::move(value); }
205 inline void SetFileSystemTypeVersion(const char* value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion.assign(value); }
210
212
215 inline const CreateFileSystemOpenZFSConfiguration& GetOpenZFSConfiguration() const{ return m_openZFSConfiguration; }
216 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
217 inline void SetOpenZFSConfiguration(const CreateFileSystemOpenZFSConfiguration& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = value; }
218 inline void SetOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::move(value); }
222
224
235 inline int GetStorageCapacity() const{ return m_storageCapacity; }
236 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
237 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
240 private:
241
242 Aws::String m_backupId;
243 bool m_backupIdHasBeenSet = false;
244
245 Aws::String m_clientRequestToken;
246 bool m_clientRequestTokenHasBeenSet = false;
247
248 Aws::Vector<Aws::String> m_subnetIds;
249 bool m_subnetIdsHasBeenSet = false;
250
251 Aws::Vector<Aws::String> m_securityGroupIds;
252 bool m_securityGroupIdsHasBeenSet = false;
253
254 Aws::Vector<Tag> m_tags;
255 bool m_tagsHasBeenSet = false;
256
257 CreateFileSystemWindowsConfiguration m_windowsConfiguration;
258 bool m_windowsConfigurationHasBeenSet = false;
259
260 CreateFileSystemLustreConfiguration m_lustreConfiguration;
261 bool m_lustreConfigurationHasBeenSet = false;
262
263 StorageType m_storageType;
264 bool m_storageTypeHasBeenSet = false;
265
266 Aws::String m_kmsKeyId;
267 bool m_kmsKeyIdHasBeenSet = false;
268
269 Aws::String m_fileSystemTypeVersion;
270 bool m_fileSystemTypeVersionHasBeenSet = false;
271
272 CreateFileSystemOpenZFSConfiguration m_openZFSConfiguration;
273 bool m_openZFSConfigurationHasBeenSet = false;
274
275 int m_storageCapacity;
276 bool m_storageCapacityHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace FSx
281} // namespace Aws
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateFileSystemFromBackupRequest & AddSubnetIds(const Aws::String &value)
CreateFileSystemFromBackupRequest & WithWindowsConfiguration(CreateFileSystemWindowsConfiguration &&value)
CreateFileSystemFromBackupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetOpenZFSConfiguration(const CreateFileSystemOpenZFSConfiguration &value)
CreateFileSystemFromBackupRequest & WithBackupId(const char *value)
CreateFileSystemFromBackupRequest & WithClientRequestToken(Aws::String &&value)
CreateFileSystemFromBackupRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateFileSystemFromBackupRequest & WithStorageType(StorageType &&value)
CreateFileSystemFromBackupRequest & AddSecurityGroupIds(const char *value)
CreateFileSystemFromBackupRequest & WithKmsKeyId(const char *value)
CreateFileSystemFromBackupRequest & AddTags(const Tag &value)
CreateFileSystemFromBackupRequest & WithWindowsConfiguration(const CreateFileSystemWindowsConfiguration &value)
CreateFileSystemFromBackupRequest & WithOpenZFSConfiguration(const CreateFileSystemOpenZFSConfiguration &value)
CreateFileSystemFromBackupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFileSystemFromBackupRequest & WithLustreConfiguration(const CreateFileSystemLustreConfiguration &value)
const CreateFileSystemOpenZFSConfiguration & GetOpenZFSConfiguration() const
const CreateFileSystemWindowsConfiguration & GetWindowsConfiguration() const
CreateFileSystemFromBackupRequest & WithKmsKeyId(Aws::String &&value)
CreateFileSystemFromBackupRequest & AddSecurityGroupIds(const Aws::String &value)
CreateFileSystemFromBackupRequest & WithTags(const Aws::Vector< Tag > &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateFileSystemFromBackupRequest & WithClientRequestToken(const char *value)
CreateFileSystemFromBackupRequest & WithStorageType(const StorageType &value)
CreateFileSystemFromBackupRequest & WithBackupId(const Aws::String &value)
CreateFileSystemFromBackupRequest & WithKmsKeyId(const Aws::String &value)
CreateFileSystemFromBackupRequest & AddSubnetIds(Aws::String &&value)
CreateFileSystemFromBackupRequest & WithOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration &&value)
void SetWindowsConfiguration(const CreateFileSystemWindowsConfiguration &value)
CreateFileSystemFromBackupRequest & WithFileSystemTypeVersion(Aws::String &&value)
CreateFileSystemFromBackupRequest & WithFileSystemTypeVersion(const Aws::String &value)
CreateFileSystemFromBackupRequest & AddSecurityGroupIds(Aws::String &&value)
AWS_FSX_API Aws::String SerializePayload() const override
void SetLustreConfiguration(CreateFileSystemLustreConfiguration &&value)
CreateFileSystemFromBackupRequest & WithFileSystemTypeVersion(const char *value)
void SetLustreConfiguration(const CreateFileSystemLustreConfiguration &value)
void SetOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration &&value)
CreateFileSystemFromBackupRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateFileSystemFromBackupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const CreateFileSystemLustreConfiguration & GetLustreConfiguration() const
CreateFileSystemFromBackupRequest & WithStorageCapacity(int value)
CreateFileSystemFromBackupRequest & AddSubnetIds(const char *value)
CreateFileSystemFromBackupRequest & AddTags(Tag &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFileSystemFromBackupRequest & WithLustreConfiguration(CreateFileSystemLustreConfiguration &&value)
CreateFileSystemFromBackupRequest & WithClientRequestToken(const Aws::String &value)
void SetWindowsConfiguration(CreateFileSystemWindowsConfiguration &&value)
CreateFileSystemFromBackupRequest & WithBackupId(Aws::String &&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