AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateFileSystemResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticfilesystem/EFS_EXPORTS.h>
11#include <aws/elasticfilesystem/model/FileSystemProtectionDescription.h>
12#include <aws/elasticfilesystem/model/FileSystemSize.h>
13#include <aws/elasticfilesystem/model/LifeCycleState.h>
14#include <aws/elasticfilesystem/model/PerformanceMode.h>
15#include <aws/elasticfilesystem/model/Tag.h>
16#include <aws/elasticfilesystem/model/ThroughputMode.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace EFS {
30namespace Model {
37 public:
38 AWS_EFS_API UpdateFileSystemResult() = default;
41
43
46 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
47 template <typename OwnerIdT = Aws::String>
48 void SetOwnerId(OwnerIdT&& value) {
49 m_ownerIdHasBeenSet = true;
50 m_ownerId = std::forward<OwnerIdT>(value);
51 }
52 template <typename OwnerIdT = Aws::String>
54 SetOwnerId(std::forward<OwnerIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCreationToken() const { return m_creationToken; }
64 template <typename CreationTokenT = Aws::String>
65 void SetCreationToken(CreationTokenT&& value) {
66 m_creationTokenHasBeenSet = true;
67 m_creationToken = std::forward<CreationTokenT>(value);
68 }
69 template <typename CreationTokenT = Aws::String>
70 UpdateFileSystemResult& WithCreationToken(CreationTokenT&& value) {
71 SetCreationToken(std::forward<CreationTokenT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
81 template <typename FileSystemIdT = Aws::String>
82 void SetFileSystemId(FileSystemIdT&& value) {
83 m_fileSystemIdHasBeenSet = true;
84 m_fileSystemId = std::forward<FileSystemIdT>(value);
85 }
86 template <typename FileSystemIdT = Aws::String>
87 UpdateFileSystemResult& WithFileSystemId(FileSystemIdT&& value) {
88 SetFileSystemId(std::forward<FileSystemIdT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::String& GetFileSystemArn() const { return m_fileSystemArn; }
102 template <typename FileSystemArnT = Aws::String>
103 void SetFileSystemArn(FileSystemArnT&& value) {
104 m_fileSystemArnHasBeenSet = true;
105 m_fileSystemArn = std::forward<FileSystemArnT>(value);
106 }
107 template <typename FileSystemArnT = Aws::String>
108 UpdateFileSystemResult& WithFileSystemArn(FileSystemArnT&& value) {
109 SetFileSystemArn(std::forward<FileSystemArnT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
120 template <typename CreationTimeT = Aws::Utils::DateTime>
121 void SetCreationTime(CreationTimeT&& value) {
122 m_creationTimeHasBeenSet = true;
123 m_creationTime = std::forward<CreationTimeT>(value);
124 }
125 template <typename CreationTimeT = Aws::Utils::DateTime>
126 UpdateFileSystemResult& WithCreationTime(CreationTimeT&& value) {
127 SetCreationTime(std::forward<CreationTimeT>(value));
128 return *this;
129 }
131
133
136 inline LifeCycleState GetLifeCycleState() const { return m_lifeCycleState; }
138 m_lifeCycleStateHasBeenSet = true;
139 m_lifeCycleState = value;
140 }
142 SetLifeCycleState(value);
143 return *this;
144 }
146
148
153 inline const Aws::String& GetName() const { return m_name; }
154 template <typename NameT = Aws::String>
155 void SetName(NameT&& value) {
156 m_nameHasBeenSet = true;
157 m_name = std::forward<NameT>(value);
158 }
159 template <typename NameT = Aws::String>
161 SetName(std::forward<NameT>(value));
162 return *this;
163 }
165
167
171 inline int GetNumberOfMountTargets() const { return m_numberOfMountTargets; }
172 inline void SetNumberOfMountTargets(int value) {
173 m_numberOfMountTargetsHasBeenSet = true;
174 m_numberOfMountTargets = value;
175 }
178 return *this;
179 }
181
183
195 inline const FileSystemSize& GetSizeInBytes() const { return m_sizeInBytes; }
196 template <typename SizeInBytesT = FileSystemSize>
197 void SetSizeInBytes(SizeInBytesT&& value) {
198 m_sizeInBytesHasBeenSet = true;
199 m_sizeInBytes = std::forward<SizeInBytesT>(value);
200 }
201 template <typename SizeInBytesT = FileSystemSize>
203 SetSizeInBytes(std::forward<SizeInBytesT>(value));
204 return *this;
205 }
207
209
212 inline PerformanceMode GetPerformanceMode() const { return m_performanceMode; }
214 m_performanceModeHasBeenSet = true;
215 m_performanceMode = value;
216 }
218 SetPerformanceMode(value);
219 return *this;
220 }
222
224
228 inline bool GetEncrypted() const { return m_encrypted; }
229 inline void SetEncrypted(bool value) {
230 m_encryptedHasBeenSet = true;
231 m_encrypted = value;
232 }
234 SetEncrypted(value);
235 return *this;
236 }
238
240
243 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
244 template <typename KmsKeyIdT = Aws::String>
245 void SetKmsKeyId(KmsKeyIdT&& value) {
246 m_kmsKeyIdHasBeenSet = true;
247 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
248 }
249 template <typename KmsKeyIdT = Aws::String>
251 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
252 return *this;
253 }
255
257
262 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
264 m_throughputModeHasBeenSet = true;
265 m_throughputMode = value;
266 }
268 SetThroughputMode(value);
269 return *this;
270 }
272
274
279 inline double GetProvisionedThroughputInMibps() const { return m_provisionedThroughputInMibps; }
280 inline void SetProvisionedThroughputInMibps(double value) {
281 m_provisionedThroughputInMibpsHasBeenSet = true;
282 m_provisionedThroughputInMibps = value;
283 }
286 return *this;
287 }
289
291
298 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
299 template <typename AvailabilityZoneNameT = Aws::String>
300 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) {
301 m_availabilityZoneNameHasBeenSet = true;
302 m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value);
303 }
304 template <typename AvailabilityZoneNameT = Aws::String>
305 UpdateFileSystemResult& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) {
306 SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value));
307 return *this;
308 }
310
312
319 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
320 template <typename AvailabilityZoneIdT = Aws::String>
321 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
322 m_availabilityZoneIdHasBeenSet = true;
323 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
324 }
325 template <typename AvailabilityZoneIdT = Aws::String>
326 UpdateFileSystemResult& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
327 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
328 return *this;
329 }
331
333
337 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
338 template <typename TagsT = Aws::Vector<Tag>>
339 void SetTags(TagsT&& value) {
340 m_tagsHasBeenSet = true;
341 m_tags = std::forward<TagsT>(value);
342 }
343 template <typename TagsT = Aws::Vector<Tag>>
345 SetTags(std::forward<TagsT>(value));
346 return *this;
347 }
348 template <typename TagsT = Tag>
350 m_tagsHasBeenSet = true;
351 m_tags.emplace_back(std::forward<TagsT>(value));
352 return *this;
353 }
355
357
360 inline const FileSystemProtectionDescription& GetFileSystemProtection() const { return m_fileSystemProtection; }
361 template <typename FileSystemProtectionT = FileSystemProtectionDescription>
362 void SetFileSystemProtection(FileSystemProtectionT&& value) {
363 m_fileSystemProtectionHasBeenSet = true;
364 m_fileSystemProtection = std::forward<FileSystemProtectionT>(value);
365 }
366 template <typename FileSystemProtectionT = FileSystemProtectionDescription>
367 UpdateFileSystemResult& WithFileSystemProtection(FileSystemProtectionT&& value) {
368 SetFileSystemProtection(std::forward<FileSystemProtectionT>(value));
369 return *this;
370 }
372
374
375 inline const Aws::String& GetRequestId() const { return m_requestId; }
376 template <typename RequestIdT = Aws::String>
377 void SetRequestId(RequestIdT&& value) {
378 m_requestIdHasBeenSet = true;
379 m_requestId = std::forward<RequestIdT>(value);
380 }
381 template <typename RequestIdT = Aws::String>
383 SetRequestId(std::forward<RequestIdT>(value));
384 return *this;
385 }
387 private:
388 Aws::String m_ownerId;
389
390 Aws::String m_creationToken;
391
392 Aws::String m_fileSystemId;
393
394 Aws::String m_fileSystemArn;
395
396 Aws::Utils::DateTime m_creationTime{};
397
398 LifeCycleState m_lifeCycleState{LifeCycleState::NOT_SET};
399
400 Aws::String m_name;
401
402 int m_numberOfMountTargets{0};
403
404 FileSystemSize m_sizeInBytes;
405
406 PerformanceMode m_performanceMode{PerformanceMode::NOT_SET};
407
408 bool m_encrypted{false};
409
410 Aws::String m_kmsKeyId;
411
412 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
413
414 double m_provisionedThroughputInMibps{0.0};
415
416 Aws::String m_availabilityZoneName;
417
418 Aws::String m_availabilityZoneId;
419
420 Aws::Vector<Tag> m_tags;
421
422 FileSystemProtectionDescription m_fileSystemProtection;
423
424 Aws::String m_requestId;
425 bool m_ownerIdHasBeenSet = false;
426 bool m_creationTokenHasBeenSet = false;
427 bool m_fileSystemIdHasBeenSet = false;
428 bool m_fileSystemArnHasBeenSet = false;
429 bool m_creationTimeHasBeenSet = false;
430 bool m_lifeCycleStateHasBeenSet = false;
431 bool m_nameHasBeenSet = false;
432 bool m_numberOfMountTargetsHasBeenSet = false;
433 bool m_sizeInBytesHasBeenSet = false;
434 bool m_performanceModeHasBeenSet = false;
435 bool m_encryptedHasBeenSet = false;
436 bool m_kmsKeyIdHasBeenSet = false;
437 bool m_throughputModeHasBeenSet = false;
438 bool m_provisionedThroughputInMibpsHasBeenSet = false;
439 bool m_availabilityZoneNameHasBeenSet = false;
440 bool m_availabilityZoneIdHasBeenSet = false;
441 bool m_tagsHasBeenSet = false;
442 bool m_fileSystemProtectionHasBeenSet = false;
443 bool m_requestIdHasBeenSet = false;
444};
445
446} // namespace Model
447} // namespace EFS
448} // 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
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