AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
UpdateFileSystemRequest.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/UpdateFileSystemWindowsConfiguration.h>
11#include <aws/fsx/model/UpdateFileSystemLustreConfiguration.h>
12#include <aws/fsx/model/UpdateFileSystemOntapConfiguration.h>
13#include <aws/fsx/model/UpdateFileSystemOpenZFSConfiguration.h>
14#include <aws/fsx/model/StorageType.h>
15#include <aws/fsx/model/NetworkType.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 UpdateFileSystemRequest() = 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 "UpdateFileSystem"; }
42
43 AWS_FSX_API Aws::String SerializePayload() const override;
44
46
47
49
52 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
53 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
54 template<typename FileSystemIdT = Aws::String>
55 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
56 template<typename FileSystemIdT = Aws::String>
57 UpdateFileSystemRequest& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
59
61
66 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
67 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
68 template<typename ClientRequestTokenT = Aws::String>
69 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
70 template<typename ClientRequestTokenT = Aws::String>
71 UpdateFileSystemRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
73
75
114 inline int GetStorageCapacity() const { return m_storageCapacity; }
115 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
116 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
117 inline UpdateFileSystemRequest& WithStorageCapacity(int value) { SetStorageCapacity(value); return *this;}
119
121
125 inline const UpdateFileSystemWindowsConfiguration& GetWindowsConfiguration() const { return m_windowsConfiguration; }
126 inline bool WindowsConfigurationHasBeenSet() const { return m_windowsConfigurationHasBeenSet; }
127 template<typename WindowsConfigurationT = UpdateFileSystemWindowsConfiguration>
128 void SetWindowsConfiguration(WindowsConfigurationT&& value) { m_windowsConfigurationHasBeenSet = true; m_windowsConfiguration = std::forward<WindowsConfigurationT>(value); }
129 template<typename WindowsConfigurationT = UpdateFileSystemWindowsConfiguration>
130 UpdateFileSystemRequest& WithWindowsConfiguration(WindowsConfigurationT&& value) { SetWindowsConfiguration(std::forward<WindowsConfigurationT>(value)); return *this;}
132
134
135 inline const UpdateFileSystemLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
136 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
137 template<typename LustreConfigurationT = UpdateFileSystemLustreConfiguration>
138 void SetLustreConfiguration(LustreConfigurationT&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::forward<LustreConfigurationT>(value); }
139 template<typename LustreConfigurationT = UpdateFileSystemLustreConfiguration>
140 UpdateFileSystemRequest& WithLustreConfiguration(LustreConfigurationT&& value) { SetLustreConfiguration(std::forward<LustreConfigurationT>(value)); return *this;}
142
144
145 inline const UpdateFileSystemOntapConfiguration& GetOntapConfiguration() const { return m_ontapConfiguration; }
146 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
147 template<typename OntapConfigurationT = UpdateFileSystemOntapConfiguration>
148 void SetOntapConfiguration(OntapConfigurationT&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::forward<OntapConfigurationT>(value); }
149 template<typename OntapConfigurationT = UpdateFileSystemOntapConfiguration>
150 UpdateFileSystemRequest& WithOntapConfiguration(OntapConfigurationT&& value) { SetOntapConfiguration(std::forward<OntapConfigurationT>(value)); return *this;}
152
154
157 inline const UpdateFileSystemOpenZFSConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
158 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
159 template<typename OpenZFSConfigurationT = UpdateFileSystemOpenZFSConfiguration>
160 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value); }
161 template<typename OpenZFSConfigurationT = UpdateFileSystemOpenZFSConfiguration>
162 UpdateFileSystemRequest& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) { SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value)); return *this;}
164
166
167 inline StorageType GetStorageType() const { return m_storageType; }
168 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
169 inline void SetStorageType(StorageType value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
172
174
179 inline const Aws::String& GetFileSystemTypeVersion() const { return m_fileSystemTypeVersion; }
180 inline bool FileSystemTypeVersionHasBeenSet() const { return m_fileSystemTypeVersionHasBeenSet; }
181 template<typename FileSystemTypeVersionT = Aws::String>
182 void SetFileSystemTypeVersion(FileSystemTypeVersionT&& value) { m_fileSystemTypeVersionHasBeenSet = true; m_fileSystemTypeVersion = std::forward<FileSystemTypeVersionT>(value); }
183 template<typename FileSystemTypeVersionT = Aws::String>
184 UpdateFileSystemRequest& WithFileSystemTypeVersion(FileSystemTypeVersionT&& value) { SetFileSystemTypeVersion(std::forward<FileSystemTypeVersionT>(value)); return *this;}
186
188
191 inline NetworkType GetNetworkType() const { return m_networkType; }
192 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
193 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
196 private:
197
198 Aws::String m_fileSystemId;
199 bool m_fileSystemIdHasBeenSet = false;
200
201 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
202 bool m_clientRequestTokenHasBeenSet = true;
203
204 int m_storageCapacity{0};
205 bool m_storageCapacityHasBeenSet = false;
206
207 UpdateFileSystemWindowsConfiguration m_windowsConfiguration;
208 bool m_windowsConfigurationHasBeenSet = false;
209
210 UpdateFileSystemLustreConfiguration m_lustreConfiguration;
211 bool m_lustreConfigurationHasBeenSet = false;
212
213 UpdateFileSystemOntapConfiguration m_ontapConfiguration;
214 bool m_ontapConfigurationHasBeenSet = false;
215
216 UpdateFileSystemOpenZFSConfiguration m_openZFSConfiguration;
217 bool m_openZFSConfigurationHasBeenSet = false;
218
219 StorageType m_storageType{StorageType::NOT_SET};
220 bool m_storageTypeHasBeenSet = false;
221
222 Aws::String m_fileSystemTypeVersion;
223 bool m_fileSystemTypeVersionHasBeenSet = false;
224
225 NetworkType m_networkType{NetworkType::NOT_SET};
226 bool m_networkTypeHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace FSx
231} // 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