1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #include <aws/core/utils/Outcome.h>
7 #include <aws/core/auth/AWSAuthSigner.h>
8 #include <aws/core/client/CoreErrors.h>
9 #include <aws/core/client/RetryStrategy.h>
10 #include <aws/core/http/HttpClient.h>
11 #include <aws/core/http/HttpResponse.h>
12 #include <aws/core/http/HttpClientFactory.h>
13 #include <aws/core/auth/AWSCredentialsProviderChain.h>
14 #include <aws/core/utils/json/JsonSerializer.h>
15 #include <aws/core/utils/memory/stl/AWSStringStream.h>
16 #include <aws/core/utils/threading/Executor.h>
17 #include <aws/core/utils/DNS.h>
18 #include <aws/core/utils/logging/LogMacros.h>
19
20 #include <aws/fsx/FSxClient.h>
21 #include <aws/fsx/FSxEndpoint.h>
22 #include <aws/fsx/FSxErrorMarshaller.h>
23 #include <aws/fsx/model/AssociateFileSystemAliasesRequest.h>
24 #include <aws/fsx/model/CancelDataRepositoryTaskRequest.h>
25 #include <aws/fsx/model/CopyBackupRequest.h>
26 #include <aws/fsx/model/CreateBackupRequest.h>
27 #include <aws/fsx/model/CreateDataRepositoryTaskRequest.h>
28 #include <aws/fsx/model/CreateFileSystemRequest.h>
29 #include <aws/fsx/model/CreateFileSystemFromBackupRequest.h>
30 #include <aws/fsx/model/CreateStorageVirtualMachineRequest.h>
31 #include <aws/fsx/model/CreateVolumeRequest.h>
32 #include <aws/fsx/model/CreateVolumeFromBackupRequest.h>
33 #include <aws/fsx/model/DeleteBackupRequest.h>
34 #include <aws/fsx/model/DeleteFileSystemRequest.h>
35 #include <aws/fsx/model/DeleteStorageVirtualMachineRequest.h>
36 #include <aws/fsx/model/DeleteVolumeRequest.h>
37 #include <aws/fsx/model/DescribeBackupsRequest.h>
38 #include <aws/fsx/model/DescribeDataRepositoryTasksRequest.h>
39 #include <aws/fsx/model/DescribeFileSystemAliasesRequest.h>
40 #include <aws/fsx/model/DescribeFileSystemsRequest.h>
41 #include <aws/fsx/model/DescribeStorageVirtualMachinesRequest.h>
42 #include <aws/fsx/model/DescribeVolumesRequest.h>
43 #include <aws/fsx/model/DisassociateFileSystemAliasesRequest.h>
44 #include <aws/fsx/model/ListTagsForResourceRequest.h>
45 #include <aws/fsx/model/TagResourceRequest.h>
46 #include <aws/fsx/model/UntagResourceRequest.h>
47 #include <aws/fsx/model/UpdateFileSystemRequest.h>
48 #include <aws/fsx/model/UpdateStorageVirtualMachineRequest.h>
49 #include <aws/fsx/model/UpdateVolumeRequest.h>
50
51 using namespace Aws;
52 using namespace Aws::Auth;
53 using namespace Aws::Client;
54 using namespace Aws::FSx;
55 using namespace Aws::FSx::Model;
56 using namespace Aws::Http;
57 using namespace Aws::Utils::Json;
58
59 static const char* SERVICE_NAME = "fsx";
60 static const char* ALLOCATION_TAG = "FSxClient";
61
62
FSxClient(const Client::ClientConfiguration & clientConfiguration)63 FSxClient::FSxClient(const Client::ClientConfiguration& clientConfiguration) :
64 BASECLASS(clientConfiguration,
65 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
66 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
67 Aws::MakeShared<FSxErrorMarshaller>(ALLOCATION_TAG)),
68 m_executor(clientConfiguration.executor)
69 {
70 init(clientConfiguration);
71 }
72
FSxClient(const AWSCredentials & credentials,const Client::ClientConfiguration & clientConfiguration)73 FSxClient::FSxClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
74 BASECLASS(clientConfiguration,
75 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
76 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
77 Aws::MakeShared<FSxErrorMarshaller>(ALLOCATION_TAG)),
78 m_executor(clientConfiguration.executor)
79 {
80 init(clientConfiguration);
81 }
82
FSxClient(const std::shared_ptr<AWSCredentialsProvider> & credentialsProvider,const Client::ClientConfiguration & clientConfiguration)83 FSxClient::FSxClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
84 const Client::ClientConfiguration& clientConfiguration) :
85 BASECLASS(clientConfiguration,
86 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
87 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
88 Aws::MakeShared<FSxErrorMarshaller>(ALLOCATION_TAG)),
89 m_executor(clientConfiguration.executor)
90 {
91 init(clientConfiguration);
92 }
93
~FSxClient()94 FSxClient::~FSxClient()
95 {
96 }
97
init(const Client::ClientConfiguration & config)98 void FSxClient::init(const Client::ClientConfiguration& config)
99 {
100 SetServiceClientName("FSx");
101 m_configScheme = SchemeMapper::ToString(config.scheme);
102 if (config.endpointOverride.empty())
103 {
104 m_uri = m_configScheme + "://" + FSxEndpoint::ForRegion(config.region, config.useDualStack);
105 }
106 else
107 {
108 OverrideEndpoint(config.endpointOverride);
109 }
110 }
111
OverrideEndpoint(const Aws::String & endpoint)112 void FSxClient::OverrideEndpoint(const Aws::String& endpoint)
113 {
114 if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
115 {
116 m_uri = endpoint;
117 }
118 else
119 {
120 m_uri = m_configScheme + "://" + endpoint;
121 }
122 }
123
AssociateFileSystemAliases(const AssociateFileSystemAliasesRequest & request) const124 AssociateFileSystemAliasesOutcome FSxClient::AssociateFileSystemAliases(const AssociateFileSystemAliasesRequest& request) const
125 {
126 Aws::Http::URI uri = m_uri;
127 return AssociateFileSystemAliasesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
128 }
129
AssociateFileSystemAliasesCallable(const AssociateFileSystemAliasesRequest & request) const130 AssociateFileSystemAliasesOutcomeCallable FSxClient::AssociateFileSystemAliasesCallable(const AssociateFileSystemAliasesRequest& request) const
131 {
132 auto task = Aws::MakeShared< std::packaged_task< AssociateFileSystemAliasesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateFileSystemAliases(request); } );
133 auto packagedFunction = [task]() { (*task)(); };
134 m_executor->Submit(packagedFunction);
135 return task->get_future();
136 }
137
AssociateFileSystemAliasesAsync(const AssociateFileSystemAliasesRequest & request,const AssociateFileSystemAliasesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const138 void FSxClient::AssociateFileSystemAliasesAsync(const AssociateFileSystemAliasesRequest& request, const AssociateFileSystemAliasesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
139 {
140 m_executor->Submit( [this, request, handler, context](){ this->AssociateFileSystemAliasesAsyncHelper( request, handler, context ); } );
141 }
142
AssociateFileSystemAliasesAsyncHelper(const AssociateFileSystemAliasesRequest & request,const AssociateFileSystemAliasesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const143 void FSxClient::AssociateFileSystemAliasesAsyncHelper(const AssociateFileSystemAliasesRequest& request, const AssociateFileSystemAliasesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
144 {
145 handler(this, request, AssociateFileSystemAliases(request), context);
146 }
147
CancelDataRepositoryTask(const CancelDataRepositoryTaskRequest & request) const148 CancelDataRepositoryTaskOutcome FSxClient::CancelDataRepositoryTask(const CancelDataRepositoryTaskRequest& request) const
149 {
150 Aws::Http::URI uri = m_uri;
151 return CancelDataRepositoryTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
152 }
153
CancelDataRepositoryTaskCallable(const CancelDataRepositoryTaskRequest & request) const154 CancelDataRepositoryTaskOutcomeCallable FSxClient::CancelDataRepositoryTaskCallable(const CancelDataRepositoryTaskRequest& request) const
155 {
156 auto task = Aws::MakeShared< std::packaged_task< CancelDataRepositoryTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CancelDataRepositoryTask(request); } );
157 auto packagedFunction = [task]() { (*task)(); };
158 m_executor->Submit(packagedFunction);
159 return task->get_future();
160 }
161
CancelDataRepositoryTaskAsync(const CancelDataRepositoryTaskRequest & request,const CancelDataRepositoryTaskResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const162 void FSxClient::CancelDataRepositoryTaskAsync(const CancelDataRepositoryTaskRequest& request, const CancelDataRepositoryTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
163 {
164 m_executor->Submit( [this, request, handler, context](){ this->CancelDataRepositoryTaskAsyncHelper( request, handler, context ); } );
165 }
166
CancelDataRepositoryTaskAsyncHelper(const CancelDataRepositoryTaskRequest & request,const CancelDataRepositoryTaskResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const167 void FSxClient::CancelDataRepositoryTaskAsyncHelper(const CancelDataRepositoryTaskRequest& request, const CancelDataRepositoryTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
168 {
169 handler(this, request, CancelDataRepositoryTask(request), context);
170 }
171
CopyBackup(const CopyBackupRequest & request) const172 CopyBackupOutcome FSxClient::CopyBackup(const CopyBackupRequest& request) const
173 {
174 Aws::Http::URI uri = m_uri;
175 return CopyBackupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
176 }
177
CopyBackupCallable(const CopyBackupRequest & request) const178 CopyBackupOutcomeCallable FSxClient::CopyBackupCallable(const CopyBackupRequest& request) const
179 {
180 auto task = Aws::MakeShared< std::packaged_task< CopyBackupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CopyBackup(request); } );
181 auto packagedFunction = [task]() { (*task)(); };
182 m_executor->Submit(packagedFunction);
183 return task->get_future();
184 }
185
CopyBackupAsync(const CopyBackupRequest & request,const CopyBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const186 void FSxClient::CopyBackupAsync(const CopyBackupRequest& request, const CopyBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
187 {
188 m_executor->Submit( [this, request, handler, context](){ this->CopyBackupAsyncHelper( request, handler, context ); } );
189 }
190
CopyBackupAsyncHelper(const CopyBackupRequest & request,const CopyBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const191 void FSxClient::CopyBackupAsyncHelper(const CopyBackupRequest& request, const CopyBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
192 {
193 handler(this, request, CopyBackup(request), context);
194 }
195
CreateBackup(const CreateBackupRequest & request) const196 CreateBackupOutcome FSxClient::CreateBackup(const CreateBackupRequest& request) const
197 {
198 Aws::Http::URI uri = m_uri;
199 return CreateBackupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
200 }
201
CreateBackupCallable(const CreateBackupRequest & request) const202 CreateBackupOutcomeCallable FSxClient::CreateBackupCallable(const CreateBackupRequest& request) const
203 {
204 auto task = Aws::MakeShared< std::packaged_task< CreateBackupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateBackup(request); } );
205 auto packagedFunction = [task]() { (*task)(); };
206 m_executor->Submit(packagedFunction);
207 return task->get_future();
208 }
209
CreateBackupAsync(const CreateBackupRequest & request,const CreateBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const210 void FSxClient::CreateBackupAsync(const CreateBackupRequest& request, const CreateBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
211 {
212 m_executor->Submit( [this, request, handler, context](){ this->CreateBackupAsyncHelper( request, handler, context ); } );
213 }
214
CreateBackupAsyncHelper(const CreateBackupRequest & request,const CreateBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const215 void FSxClient::CreateBackupAsyncHelper(const CreateBackupRequest& request, const CreateBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
216 {
217 handler(this, request, CreateBackup(request), context);
218 }
219
CreateDataRepositoryTask(const CreateDataRepositoryTaskRequest & request) const220 CreateDataRepositoryTaskOutcome FSxClient::CreateDataRepositoryTask(const CreateDataRepositoryTaskRequest& request) const
221 {
222 Aws::Http::URI uri = m_uri;
223 return CreateDataRepositoryTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
224 }
225
CreateDataRepositoryTaskCallable(const CreateDataRepositoryTaskRequest & request) const226 CreateDataRepositoryTaskOutcomeCallable FSxClient::CreateDataRepositoryTaskCallable(const CreateDataRepositoryTaskRequest& request) const
227 {
228 auto task = Aws::MakeShared< std::packaged_task< CreateDataRepositoryTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateDataRepositoryTask(request); } );
229 auto packagedFunction = [task]() { (*task)(); };
230 m_executor->Submit(packagedFunction);
231 return task->get_future();
232 }
233
CreateDataRepositoryTaskAsync(const CreateDataRepositoryTaskRequest & request,const CreateDataRepositoryTaskResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const234 void FSxClient::CreateDataRepositoryTaskAsync(const CreateDataRepositoryTaskRequest& request, const CreateDataRepositoryTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
235 {
236 m_executor->Submit( [this, request, handler, context](){ this->CreateDataRepositoryTaskAsyncHelper( request, handler, context ); } );
237 }
238
CreateDataRepositoryTaskAsyncHelper(const CreateDataRepositoryTaskRequest & request,const CreateDataRepositoryTaskResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const239 void FSxClient::CreateDataRepositoryTaskAsyncHelper(const CreateDataRepositoryTaskRequest& request, const CreateDataRepositoryTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
240 {
241 handler(this, request, CreateDataRepositoryTask(request), context);
242 }
243
CreateFileSystem(const CreateFileSystemRequest & request) const244 CreateFileSystemOutcome FSxClient::CreateFileSystem(const CreateFileSystemRequest& request) const
245 {
246 Aws::Http::URI uri = m_uri;
247 return CreateFileSystemOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
248 }
249
CreateFileSystemCallable(const CreateFileSystemRequest & request) const250 CreateFileSystemOutcomeCallable FSxClient::CreateFileSystemCallable(const CreateFileSystemRequest& request) const
251 {
252 auto task = Aws::MakeShared< std::packaged_task< CreateFileSystemOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateFileSystem(request); } );
253 auto packagedFunction = [task]() { (*task)(); };
254 m_executor->Submit(packagedFunction);
255 return task->get_future();
256 }
257
CreateFileSystemAsync(const CreateFileSystemRequest & request,const CreateFileSystemResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const258 void FSxClient::CreateFileSystemAsync(const CreateFileSystemRequest& request, const CreateFileSystemResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
259 {
260 m_executor->Submit( [this, request, handler, context](){ this->CreateFileSystemAsyncHelper( request, handler, context ); } );
261 }
262
CreateFileSystemAsyncHelper(const CreateFileSystemRequest & request,const CreateFileSystemResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const263 void FSxClient::CreateFileSystemAsyncHelper(const CreateFileSystemRequest& request, const CreateFileSystemResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
264 {
265 handler(this, request, CreateFileSystem(request), context);
266 }
267
CreateFileSystemFromBackup(const CreateFileSystemFromBackupRequest & request) const268 CreateFileSystemFromBackupOutcome FSxClient::CreateFileSystemFromBackup(const CreateFileSystemFromBackupRequest& request) const
269 {
270 Aws::Http::URI uri = m_uri;
271 return CreateFileSystemFromBackupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
272 }
273
CreateFileSystemFromBackupCallable(const CreateFileSystemFromBackupRequest & request) const274 CreateFileSystemFromBackupOutcomeCallable FSxClient::CreateFileSystemFromBackupCallable(const CreateFileSystemFromBackupRequest& request) const
275 {
276 auto task = Aws::MakeShared< std::packaged_task< CreateFileSystemFromBackupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateFileSystemFromBackup(request); } );
277 auto packagedFunction = [task]() { (*task)(); };
278 m_executor->Submit(packagedFunction);
279 return task->get_future();
280 }
281
CreateFileSystemFromBackupAsync(const CreateFileSystemFromBackupRequest & request,const CreateFileSystemFromBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const282 void FSxClient::CreateFileSystemFromBackupAsync(const CreateFileSystemFromBackupRequest& request, const CreateFileSystemFromBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
283 {
284 m_executor->Submit( [this, request, handler, context](){ this->CreateFileSystemFromBackupAsyncHelper( request, handler, context ); } );
285 }
286
CreateFileSystemFromBackupAsyncHelper(const CreateFileSystemFromBackupRequest & request,const CreateFileSystemFromBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const287 void FSxClient::CreateFileSystemFromBackupAsyncHelper(const CreateFileSystemFromBackupRequest& request, const CreateFileSystemFromBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
288 {
289 handler(this, request, CreateFileSystemFromBackup(request), context);
290 }
291
CreateStorageVirtualMachine(const CreateStorageVirtualMachineRequest & request) const292 CreateStorageVirtualMachineOutcome FSxClient::CreateStorageVirtualMachine(const CreateStorageVirtualMachineRequest& request) const
293 {
294 Aws::Http::URI uri = m_uri;
295 return CreateStorageVirtualMachineOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
296 }
297
CreateStorageVirtualMachineCallable(const CreateStorageVirtualMachineRequest & request) const298 CreateStorageVirtualMachineOutcomeCallable FSxClient::CreateStorageVirtualMachineCallable(const CreateStorageVirtualMachineRequest& request) const
299 {
300 auto task = Aws::MakeShared< std::packaged_task< CreateStorageVirtualMachineOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateStorageVirtualMachine(request); } );
301 auto packagedFunction = [task]() { (*task)(); };
302 m_executor->Submit(packagedFunction);
303 return task->get_future();
304 }
305
CreateStorageVirtualMachineAsync(const CreateStorageVirtualMachineRequest & request,const CreateStorageVirtualMachineResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const306 void FSxClient::CreateStorageVirtualMachineAsync(const CreateStorageVirtualMachineRequest& request, const CreateStorageVirtualMachineResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
307 {
308 m_executor->Submit( [this, request, handler, context](){ this->CreateStorageVirtualMachineAsyncHelper( request, handler, context ); } );
309 }
310
CreateStorageVirtualMachineAsyncHelper(const CreateStorageVirtualMachineRequest & request,const CreateStorageVirtualMachineResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const311 void FSxClient::CreateStorageVirtualMachineAsyncHelper(const CreateStorageVirtualMachineRequest& request, const CreateStorageVirtualMachineResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
312 {
313 handler(this, request, CreateStorageVirtualMachine(request), context);
314 }
315
CreateVolume(const CreateVolumeRequest & request) const316 CreateVolumeOutcome FSxClient::CreateVolume(const CreateVolumeRequest& request) const
317 {
318 Aws::Http::URI uri = m_uri;
319 return CreateVolumeOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
320 }
321
CreateVolumeCallable(const CreateVolumeRequest & request) const322 CreateVolumeOutcomeCallable FSxClient::CreateVolumeCallable(const CreateVolumeRequest& request) const
323 {
324 auto task = Aws::MakeShared< std::packaged_task< CreateVolumeOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateVolume(request); } );
325 auto packagedFunction = [task]() { (*task)(); };
326 m_executor->Submit(packagedFunction);
327 return task->get_future();
328 }
329
CreateVolumeAsync(const CreateVolumeRequest & request,const CreateVolumeResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const330 void FSxClient::CreateVolumeAsync(const CreateVolumeRequest& request, const CreateVolumeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
331 {
332 m_executor->Submit( [this, request, handler, context](){ this->CreateVolumeAsyncHelper( request, handler, context ); } );
333 }
334
CreateVolumeAsyncHelper(const CreateVolumeRequest & request,const CreateVolumeResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const335 void FSxClient::CreateVolumeAsyncHelper(const CreateVolumeRequest& request, const CreateVolumeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
336 {
337 handler(this, request, CreateVolume(request), context);
338 }
339
CreateVolumeFromBackup(const CreateVolumeFromBackupRequest & request) const340 CreateVolumeFromBackupOutcome FSxClient::CreateVolumeFromBackup(const CreateVolumeFromBackupRequest& request) const
341 {
342 Aws::Http::URI uri = m_uri;
343 return CreateVolumeFromBackupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
344 }
345
CreateVolumeFromBackupCallable(const CreateVolumeFromBackupRequest & request) const346 CreateVolumeFromBackupOutcomeCallable FSxClient::CreateVolumeFromBackupCallable(const CreateVolumeFromBackupRequest& request) const
347 {
348 auto task = Aws::MakeShared< std::packaged_task< CreateVolumeFromBackupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateVolumeFromBackup(request); } );
349 auto packagedFunction = [task]() { (*task)(); };
350 m_executor->Submit(packagedFunction);
351 return task->get_future();
352 }
353
CreateVolumeFromBackupAsync(const CreateVolumeFromBackupRequest & request,const CreateVolumeFromBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const354 void FSxClient::CreateVolumeFromBackupAsync(const CreateVolumeFromBackupRequest& request, const CreateVolumeFromBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
355 {
356 m_executor->Submit( [this, request, handler, context](){ this->CreateVolumeFromBackupAsyncHelper( request, handler, context ); } );
357 }
358
CreateVolumeFromBackupAsyncHelper(const CreateVolumeFromBackupRequest & request,const CreateVolumeFromBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const359 void FSxClient::CreateVolumeFromBackupAsyncHelper(const CreateVolumeFromBackupRequest& request, const CreateVolumeFromBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
360 {
361 handler(this, request, CreateVolumeFromBackup(request), context);
362 }
363
DeleteBackup(const DeleteBackupRequest & request) const364 DeleteBackupOutcome FSxClient::DeleteBackup(const DeleteBackupRequest& request) const
365 {
366 Aws::Http::URI uri = m_uri;
367 return DeleteBackupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
368 }
369
DeleteBackupCallable(const DeleteBackupRequest & request) const370 DeleteBackupOutcomeCallable FSxClient::DeleteBackupCallable(const DeleteBackupRequest& request) const
371 {
372 auto task = Aws::MakeShared< std::packaged_task< DeleteBackupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteBackup(request); } );
373 auto packagedFunction = [task]() { (*task)(); };
374 m_executor->Submit(packagedFunction);
375 return task->get_future();
376 }
377
DeleteBackupAsync(const DeleteBackupRequest & request,const DeleteBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const378 void FSxClient::DeleteBackupAsync(const DeleteBackupRequest& request, const DeleteBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
379 {
380 m_executor->Submit( [this, request, handler, context](){ this->DeleteBackupAsyncHelper( request, handler, context ); } );
381 }
382
DeleteBackupAsyncHelper(const DeleteBackupRequest & request,const DeleteBackupResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const383 void FSxClient::DeleteBackupAsyncHelper(const DeleteBackupRequest& request, const DeleteBackupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
384 {
385 handler(this, request, DeleteBackup(request), context);
386 }
387
DeleteFileSystem(const DeleteFileSystemRequest & request) const388 DeleteFileSystemOutcome FSxClient::DeleteFileSystem(const DeleteFileSystemRequest& request) const
389 {
390 Aws::Http::URI uri = m_uri;
391 return DeleteFileSystemOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
392 }
393
DeleteFileSystemCallable(const DeleteFileSystemRequest & request) const394 DeleteFileSystemOutcomeCallable FSxClient::DeleteFileSystemCallable(const DeleteFileSystemRequest& request) const
395 {
396 auto task = Aws::MakeShared< std::packaged_task< DeleteFileSystemOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteFileSystem(request); } );
397 auto packagedFunction = [task]() { (*task)(); };
398 m_executor->Submit(packagedFunction);
399 return task->get_future();
400 }
401
DeleteFileSystemAsync(const DeleteFileSystemRequest & request,const DeleteFileSystemResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const402 void FSxClient::DeleteFileSystemAsync(const DeleteFileSystemRequest& request, const DeleteFileSystemResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
403 {
404 m_executor->Submit( [this, request, handler, context](){ this->DeleteFileSystemAsyncHelper( request, handler, context ); } );
405 }
406
DeleteFileSystemAsyncHelper(const DeleteFileSystemRequest & request,const DeleteFileSystemResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const407 void FSxClient::DeleteFileSystemAsyncHelper(const DeleteFileSystemRequest& request, const DeleteFileSystemResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
408 {
409 handler(this, request, DeleteFileSystem(request), context);
410 }
411
DeleteStorageVirtualMachine(const DeleteStorageVirtualMachineRequest & request) const412 DeleteStorageVirtualMachineOutcome FSxClient::DeleteStorageVirtualMachine(const DeleteStorageVirtualMachineRequest& request) const
413 {
414 Aws::Http::URI uri = m_uri;
415 return DeleteStorageVirtualMachineOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
416 }
417
DeleteStorageVirtualMachineCallable(const DeleteStorageVirtualMachineRequest & request) const418 DeleteStorageVirtualMachineOutcomeCallable FSxClient::DeleteStorageVirtualMachineCallable(const DeleteStorageVirtualMachineRequest& request) const
419 {
420 auto task = Aws::MakeShared< std::packaged_task< DeleteStorageVirtualMachineOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteStorageVirtualMachine(request); } );
421 auto packagedFunction = [task]() { (*task)(); };
422 m_executor->Submit(packagedFunction);
423 return task->get_future();
424 }
425
DeleteStorageVirtualMachineAsync(const DeleteStorageVirtualMachineRequest & request,const DeleteStorageVirtualMachineResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const426 void FSxClient::DeleteStorageVirtualMachineAsync(const DeleteStorageVirtualMachineRequest& request, const DeleteStorageVirtualMachineResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
427 {
428 m_executor->Submit( [this, request, handler, context](){ this->DeleteStorageVirtualMachineAsyncHelper( request, handler, context ); } );
429 }
430
DeleteStorageVirtualMachineAsyncHelper(const DeleteStorageVirtualMachineRequest & request,const DeleteStorageVirtualMachineResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const431 void FSxClient::DeleteStorageVirtualMachineAsyncHelper(const DeleteStorageVirtualMachineRequest& request, const DeleteStorageVirtualMachineResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
432 {
433 handler(this, request, DeleteStorageVirtualMachine(request), context);
434 }
435
DeleteVolume(const DeleteVolumeRequest & request) const436 DeleteVolumeOutcome FSxClient::DeleteVolume(const DeleteVolumeRequest& request) const
437 {
438 Aws::Http::URI uri = m_uri;
439 return DeleteVolumeOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
440 }
441
DeleteVolumeCallable(const DeleteVolumeRequest & request) const442 DeleteVolumeOutcomeCallable FSxClient::DeleteVolumeCallable(const DeleteVolumeRequest& request) const
443 {
444 auto task = Aws::MakeShared< std::packaged_task< DeleteVolumeOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteVolume(request); } );
445 auto packagedFunction = [task]() { (*task)(); };
446 m_executor->Submit(packagedFunction);
447 return task->get_future();
448 }
449
DeleteVolumeAsync(const DeleteVolumeRequest & request,const DeleteVolumeResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const450 void FSxClient::DeleteVolumeAsync(const DeleteVolumeRequest& request, const DeleteVolumeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
451 {
452 m_executor->Submit( [this, request, handler, context](){ this->DeleteVolumeAsyncHelper( request, handler, context ); } );
453 }
454
DeleteVolumeAsyncHelper(const DeleteVolumeRequest & request,const DeleteVolumeResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const455 void FSxClient::DeleteVolumeAsyncHelper(const DeleteVolumeRequest& request, const DeleteVolumeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
456 {
457 handler(this, request, DeleteVolume(request), context);
458 }
459
DescribeBackups(const DescribeBackupsRequest & request) const460 DescribeBackupsOutcome FSxClient::DescribeBackups(const DescribeBackupsRequest& request) const
461 {
462 Aws::Http::URI uri = m_uri;
463 return DescribeBackupsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
464 }
465
DescribeBackupsCallable(const DescribeBackupsRequest & request) const466 DescribeBackupsOutcomeCallable FSxClient::DescribeBackupsCallable(const DescribeBackupsRequest& request) const
467 {
468 auto task = Aws::MakeShared< std::packaged_task< DescribeBackupsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeBackups(request); } );
469 auto packagedFunction = [task]() { (*task)(); };
470 m_executor->Submit(packagedFunction);
471 return task->get_future();
472 }
473
DescribeBackupsAsync(const DescribeBackupsRequest & request,const DescribeBackupsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const474 void FSxClient::DescribeBackupsAsync(const DescribeBackupsRequest& request, const DescribeBackupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
475 {
476 m_executor->Submit( [this, request, handler, context](){ this->DescribeBackupsAsyncHelper( request, handler, context ); } );
477 }
478
DescribeBackupsAsyncHelper(const DescribeBackupsRequest & request,const DescribeBackupsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const479 void FSxClient::DescribeBackupsAsyncHelper(const DescribeBackupsRequest& request, const DescribeBackupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
480 {
481 handler(this, request, DescribeBackups(request), context);
482 }
483
DescribeDataRepositoryTasks(const DescribeDataRepositoryTasksRequest & request) const484 DescribeDataRepositoryTasksOutcome FSxClient::DescribeDataRepositoryTasks(const DescribeDataRepositoryTasksRequest& request) const
485 {
486 Aws::Http::URI uri = m_uri;
487 return DescribeDataRepositoryTasksOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
488 }
489
DescribeDataRepositoryTasksCallable(const DescribeDataRepositoryTasksRequest & request) const490 DescribeDataRepositoryTasksOutcomeCallable FSxClient::DescribeDataRepositoryTasksCallable(const DescribeDataRepositoryTasksRequest& request) const
491 {
492 auto task = Aws::MakeShared< std::packaged_task< DescribeDataRepositoryTasksOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeDataRepositoryTasks(request); } );
493 auto packagedFunction = [task]() { (*task)(); };
494 m_executor->Submit(packagedFunction);
495 return task->get_future();
496 }
497
DescribeDataRepositoryTasksAsync(const DescribeDataRepositoryTasksRequest & request,const DescribeDataRepositoryTasksResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const498 void FSxClient::DescribeDataRepositoryTasksAsync(const DescribeDataRepositoryTasksRequest& request, const DescribeDataRepositoryTasksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
499 {
500 m_executor->Submit( [this, request, handler, context](){ this->DescribeDataRepositoryTasksAsyncHelper( request, handler, context ); } );
501 }
502
DescribeDataRepositoryTasksAsyncHelper(const DescribeDataRepositoryTasksRequest & request,const DescribeDataRepositoryTasksResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const503 void FSxClient::DescribeDataRepositoryTasksAsyncHelper(const DescribeDataRepositoryTasksRequest& request, const DescribeDataRepositoryTasksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
504 {
505 handler(this, request, DescribeDataRepositoryTasks(request), context);
506 }
507
DescribeFileSystemAliases(const DescribeFileSystemAliasesRequest & request) const508 DescribeFileSystemAliasesOutcome FSxClient::DescribeFileSystemAliases(const DescribeFileSystemAliasesRequest& request) const
509 {
510 Aws::Http::URI uri = m_uri;
511 return DescribeFileSystemAliasesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
512 }
513
DescribeFileSystemAliasesCallable(const DescribeFileSystemAliasesRequest & request) const514 DescribeFileSystemAliasesOutcomeCallable FSxClient::DescribeFileSystemAliasesCallable(const DescribeFileSystemAliasesRequest& request) const
515 {
516 auto task = Aws::MakeShared< std::packaged_task< DescribeFileSystemAliasesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeFileSystemAliases(request); } );
517 auto packagedFunction = [task]() { (*task)(); };
518 m_executor->Submit(packagedFunction);
519 return task->get_future();
520 }
521
DescribeFileSystemAliasesAsync(const DescribeFileSystemAliasesRequest & request,const DescribeFileSystemAliasesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const522 void FSxClient::DescribeFileSystemAliasesAsync(const DescribeFileSystemAliasesRequest& request, const DescribeFileSystemAliasesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
523 {
524 m_executor->Submit( [this, request, handler, context](){ this->DescribeFileSystemAliasesAsyncHelper( request, handler, context ); } );
525 }
526
DescribeFileSystemAliasesAsyncHelper(const DescribeFileSystemAliasesRequest & request,const DescribeFileSystemAliasesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const527 void FSxClient::DescribeFileSystemAliasesAsyncHelper(const DescribeFileSystemAliasesRequest& request, const DescribeFileSystemAliasesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
528 {
529 handler(this, request, DescribeFileSystemAliases(request), context);
530 }
531
DescribeFileSystems(const DescribeFileSystemsRequest & request) const532 DescribeFileSystemsOutcome FSxClient::DescribeFileSystems(const DescribeFileSystemsRequest& request) const
533 {
534 Aws::Http::URI uri = m_uri;
535 return DescribeFileSystemsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
536 }
537
DescribeFileSystemsCallable(const DescribeFileSystemsRequest & request) const538 DescribeFileSystemsOutcomeCallable FSxClient::DescribeFileSystemsCallable(const DescribeFileSystemsRequest& request) const
539 {
540 auto task = Aws::MakeShared< std::packaged_task< DescribeFileSystemsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeFileSystems(request); } );
541 auto packagedFunction = [task]() { (*task)(); };
542 m_executor->Submit(packagedFunction);
543 return task->get_future();
544 }
545
DescribeFileSystemsAsync(const DescribeFileSystemsRequest & request,const DescribeFileSystemsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const546 void FSxClient::DescribeFileSystemsAsync(const DescribeFileSystemsRequest& request, const DescribeFileSystemsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
547 {
548 m_executor->Submit( [this, request, handler, context](){ this->DescribeFileSystemsAsyncHelper( request, handler, context ); } );
549 }
550
DescribeFileSystemsAsyncHelper(const DescribeFileSystemsRequest & request,const DescribeFileSystemsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const551 void FSxClient::DescribeFileSystemsAsyncHelper(const DescribeFileSystemsRequest& request, const DescribeFileSystemsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
552 {
553 handler(this, request, DescribeFileSystems(request), context);
554 }
555
DescribeStorageVirtualMachines(const DescribeStorageVirtualMachinesRequest & request) const556 DescribeStorageVirtualMachinesOutcome FSxClient::DescribeStorageVirtualMachines(const DescribeStorageVirtualMachinesRequest& request) const
557 {
558 Aws::Http::URI uri = m_uri;
559 return DescribeStorageVirtualMachinesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
560 }
561
DescribeStorageVirtualMachinesCallable(const DescribeStorageVirtualMachinesRequest & request) const562 DescribeStorageVirtualMachinesOutcomeCallable FSxClient::DescribeStorageVirtualMachinesCallable(const DescribeStorageVirtualMachinesRequest& request) const
563 {
564 auto task = Aws::MakeShared< std::packaged_task< DescribeStorageVirtualMachinesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeStorageVirtualMachines(request); } );
565 auto packagedFunction = [task]() { (*task)(); };
566 m_executor->Submit(packagedFunction);
567 return task->get_future();
568 }
569
DescribeStorageVirtualMachinesAsync(const DescribeStorageVirtualMachinesRequest & request,const DescribeStorageVirtualMachinesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const570 void FSxClient::DescribeStorageVirtualMachinesAsync(const DescribeStorageVirtualMachinesRequest& request, const DescribeStorageVirtualMachinesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
571 {
572 m_executor->Submit( [this, request, handler, context](){ this->DescribeStorageVirtualMachinesAsyncHelper( request, handler, context ); } );
573 }
574
DescribeStorageVirtualMachinesAsyncHelper(const DescribeStorageVirtualMachinesRequest & request,const DescribeStorageVirtualMachinesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const575 void FSxClient::DescribeStorageVirtualMachinesAsyncHelper(const DescribeStorageVirtualMachinesRequest& request, const DescribeStorageVirtualMachinesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
576 {
577 handler(this, request, DescribeStorageVirtualMachines(request), context);
578 }
579
DescribeVolumes(const DescribeVolumesRequest & request) const580 DescribeVolumesOutcome FSxClient::DescribeVolumes(const DescribeVolumesRequest& request) const
581 {
582 Aws::Http::URI uri = m_uri;
583 return DescribeVolumesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
584 }
585
DescribeVolumesCallable(const DescribeVolumesRequest & request) const586 DescribeVolumesOutcomeCallable FSxClient::DescribeVolumesCallable(const DescribeVolumesRequest& request) const
587 {
588 auto task = Aws::MakeShared< std::packaged_task< DescribeVolumesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeVolumes(request); } );
589 auto packagedFunction = [task]() { (*task)(); };
590 m_executor->Submit(packagedFunction);
591 return task->get_future();
592 }
593
DescribeVolumesAsync(const DescribeVolumesRequest & request,const DescribeVolumesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const594 void FSxClient::DescribeVolumesAsync(const DescribeVolumesRequest& request, const DescribeVolumesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
595 {
596 m_executor->Submit( [this, request, handler, context](){ this->DescribeVolumesAsyncHelper( request, handler, context ); } );
597 }
598
DescribeVolumesAsyncHelper(const DescribeVolumesRequest & request,const DescribeVolumesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const599 void FSxClient::DescribeVolumesAsyncHelper(const DescribeVolumesRequest& request, const DescribeVolumesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
600 {
601 handler(this, request, DescribeVolumes(request), context);
602 }
603
DisassociateFileSystemAliases(const DisassociateFileSystemAliasesRequest & request) const604 DisassociateFileSystemAliasesOutcome FSxClient::DisassociateFileSystemAliases(const DisassociateFileSystemAliasesRequest& request) const
605 {
606 Aws::Http::URI uri = m_uri;
607 return DisassociateFileSystemAliasesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
608 }
609
DisassociateFileSystemAliasesCallable(const DisassociateFileSystemAliasesRequest & request) const610 DisassociateFileSystemAliasesOutcomeCallable FSxClient::DisassociateFileSystemAliasesCallable(const DisassociateFileSystemAliasesRequest& request) const
611 {
612 auto task = Aws::MakeShared< std::packaged_task< DisassociateFileSystemAliasesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateFileSystemAliases(request); } );
613 auto packagedFunction = [task]() { (*task)(); };
614 m_executor->Submit(packagedFunction);
615 return task->get_future();
616 }
617
DisassociateFileSystemAliasesAsync(const DisassociateFileSystemAliasesRequest & request,const DisassociateFileSystemAliasesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const618 void FSxClient::DisassociateFileSystemAliasesAsync(const DisassociateFileSystemAliasesRequest& request, const DisassociateFileSystemAliasesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
619 {
620 m_executor->Submit( [this, request, handler, context](){ this->DisassociateFileSystemAliasesAsyncHelper( request, handler, context ); } );
621 }
622
DisassociateFileSystemAliasesAsyncHelper(const DisassociateFileSystemAliasesRequest & request,const DisassociateFileSystemAliasesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const623 void FSxClient::DisassociateFileSystemAliasesAsyncHelper(const DisassociateFileSystemAliasesRequest& request, const DisassociateFileSystemAliasesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
624 {
625 handler(this, request, DisassociateFileSystemAliases(request), context);
626 }
627
ListTagsForResource(const ListTagsForResourceRequest & request) const628 ListTagsForResourceOutcome FSxClient::ListTagsForResource(const ListTagsForResourceRequest& request) const
629 {
630 Aws::Http::URI uri = m_uri;
631 return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
632 }
633
ListTagsForResourceCallable(const ListTagsForResourceRequest & request) const634 ListTagsForResourceOutcomeCallable FSxClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const
635 {
636 auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } );
637 auto packagedFunction = [task]() { (*task)(); };
638 m_executor->Submit(packagedFunction);
639 return task->get_future();
640 }
641
ListTagsForResourceAsync(const ListTagsForResourceRequest & request,const ListTagsForResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const642 void FSxClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
643 {
644 m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } );
645 }
646
ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest & request,const ListTagsForResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const647 void FSxClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
648 {
649 handler(this, request, ListTagsForResource(request), context);
650 }
651
TagResource(const TagResourceRequest & request) const652 TagResourceOutcome FSxClient::TagResource(const TagResourceRequest& request) const
653 {
654 Aws::Http::URI uri = m_uri;
655 return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
656 }
657
TagResourceCallable(const TagResourceRequest & request) const658 TagResourceOutcomeCallable FSxClient::TagResourceCallable(const TagResourceRequest& request) const
659 {
660 auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } );
661 auto packagedFunction = [task]() { (*task)(); };
662 m_executor->Submit(packagedFunction);
663 return task->get_future();
664 }
665
TagResourceAsync(const TagResourceRequest & request,const TagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const666 void FSxClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
667 {
668 m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } );
669 }
670
TagResourceAsyncHelper(const TagResourceRequest & request,const TagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const671 void FSxClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
672 {
673 handler(this, request, TagResource(request), context);
674 }
675
UntagResource(const UntagResourceRequest & request) const676 UntagResourceOutcome FSxClient::UntagResource(const UntagResourceRequest& request) const
677 {
678 Aws::Http::URI uri = m_uri;
679 return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
680 }
681
UntagResourceCallable(const UntagResourceRequest & request) const682 UntagResourceOutcomeCallable FSxClient::UntagResourceCallable(const UntagResourceRequest& request) const
683 {
684 auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } );
685 auto packagedFunction = [task]() { (*task)(); };
686 m_executor->Submit(packagedFunction);
687 return task->get_future();
688 }
689
UntagResourceAsync(const UntagResourceRequest & request,const UntagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const690 void FSxClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
691 {
692 m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } );
693 }
694
UntagResourceAsyncHelper(const UntagResourceRequest & request,const UntagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const695 void FSxClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
696 {
697 handler(this, request, UntagResource(request), context);
698 }
699
UpdateFileSystem(const UpdateFileSystemRequest & request) const700 UpdateFileSystemOutcome FSxClient::UpdateFileSystem(const UpdateFileSystemRequest& request) const
701 {
702 Aws::Http::URI uri = m_uri;
703 return UpdateFileSystemOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
704 }
705
UpdateFileSystemCallable(const UpdateFileSystemRequest & request) const706 UpdateFileSystemOutcomeCallable FSxClient::UpdateFileSystemCallable(const UpdateFileSystemRequest& request) const
707 {
708 auto task = Aws::MakeShared< std::packaged_task< UpdateFileSystemOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateFileSystem(request); } );
709 auto packagedFunction = [task]() { (*task)(); };
710 m_executor->Submit(packagedFunction);
711 return task->get_future();
712 }
713
UpdateFileSystemAsync(const UpdateFileSystemRequest & request,const UpdateFileSystemResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const714 void FSxClient::UpdateFileSystemAsync(const UpdateFileSystemRequest& request, const UpdateFileSystemResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
715 {
716 m_executor->Submit( [this, request, handler, context](){ this->UpdateFileSystemAsyncHelper( request, handler, context ); } );
717 }
718
UpdateFileSystemAsyncHelper(const UpdateFileSystemRequest & request,const UpdateFileSystemResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const719 void FSxClient::UpdateFileSystemAsyncHelper(const UpdateFileSystemRequest& request, const UpdateFileSystemResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
720 {
721 handler(this, request, UpdateFileSystem(request), context);
722 }
723
UpdateStorageVirtualMachine(const UpdateStorageVirtualMachineRequest & request) const724 UpdateStorageVirtualMachineOutcome FSxClient::UpdateStorageVirtualMachine(const UpdateStorageVirtualMachineRequest& request) const
725 {
726 Aws::Http::URI uri = m_uri;
727 return UpdateStorageVirtualMachineOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
728 }
729
UpdateStorageVirtualMachineCallable(const UpdateStorageVirtualMachineRequest & request) const730 UpdateStorageVirtualMachineOutcomeCallable FSxClient::UpdateStorageVirtualMachineCallable(const UpdateStorageVirtualMachineRequest& request) const
731 {
732 auto task = Aws::MakeShared< std::packaged_task< UpdateStorageVirtualMachineOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateStorageVirtualMachine(request); } );
733 auto packagedFunction = [task]() { (*task)(); };
734 m_executor->Submit(packagedFunction);
735 return task->get_future();
736 }
737
UpdateStorageVirtualMachineAsync(const UpdateStorageVirtualMachineRequest & request,const UpdateStorageVirtualMachineResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const738 void FSxClient::UpdateStorageVirtualMachineAsync(const UpdateStorageVirtualMachineRequest& request, const UpdateStorageVirtualMachineResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
739 {
740 m_executor->Submit( [this, request, handler, context](){ this->UpdateStorageVirtualMachineAsyncHelper( request, handler, context ); } );
741 }
742
UpdateStorageVirtualMachineAsyncHelper(const UpdateStorageVirtualMachineRequest & request,const UpdateStorageVirtualMachineResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const743 void FSxClient::UpdateStorageVirtualMachineAsyncHelper(const UpdateStorageVirtualMachineRequest& request, const UpdateStorageVirtualMachineResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
744 {
745 handler(this, request, UpdateStorageVirtualMachine(request), context);
746 }
747
UpdateVolume(const UpdateVolumeRequest & request) const748 UpdateVolumeOutcome FSxClient::UpdateVolume(const UpdateVolumeRequest& request) const
749 {
750 Aws::Http::URI uri = m_uri;
751 return UpdateVolumeOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
752 }
753
UpdateVolumeCallable(const UpdateVolumeRequest & request) const754 UpdateVolumeOutcomeCallable FSxClient::UpdateVolumeCallable(const UpdateVolumeRequest& request) const
755 {
756 auto task = Aws::MakeShared< std::packaged_task< UpdateVolumeOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateVolume(request); } );
757 auto packagedFunction = [task]() { (*task)(); };
758 m_executor->Submit(packagedFunction);
759 return task->get_future();
760 }
761
UpdateVolumeAsync(const UpdateVolumeRequest & request,const UpdateVolumeResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const762 void FSxClient::UpdateVolumeAsync(const UpdateVolumeRequest& request, const UpdateVolumeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
763 {
764 m_executor->Submit( [this, request, handler, context](){ this->UpdateVolumeAsyncHelper( request, handler, context ); } );
765 }
766
UpdateVolumeAsyncHelper(const UpdateVolumeRequest & request,const UpdateVolumeResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const767 void FSxClient::UpdateVolumeAsyncHelper(const UpdateVolumeRequest& request, const UpdateVolumeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
768 {
769 handler(this, request, UpdateVolume(request), context);
770 }
771
772