AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateFileSystemRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/FSxRequest.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/NetworkType.h>
12#include <aws/fsx/model/StorageType.h>
13#include <aws/fsx/model/UpdateFileSystemLustreConfiguration.h>
14#include <aws/fsx/model/UpdateFileSystemOntapConfiguration.h>
15#include <aws/fsx/model/UpdateFileSystemOpenZFSConfiguration.h>
16#include <aws/fsx/model/UpdateFileSystemWindowsConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace FSx {
22namespace Model {
23
31 public:
32 AWS_FSX_API UpdateFileSystemRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateFileSystem"; }
39
40 AWS_FSX_API Aws::String SerializePayload() const override;
41
43
45
48 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
49 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
50 template <typename FileSystemIdT = Aws::String>
51 void SetFileSystemId(FileSystemIdT&& value) {
52 m_fileSystemIdHasBeenSet = true;
53 m_fileSystemId = std::forward<FileSystemIdT>(value);
54 }
55 template <typename FileSystemIdT = Aws::String>
56 UpdateFileSystemRequest& WithFileSystemId(FileSystemIdT&& value) {
57 SetFileSystemId(std::forward<FileSystemIdT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
69 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
70 template <typename ClientRequestTokenT = Aws::String>
71 void SetClientRequestToken(ClientRequestTokenT&& value) {
72 m_clientRequestTokenHasBeenSet = true;
73 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
74 }
75 template <typename ClientRequestTokenT = Aws::String>
76 UpdateFileSystemRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
77 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
78 return *this;
79 }
81
83
122 inline int GetStorageCapacity() const { return m_storageCapacity; }
123 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
124 inline void SetStorageCapacity(int value) {
125 m_storageCapacityHasBeenSet = true;
126 m_storageCapacity = value;
127 }
129 SetStorageCapacity(value);
130 return *this;
131 }
133
135
139 inline const UpdateFileSystemWindowsConfiguration& GetWindowsConfiguration() const { return m_windowsConfiguration; }
140 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
141 template <typename WindowsConfigurationT = UpdateFileSystemWindowsConfiguration>
142 void SetWindowsConfiguration(WindowsConfigurationT&& value) {
143 m_windowsConfigurationHasBeenSet = true;
144 m_windowsConfiguration = std::forward<WindowsConfigurationT>(value);
145 }
146 template <typename WindowsConfigurationT = UpdateFileSystemWindowsConfiguration>
147 UpdateFileSystemRequest& WithWindowsConfiguration(WindowsConfigurationT&& value) {
148 SetWindowsConfiguration(std::forward<WindowsConfigurationT>(value));
149 return *this;
150 }
152
154
155 inline const UpdateFileSystemLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
156 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
157 template <typename LustreConfigurationT = UpdateFileSystemLustreConfiguration>
158 void SetLustreConfiguration(LustreConfigurationT&& value) {
159 m_lustreConfigurationHasBeenSet = true;
160 m_lustreConfiguration = std::forward<LustreConfigurationT>(value);
161 }
162 template <typename LustreConfigurationT = UpdateFileSystemLustreConfiguration>
163 UpdateFileSystemRequest& WithLustreConfiguration(LustreConfigurationT&& value) {
164 SetLustreConfiguration(std::forward<LustreConfigurationT>(value));
165 return *this;
166 }
168
170
171 inline const UpdateFileSystemOntapConfiguration& GetOntapConfiguration() const { return m_ontapConfiguration; }
172 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
173 template <typename OntapConfigurationT = UpdateFileSystemOntapConfiguration>
174 void SetOntapConfiguration(OntapConfigurationT&& value) {
175 m_ontapConfigurationHasBeenSet = true;
176 m_ontapConfiguration = std::forward<OntapConfigurationT>(value);
177 }
178 template <typename OntapConfigurationT = UpdateFileSystemOntapConfiguration>
179 UpdateFileSystemRequest& WithOntapConfiguration(OntapConfigurationT&& value) {
180 SetOntapConfiguration(std::forward<OntapConfigurationT>(value));
181 return *this;
182 }
184
186
189 inline const UpdateFileSystemOpenZFSConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
190 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
191 template <typename OpenZFSConfigurationT = UpdateFileSystemOpenZFSConfiguration>
192 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) {
193 m_openZFSConfigurationHasBeenSet = true;
194 m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value);
195 }
196 template <typename OpenZFSConfigurationT = UpdateFileSystemOpenZFSConfiguration>
197 UpdateFileSystemRequest& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) {
198 SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value));
199 return *this;
200 }
202
204
205 inline StorageType GetStorageType() const { return m_storageType; }
206 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
207 inline void SetStorageType(StorageType value) {
208 m_storageTypeHasBeenSet = true;
209 m_storageType = value;
210 }
212 SetStorageType(value);
213 return *this;
214 }
216
218
223 inline const Aws::String& GetFileSystemTypeVersion() const { return m_fileSystemTypeVersion; }
224 inline bool FileSystemTypeVersionHasBeenSet() const { return m_fileSystemTypeVersionHasBeenSet; }
225 template <typename FileSystemTypeVersionT = Aws::String>
226 void SetFileSystemTypeVersion(FileSystemTypeVersionT&& value) {
227 m_fileSystemTypeVersionHasBeenSet = true;
228 m_fileSystemTypeVersion = std::forward<FileSystemTypeVersionT>(value);
229 }
230 template <typename FileSystemTypeVersionT = Aws::String>
231 UpdateFileSystemRequest& WithFileSystemTypeVersion(FileSystemTypeVersionT&& value) {
232 SetFileSystemTypeVersion(std::forward<FileSystemTypeVersionT>(value));
233 return *this;
234 }
236
238
241 inline NetworkType GetNetworkType() const { return m_networkType; }
242 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
243 inline void SetNetworkType(NetworkType value) {
244 m_networkTypeHasBeenSet = true;
245 m_networkType = value;
246 }
248 SetNetworkType(value);
249 return *this;
250 }
252 private:
253 Aws::String m_fileSystemId;
254
255 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
256
257 int m_storageCapacity{0};
258
259 UpdateFileSystemWindowsConfiguration m_windowsConfiguration;
260
261 UpdateFileSystemLustreConfiguration m_lustreConfiguration;
262
263 UpdateFileSystemOntapConfiguration m_ontapConfiguration;
264
265 UpdateFileSystemOpenZFSConfiguration m_openZFSConfiguration;
266
267 StorageType m_storageType{StorageType::NOT_SET};
268
269 Aws::String m_fileSystemTypeVersion;
270
271 NetworkType m_networkType{NetworkType::NOT_SET};
272 bool m_fileSystemIdHasBeenSet = false;
273 bool m_clientRequestTokenHasBeenSet = true;
274 bool m_storageCapacityHasBeenSet = false;
275 bool m_windowsConfigurationHasBeenSet = false;
276 bool m_lustreConfigurationHasBeenSet = false;
277 bool m_ontapConfigurationHasBeenSet = false;
278 bool m_openZFSConfigurationHasBeenSet = false;
279 bool m_storageTypeHasBeenSet = false;
280 bool m_fileSystemTypeVersionHasBeenSet = false;
281 bool m_networkTypeHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace FSx
286} // namespace Aws
const UpdateFileSystemOntapConfiguration & GetOntapConfiguration() const
UpdateFileSystemRequest & WithFileSystemId(FileSystemIdT &&value)
UpdateFileSystemRequest & WithNetworkType(NetworkType value)
void SetLustreConfiguration(LustreConfigurationT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
UpdateFileSystemRequest & WithLustreConfiguration(LustreConfigurationT &&value)
UpdateFileSystemRequest & WithOpenZFSConfiguration(OpenZFSConfigurationT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFileSystemRequest & WithStorageCapacity(int value)
void SetOntapConfiguration(OntapConfigurationT &&value)
void SetWindowsConfiguration(WindowsConfigurationT &&value)
AWS_FSX_API UpdateFileSystemRequest()=default
const UpdateFileSystemOpenZFSConfiguration & GetOpenZFSConfiguration() const
UpdateFileSystemRequest & WithWindowsConfiguration(WindowsConfigurationT &&value)
UpdateFileSystemRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateFileSystemRequest & WithStorageType(StorageType value)
const UpdateFileSystemLustreConfiguration & GetLustreConfiguration() const
AWS_FSX_API Aws::String SerializePayload() const override
const UpdateFileSystemWindowsConfiguration & GetWindowsConfiguration() const
UpdateFileSystemRequest & WithFileSystemTypeVersion(FileSystemTypeVersionT &&value)
UpdateFileSystemRequest & WithOntapConfiguration(OntapConfigurationT &&value)
void SetOpenZFSConfiguration(OpenZFSConfigurationT &&value)
void SetFileSystemTypeVersion(FileSystemTypeVersionT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String