AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateFileSystemResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticfilesystem/EFS_EXPORTS.h>
12#include <aws/elasticfilesystem/model/FileSystemProtectionDescription.h>
13#include <aws/elasticfilesystem/model/FileSystemSize.h>
14#include <aws/elasticfilesystem/model/LifeCycleState.h>
15#include <aws/elasticfilesystem/model/PerformanceMode.h>
16#include <aws/elasticfilesystem/model/Tag.h>
17#include <aws/elasticfilesystem/model/ThroughputMode.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace EFS {
31namespace Model {
38 public:
39 AWS_EFS_API UpdateFileSystemResult() = default;
42
44
47 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
48 template <typename OwnerIdT = Aws::String>
49 void SetOwnerId(OwnerIdT&& value) {
50 m_ownerIdHasBeenSet = true;
51 m_ownerId = std::forward<OwnerIdT>(value);
52 }
53 template <typename OwnerIdT = Aws::String>
55 SetOwnerId(std::forward<OwnerIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCreationToken() const { return m_creationToken; }
65 template <typename CreationTokenT = Aws::String>
66 void SetCreationToken(CreationTokenT&& value) {
67 m_creationTokenHasBeenSet = true;
68 m_creationToken = std::forward<CreationTokenT>(value);
69 }
70 template <typename CreationTokenT = Aws::String>
71 UpdateFileSystemResult& WithCreationToken(CreationTokenT&& value) {
72 SetCreationToken(std::forward<CreationTokenT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
82 template <typename FileSystemIdT = Aws::String>
83 void SetFileSystemId(FileSystemIdT&& value) {
84 m_fileSystemIdHasBeenSet = true;
85 m_fileSystemId = std::forward<FileSystemIdT>(value);
86 }
87 template <typename FileSystemIdT = Aws::String>
88 UpdateFileSystemResult& WithFileSystemId(FileSystemIdT&& value) {
89 SetFileSystemId(std::forward<FileSystemIdT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::String& GetFileSystemArn() const { return m_fileSystemArn; }
103 template <typename FileSystemArnT = Aws::String>
104 void SetFileSystemArn(FileSystemArnT&& value) {
105 m_fileSystemArnHasBeenSet = true;
106 m_fileSystemArn = std::forward<FileSystemArnT>(value);
107 }
108 template <typename FileSystemArnT = Aws::String>
109 UpdateFileSystemResult& WithFileSystemArn(FileSystemArnT&& value) {
110 SetFileSystemArn(std::forward<FileSystemArnT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
121 template <typename CreationTimeT = Aws::Utils::DateTime>
122 void SetCreationTime(CreationTimeT&& value) {
123 m_creationTimeHasBeenSet = true;
124 m_creationTime = std::forward<CreationTimeT>(value);
125 }
126 template <typename CreationTimeT = Aws::Utils::DateTime>
127 UpdateFileSystemResult& WithCreationTime(CreationTimeT&& value) {
128 SetCreationTime(std::forward<CreationTimeT>(value));
129 return *this;
130 }
132
134
137 inline LifeCycleState GetLifeCycleState() const { return m_lifeCycleState; }
139 m_lifeCycleStateHasBeenSet = true;
140 m_lifeCycleState = value;
141 }
143 SetLifeCycleState(value);
144 return *this;
145 }
147
149
154 inline const Aws::String& GetName() const { return m_name; }
155 template <typename NameT = Aws::String>
156 void SetName(NameT&& value) {
157 m_nameHasBeenSet = true;
158 m_name = std::forward<NameT>(value);
159 }
160 template <typename NameT = Aws::String>
162 SetName(std::forward<NameT>(value));
163 return *this;
164 }
166
168
172 inline int GetNumberOfMountTargets() const { return m_numberOfMountTargets; }
173 inline void SetNumberOfMountTargets(int value) {
174 m_numberOfMountTargetsHasBeenSet = true;
175 m_numberOfMountTargets = value;
176 }
179 return *this;
180 }
182
184
196 inline const FileSystemSize& GetSizeInBytes() const { return m_sizeInBytes; }
197 template <typename SizeInBytesT = FileSystemSize>
198 void SetSizeInBytes(SizeInBytesT&& value) {
199 m_sizeInBytesHasBeenSet = true;
200 m_sizeInBytes = std::forward<SizeInBytesT>(value);
201 }
202 template <typename SizeInBytesT = FileSystemSize>
204 SetSizeInBytes(std::forward<SizeInBytesT>(value));
205 return *this;
206 }
208
210
213 inline PerformanceMode GetPerformanceMode() const { return m_performanceMode; }
215 m_performanceModeHasBeenSet = true;
216 m_performanceMode = value;
217 }
219 SetPerformanceMode(value);
220 return *this;
221 }
223
225
229 inline bool GetEncrypted() const { return m_encrypted; }
230 inline void SetEncrypted(bool value) {
231 m_encryptedHasBeenSet = true;
232 m_encrypted = value;
233 }
235 SetEncrypted(value);
236 return *this;
237 }
239
241
244 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
245 template <typename KmsKeyIdT = Aws::String>
246 void SetKmsKeyId(KmsKeyIdT&& value) {
247 m_kmsKeyIdHasBeenSet = true;
248 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
249 }
250 template <typename KmsKeyIdT = Aws::String>
252 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
253 return *this;
254 }
256
258
263 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
265 m_throughputModeHasBeenSet = true;
266 m_throughputMode = value;
267 }
269 SetThroughputMode(value);
270 return *this;
271 }
273
275
280 inline double GetProvisionedThroughputInMibps() const { return m_provisionedThroughputInMibps; }
281 inline void SetProvisionedThroughputInMibps(double value) {
282 m_provisionedThroughputInMibpsHasBeenSet = true;
283 m_provisionedThroughputInMibps = value;
284 }
287 return *this;
288 }
290
292
299 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
300 template <typename AvailabilityZoneNameT = Aws::String>
301 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) {
302 m_availabilityZoneNameHasBeenSet = true;
303 m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value);
304 }
305 template <typename AvailabilityZoneNameT = Aws::String>
306 UpdateFileSystemResult& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) {
307 SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value));
308 return *this;
309 }
311
313
320 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
321 template <typename AvailabilityZoneIdT = Aws::String>
322 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
323 m_availabilityZoneIdHasBeenSet = true;
324 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
325 }
326 template <typename AvailabilityZoneIdT = Aws::String>
327 UpdateFileSystemResult& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
328 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
329 return *this;
330 }
332
334
338 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
339 template <typename TagsT = Aws::Vector<Tag>>
340 void SetTags(TagsT&& value) {
341 m_tagsHasBeenSet = true;
342 m_tags = std::forward<TagsT>(value);
343 }
344 template <typename TagsT = Aws::Vector<Tag>>
346 SetTags(std::forward<TagsT>(value));
347 return *this;
348 }
349 template <typename TagsT = Tag>
351 m_tagsHasBeenSet = true;
352 m_tags.emplace_back(std::forward<TagsT>(value));
353 return *this;
354 }
356
358
361 inline const FileSystemProtectionDescription& GetFileSystemProtection() const { return m_fileSystemProtection; }
362 template <typename FileSystemProtectionT = FileSystemProtectionDescription>
363 void SetFileSystemProtection(FileSystemProtectionT&& value) {
364 m_fileSystemProtectionHasBeenSet = true;
365 m_fileSystemProtection = std::forward<FileSystemProtectionT>(value);
366 }
367 template <typename FileSystemProtectionT = FileSystemProtectionDescription>
368 UpdateFileSystemResult& WithFileSystemProtection(FileSystemProtectionT&& value) {
369 SetFileSystemProtection(std::forward<FileSystemProtectionT>(value));
370 return *this;
371 }
373
375
376 inline const Aws::String& GetRequestId() const { return m_requestId; }
377 template <typename RequestIdT = Aws::String>
378 void SetRequestId(RequestIdT&& value) {
379 m_requestIdHasBeenSet = true;
380 m_requestId = std::forward<RequestIdT>(value);
381 }
382 template <typename RequestIdT = Aws::String>
384 SetRequestId(std::forward<RequestIdT>(value));
385 return *this;
386 }
388 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
389
390 private:
391 Aws::String m_ownerId;
392
393 Aws::String m_creationToken;
394
395 Aws::String m_fileSystemId;
396
397 Aws::String m_fileSystemArn;
398
399 Aws::Utils::DateTime m_creationTime{};
400
401 LifeCycleState m_lifeCycleState{LifeCycleState::NOT_SET};
402
403 Aws::String m_name;
404
405 int m_numberOfMountTargets{0};
406
407 FileSystemSize m_sizeInBytes;
408
409 PerformanceMode m_performanceMode{PerformanceMode::NOT_SET};
410
411 bool m_encrypted{false};
412
413 Aws::String m_kmsKeyId;
414
415 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
416
417 double m_provisionedThroughputInMibps{0.0};
418
419 Aws::String m_availabilityZoneName;
420
421 Aws::String m_availabilityZoneId;
422
423 Aws::Vector<Tag> m_tags;
424
425 FileSystemProtectionDescription m_fileSystemProtection;
426
427 Aws::String m_requestId;
428 Aws::Http::HttpResponseCode m_HttpResponseCode;
429 bool m_ownerIdHasBeenSet = false;
430 bool m_creationTokenHasBeenSet = false;
431 bool m_fileSystemIdHasBeenSet = false;
432 bool m_fileSystemArnHasBeenSet = false;
433 bool m_creationTimeHasBeenSet = false;
434 bool m_lifeCycleStateHasBeenSet = false;
435 bool m_nameHasBeenSet = false;
436 bool m_numberOfMountTargetsHasBeenSet = false;
437 bool m_sizeInBytesHasBeenSet = false;
438 bool m_performanceModeHasBeenSet = false;
439 bool m_encryptedHasBeenSet = false;
440 bool m_kmsKeyIdHasBeenSet = false;
441 bool m_throughputModeHasBeenSet = false;
442 bool m_provisionedThroughputInMibpsHasBeenSet = false;
443 bool m_availabilityZoneNameHasBeenSet = false;
444 bool m_availabilityZoneIdHasBeenSet = false;
445 bool m_tagsHasBeenSet = false;
446 bool m_fileSystemProtectionHasBeenSet = false;
447 bool m_requestIdHasBeenSet = false;
448};
449
450} // namespace Model
451} // namespace EFS
452} // namespace Aws
UpdateFileSystemResult & WithName(NameT &&value)
AWS_EFS_API UpdateFileSystemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetAvailabilityZoneName() const
UpdateFileSystemResult & WithRequestId(RequestIdT &&value)
UpdateFileSystemResult & WithSizeInBytes(SizeInBytesT &&value)
UpdateFileSystemResult & WithPerformanceMode(PerformanceMode value)
const Aws::Vector< Tag > & GetTags() const
UpdateFileSystemResult & WithCreationToken(CreationTokenT &&value)
const FileSystemSize & GetSizeInBytes() const
UpdateFileSystemResult & AddTags(TagsT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
UpdateFileSystemResult & WithFileSystemProtection(FileSystemProtectionT &&value)
UpdateFileSystemResult & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
UpdateFileSystemResult & WithCreationTime(CreationTimeT &&value)
void SetAvailabilityZoneName(AvailabilityZoneNameT &&value)
UpdateFileSystemResult & WithKmsKeyId(KmsKeyIdT &&value)
UpdateFileSystemResult & WithEncrypted(bool value)
UpdateFileSystemResult & WithNumberOfMountTargets(int value)
UpdateFileSystemResult & WithFileSystemId(FileSystemIdT &&value)
const Aws::String & GetAvailabilityZoneId() const
AWS_EFS_API UpdateFileSystemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const FileSystemProtectionDescription & GetFileSystemProtection() const
UpdateFileSystemResult & WithOwnerId(OwnerIdT &&value)
void SetFileSystemProtection(FileSystemProtectionT &&value)
UpdateFileSystemResult & WithLifeCycleState(LifeCycleState value)
UpdateFileSystemResult & WithTags(TagsT &&value)
UpdateFileSystemResult & WithThroughputMode(ThroughputMode value)
AWS_EFS_API UpdateFileSystemResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateFileSystemResult & WithAvailabilityZoneName(AvailabilityZoneNameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
UpdateFileSystemResult & WithProvisionedThroughputInMibps(double value)
void SetCreationToken(CreationTokenT &&value)
UpdateFileSystemResult & WithFileSystemArn(FileSystemArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue