AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FileSystemDescription.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 {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EFS {
28namespace Model {
29
36 public:
37 AWS_EFS_API FileSystemDescription() = default;
41
43
46 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
47 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
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 inline bool CreationTokenHasBeenSet() const { return m_creationTokenHasBeenSet; }
66 template <typename CreationTokenT = Aws::String>
67 void SetCreationToken(CreationTokenT&& value) {
68 m_creationTokenHasBeenSet = true;
69 m_creationToken = std::forward<CreationTokenT>(value);
70 }
71 template <typename CreationTokenT = Aws::String>
72 FileSystemDescription& WithCreationToken(CreationTokenT&& value) {
73 SetCreationToken(std::forward<CreationTokenT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
83 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
84 template <typename FileSystemIdT = Aws::String>
85 void SetFileSystemId(FileSystemIdT&& value) {
86 m_fileSystemIdHasBeenSet = true;
87 m_fileSystemId = std::forward<FileSystemIdT>(value);
88 }
89 template <typename FileSystemIdT = Aws::String>
90 FileSystemDescription& WithFileSystemId(FileSystemIdT&& value) {
91 SetFileSystemId(std::forward<FileSystemIdT>(value));
92 return *this;
93 }
95
97
104 inline const Aws::String& GetFileSystemArn() const { return m_fileSystemArn; }
105 inline bool FileSystemArnHasBeenSet() const { return m_fileSystemArnHasBeenSet; }
106 template <typename FileSystemArnT = Aws::String>
107 void SetFileSystemArn(FileSystemArnT&& value) {
108 m_fileSystemArnHasBeenSet = true;
109 m_fileSystemArn = std::forward<FileSystemArnT>(value);
110 }
111 template <typename FileSystemArnT = Aws::String>
112 FileSystemDescription& WithFileSystemArn(FileSystemArnT&& value) {
113 SetFileSystemArn(std::forward<FileSystemArnT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
124 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
125 template <typename CreationTimeT = Aws::Utils::DateTime>
126 void SetCreationTime(CreationTimeT&& value) {
127 m_creationTimeHasBeenSet = true;
128 m_creationTime = std::forward<CreationTimeT>(value);
129 }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
131 FileSystemDescription& WithCreationTime(CreationTimeT&& value) {
132 SetCreationTime(std::forward<CreationTimeT>(value));
133 return *this;
134 }
136
138
141 inline LifeCycleState GetLifeCycleState() const { return m_lifeCycleState; }
142 inline bool LifeCycleStateHasBeenSet() const { return m_lifeCycleStateHasBeenSet; }
144 m_lifeCycleStateHasBeenSet = true;
145 m_lifeCycleState = value;
146 }
148 SetLifeCycleState(value);
149 return *this;
150 }
152
154
159 inline const Aws::String& GetName() const { return m_name; }
160 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
161 template <typename NameT = Aws::String>
162 void SetName(NameT&& value) {
163 m_nameHasBeenSet = true;
164 m_name = std::forward<NameT>(value);
165 }
166 template <typename NameT = Aws::String>
168 SetName(std::forward<NameT>(value));
169 return *this;
170 }
172
174
178 inline int GetNumberOfMountTargets() const { return m_numberOfMountTargets; }
179 inline bool NumberOfMountTargetsHasBeenSet() const { return m_numberOfMountTargetsHasBeenSet; }
180 inline void SetNumberOfMountTargets(int value) {
181 m_numberOfMountTargetsHasBeenSet = true;
182 m_numberOfMountTargets = value;
183 }
186 return *this;
187 }
189
191
203 inline const FileSystemSize& GetSizeInBytes() const { return m_sizeInBytes; }
204 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
205 template <typename SizeInBytesT = FileSystemSize>
206 void SetSizeInBytes(SizeInBytesT&& value) {
207 m_sizeInBytesHasBeenSet = true;
208 m_sizeInBytes = std::forward<SizeInBytesT>(value);
209 }
210 template <typename SizeInBytesT = FileSystemSize>
211 FileSystemDescription& WithSizeInBytes(SizeInBytesT&& value) {
212 SetSizeInBytes(std::forward<SizeInBytesT>(value));
213 return *this;
214 }
216
218
221 inline PerformanceMode GetPerformanceMode() const { return m_performanceMode; }
222 inline bool PerformanceModeHasBeenSet() const { return m_performanceModeHasBeenSet; }
224 m_performanceModeHasBeenSet = true;
225 m_performanceMode = value;
226 }
228 SetPerformanceMode(value);
229 return *this;
230 }
232
234
238 inline bool GetEncrypted() const { return m_encrypted; }
239 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
240 inline void SetEncrypted(bool value) {
241 m_encryptedHasBeenSet = true;
242 m_encrypted = value;
243 }
245 SetEncrypted(value);
246 return *this;
247 }
249
251
254 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
255 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
256 template <typename KmsKeyIdT = Aws::String>
257 void SetKmsKeyId(KmsKeyIdT&& value) {
258 m_kmsKeyIdHasBeenSet = true;
259 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
260 }
261 template <typename KmsKeyIdT = Aws::String>
263 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
264 return *this;
265 }
267
269
274 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
275 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
277 m_throughputModeHasBeenSet = true;
278 m_throughputMode = value;
279 }
281 SetThroughputMode(value);
282 return *this;
283 }
285
287
292 inline double GetProvisionedThroughputInMibps() const { return m_provisionedThroughputInMibps; }
293 inline bool ProvisionedThroughputInMibpsHasBeenSet() const { return m_provisionedThroughputInMibpsHasBeenSet; }
294 inline void SetProvisionedThroughputInMibps(double value) {
295 m_provisionedThroughputInMibpsHasBeenSet = true;
296 m_provisionedThroughputInMibps = value;
297 }
300 return *this;
301 }
303
305
312 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
313 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
314 template <typename AvailabilityZoneNameT = Aws::String>
315 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) {
316 m_availabilityZoneNameHasBeenSet = true;
317 m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value);
318 }
319 template <typename AvailabilityZoneNameT = Aws::String>
320 FileSystemDescription& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) {
321 SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value));
322 return *this;
323 }
325
327
334 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
335 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
336 template <typename AvailabilityZoneIdT = Aws::String>
337 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
338 m_availabilityZoneIdHasBeenSet = true;
339 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
340 }
341 template <typename AvailabilityZoneIdT = Aws::String>
342 FileSystemDescription& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
343 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
344 return *this;
345 }
347
349
353 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
354 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
355 template <typename TagsT = Aws::Vector<Tag>>
356 void SetTags(TagsT&& value) {
357 m_tagsHasBeenSet = true;
358 m_tags = std::forward<TagsT>(value);
359 }
360 template <typename TagsT = Aws::Vector<Tag>>
362 SetTags(std::forward<TagsT>(value));
363 return *this;
364 }
365 template <typename TagsT = Tag>
367 m_tagsHasBeenSet = true;
368 m_tags.emplace_back(std::forward<TagsT>(value));
369 return *this;
370 }
372
374
377 inline const FileSystemProtectionDescription& GetFileSystemProtection() const { return m_fileSystemProtection; }
378 inline bool FileSystemProtectionHasBeenSet() const { return m_fileSystemProtectionHasBeenSet; }
379 template <typename FileSystemProtectionT = FileSystemProtectionDescription>
380 void SetFileSystemProtection(FileSystemProtectionT&& value) {
381 m_fileSystemProtectionHasBeenSet = true;
382 m_fileSystemProtection = std::forward<FileSystemProtectionT>(value);
383 }
384 template <typename FileSystemProtectionT = FileSystemProtectionDescription>
385 FileSystemDescription& WithFileSystemProtection(FileSystemProtectionT&& value) {
386 SetFileSystemProtection(std::forward<FileSystemProtectionT>(value));
387 return *this;
388 }
390
392
393 inline const Aws::String& GetRequestId() const { return m_requestId; }
394 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
395 template <typename RequestIdT = Aws::String>
396 void SetRequestId(RequestIdT&& value) {
397 m_requestIdHasBeenSet = true;
398 m_requestId = std::forward<RequestIdT>(value);
399 }
400 template <typename RequestIdT = Aws::String>
402 SetRequestId(std::forward<RequestIdT>(value));
403 return *this;
404 }
406 private:
407 Aws::String m_ownerId;
408
409 Aws::String m_creationToken;
410
411 Aws::String m_fileSystemId;
412
413 Aws::String m_fileSystemArn;
414
415 Aws::Utils::DateTime m_creationTime{};
416
417 LifeCycleState m_lifeCycleState{LifeCycleState::NOT_SET};
418
419 Aws::String m_name;
420
421 int m_numberOfMountTargets{0};
422
423 FileSystemSize m_sizeInBytes;
424
425 PerformanceMode m_performanceMode{PerformanceMode::NOT_SET};
426
427 bool m_encrypted{false};
428
429 Aws::String m_kmsKeyId;
430
431 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
432
433 double m_provisionedThroughputInMibps{0.0};
434
435 Aws::String m_availabilityZoneName;
436
437 Aws::String m_availabilityZoneId;
438
439 Aws::Vector<Tag> m_tags;
440
441 FileSystemProtectionDescription m_fileSystemProtection;
442
443 Aws::String m_requestId;
444 bool m_ownerIdHasBeenSet = false;
445 bool m_creationTokenHasBeenSet = false;
446 bool m_fileSystemIdHasBeenSet = false;
447 bool m_fileSystemArnHasBeenSet = false;
448 bool m_creationTimeHasBeenSet = false;
449 bool m_lifeCycleStateHasBeenSet = false;
450 bool m_nameHasBeenSet = false;
451 bool m_numberOfMountTargetsHasBeenSet = false;
452 bool m_sizeInBytesHasBeenSet = false;
453 bool m_performanceModeHasBeenSet = false;
454 bool m_encryptedHasBeenSet = false;
455 bool m_kmsKeyIdHasBeenSet = false;
456 bool m_throughputModeHasBeenSet = false;
457 bool m_provisionedThroughputInMibpsHasBeenSet = false;
458 bool m_availabilityZoneNameHasBeenSet = false;
459 bool m_availabilityZoneIdHasBeenSet = false;
460 bool m_tagsHasBeenSet = false;
461 bool m_fileSystemProtectionHasBeenSet = false;
462 bool m_requestIdHasBeenSet = false;
463};
464
465} // namespace Model
466} // namespace EFS
467} // namespace Aws
void SetPerformanceMode(PerformanceMode value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetCreationToken() const
const FileSystemProtectionDescription & GetFileSystemProtection() const
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
FileSystemDescription & WithOwnerId(OwnerIdT &&value)
FileSystemDescription & WithName(NameT &&value)
FileSystemDescription & AddTags(TagsT &&value)
void SetFileSystemArn(FileSystemArnT &&value)
FileSystemDescription & WithRequestId(RequestIdT &&value)
const Aws::String & GetAvailabilityZoneName() const
AWS_EFS_API FileSystemDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
FileSystemDescription & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
FileSystemDescription & WithFileSystemId(FileSystemIdT &&value)
void SetAvailabilityZoneName(AvailabilityZoneNameT &&value)
const FileSystemSize & GetSizeInBytes() const
void SetCreationToken(CreationTokenT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
FileSystemDescription & WithCreationTime(CreationTimeT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
FileSystemDescription & WithKmsKeyId(KmsKeyIdT &&value)
void SetFileSystemId(FileSystemIdT &&value)
const Aws::String & GetAvailabilityZoneId() const
FileSystemDescription & WithSizeInBytes(SizeInBytesT &&value)
FileSystemDescription & WithProvisionedThroughputInMibps(double value)
AWS_EFS_API FileSystemDescription()=default
void SetFileSystemProtection(FileSystemProtectionT &&value)
FileSystemDescription & WithLifeCycleState(LifeCycleState value)
FileSystemDescription & WithFileSystemArn(FileSystemArnT &&value)
FileSystemDescription & WithPerformanceMode(PerformanceMode value)
FileSystemDescription & WithNumberOfMountTargets(int value)
FileSystemDescription & WithAvailabilityZoneName(AvailabilityZoneNameT &&value)
FileSystemDescription & WithTags(TagsT &&value)
FileSystemDescription & WithCreationToken(CreationTokenT &&value)
FileSystemDescription & WithEncrypted(bool value)
FileSystemDescription & WithFileSystemProtection(FileSystemProtectionT &&value)
FileSystemDescription & WithThroughputMode(ThroughputMode value)
const Aws::String & GetFileSystemId() const
AWS_EFS_API FileSystemDescription(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue