AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
35 AWS_FSX_API CreateFileSystemFromBackupRequest() = default;
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 template<typename BackupIdT = Aws::String>
53 void SetBackupId(BackupIdT&& value) { m_backupIdHasBeenSet = true; m_backupId = std::forward<BackupIdT>(value); }
54 template<typename BackupIdT = Aws::String>
55 CreateFileSystemFromBackupRequest& WithBackupId(BackupIdT&& value) { SetBackupId(std::forward<BackupIdT>(value)); return *this;}
57
59
64 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 template<typename ClientRequestTokenT = Aws::String>
67 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
68 template<typename ClientRequestTokenT = Aws::String>
69 CreateFileSystemFromBackupRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
71
73
84 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
85 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
86 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
87 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
88 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
89 CreateFileSystemFromBackupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
90 template<typename SubnetIdsT = Aws::String>
91 CreateFileSystemFromBackupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
93
95
101 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
102 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
103 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
104 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
105 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
106 CreateFileSystemFromBackupRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
107 template<typename SecurityGroupIdsT = Aws::String>
108 CreateFileSystemFromBackupRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
110
112
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template<typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
121 template<typename TagsT = Aws::Vector<Tag>>
122 CreateFileSystemFromBackupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
123 template<typename TagsT = Tag>
124 CreateFileSystemFromBackupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
126
128
131 inline const CreateFileSystemWindowsConfiguration& GetWindowsConfiguration() const { return m_windowsConfiguration; }
132 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
133 template<typename WindowsConfigurationT = CreateFileSystemWindowsConfiguration>
134 void SetWindowsConfiguration(WindowsConfigurationT&& value) { m_windowsConfigurationHasBeenSet = true; m_windowsConfiguration = std::forward<WindowsConfigurationT>(value); }
135 template<typename WindowsConfigurationT = CreateFileSystemWindowsConfiguration>
136 CreateFileSystemFromBackupRequest& WithWindowsConfiguration(WindowsConfigurationT&& value) { SetWindowsConfiguration(std::forward<WindowsConfigurationT>(value)); return *this;}
138
140
141 inline const CreateFileSystemLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
142 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
143 template<typename LustreConfigurationT = CreateFileSystemLustreConfiguration>
144 void SetLustreConfiguration(LustreConfigurationT&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::forward<LustreConfigurationT>(value); }
145 template<typename LustreConfigurationT = CreateFileSystemLustreConfiguration>
146 CreateFileSystemFromBackupRequest& WithLustreConfiguration(LustreConfigurationT&& value) { SetLustreConfiguration(std::forward<LustreConfigurationT>(value)); return *this;}
148
150
169 inline StorageType GetStorageType() const { return m_storageType; }
170 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
171 inline void SetStorageType(StorageType value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
174
176
177 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
178 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
179 template<typename KmsKeyIdT = Aws::String>
180 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
181 template<typename KmsKeyIdT = Aws::String>
182 CreateFileSystemFromBackupRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
184
186
193 inline const Aws::String& GetFileSystemTypeVersion() const { return m_fileSystemTypeVersion; }
194 inline bool FileSystemTypeVersionHasBeenSet() const { return m_fileSystemTypeVersionHasBeenSet; }
195 template<typename FileSystemTypeVersionT = Aws::String>
196 void SetFileSystemTypeVersion(FileSystemTypeVersionT&& value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion = std::forward<FileSystemTypeVersionT>(value); }
197 template<typename FileSystemTypeVersionT = Aws::String>
198 CreateFileSystemFromBackupRequest& WithFileSystemTypeVersion(FileSystemTypeVersionT&& value) { SetFileSystemTypeVersion(std::forward<FileSystemTypeVersionT>(value)); return *this;}
200
202
205 inline const CreateFileSystemOpenZFSConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
206 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
207 template<typename OpenZFSConfigurationT = CreateFileSystemOpenZFSConfiguration>
208 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value); }
209 template<typename OpenZFSConfigurationT = CreateFileSystemOpenZFSConfiguration>
210 CreateFileSystemFromBackupRequest& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) { SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value)); return *this;}
212
214
225 inline int GetStorageCapacity() const { return m_storageCapacity; }
226 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
227 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
230 private:
231
232 Aws::String m_backupId;
233 bool m_backupIdHasBeenSet = false;
234
235 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
236 bool m_clientRequestTokenHasBeenSet = true;
237
238 Aws::Vector<Aws::String> m_subnetIds;
239 bool m_subnetIdsHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_securityGroupIds;
242 bool m_securityGroupIdsHasBeenSet = false;
243
244 Aws::Vector<Tag> m_tags;
245 bool m_tagsHasBeenSet = false;
246
247 CreateFileSystemWindowsConfiguration m_windowsConfiguration;
248 bool m_windowsConfigurationHasBeenSet = false;
249
250 CreateFileSystemLustreConfiguration m_lustreConfiguration;
251 bool m_lustreConfigurationHasBeenSet = false;
252
253 StorageType m_storageType{StorageType::NOT_SET};
254 bool m_storageTypeHasBeenSet = false;
255
256 Aws::String m_kmsKeyId;
257 bool m_kmsKeyIdHasBeenSet = false;
258
259 Aws::String m_fileSystemTypeVersion;
260 bool m_fileSystemTypeVersionHasBeenSet = false;
261
262 CreateFileSystemOpenZFSConfiguration m_openZFSConfiguration;
263 bool m_openZFSConfigurationHasBeenSet = false;
264
265 int m_storageCapacity{0};
266 bool m_storageCapacityHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace FSx
271} // namespace Aws
CreateFileSystemFromBackupRequest & WithFileSystemTypeVersion(FileSystemTypeVersionT &&value)
CreateFileSystemFromBackupRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateFileSystemFromBackupRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
CreateFileSystemFromBackupRequest & AddSubnetIds(SubnetIdsT &&value)
const CreateFileSystemOpenZFSConfiguration & GetOpenZFSConfiguration() const
const CreateFileSystemWindowsConfiguration & GetWindowsConfiguration() const
CreateFileSystemFromBackupRequest & AddTags(TagsT &&value)
CreateFileSystemFromBackupRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
CreateFileSystemFromBackupRequest & WithStorageType(StorageType value)
CreateFileSystemFromBackupRequest & WithOpenZFSConfiguration(OpenZFSConfigurationT &&value)
CreateFileSystemFromBackupRequest & WithSubnetIds(SubnetIdsT &&value)
CreateFileSystemFromBackupRequest & WithLustreConfiguration(LustreConfigurationT &&value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateFileSystemFromBackupRequest & WithBackupId(BackupIdT &&value)
CreateFileSystemFromBackupRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateFileSystemFromBackupRequest & WithTags(TagsT &&value)
const CreateFileSystemLustreConfiguration & GetLustreConfiguration() const
CreateFileSystemFromBackupRequest & WithStorageCapacity(int value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFileSystemFromBackupRequest & WithWindowsConfiguration(WindowsConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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