AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FileSystemDescription.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/elasticfilesystem/model/LifeCycleState.h>
11#include <aws/elasticfilesystem/model/FileSystemSize.h>
12#include <aws/elasticfilesystem/model/PerformanceMode.h>
13#include <aws/elasticfilesystem/model/ThroughputMode.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/elasticfilesystem/model/FileSystemProtectionDescription.h>
16#include <aws/elasticfilesystem/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace EFS
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_EFS_API FileSystemDescription() = default;
46
47
49
52 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
53 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
54 template<typename OwnerIdT = Aws::String>
55 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
56 template<typename OwnerIdT = Aws::String>
57 FileSystemDescription& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
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) { m_creationTokenHasBeenSet = true; m_creationToken = std::forward<CreationTokenT>(value); }
68 template<typename CreationTokenT = Aws::String>
69 FileSystemDescription& WithCreationToken(CreationTokenT&& value) { SetCreationToken(std::forward<CreationTokenT>(value)); return *this;}
71
73
76 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
77 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
78 template<typename FileSystemIdT = Aws::String>
79 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
80 template<typename FileSystemIdT = Aws::String>
81 FileSystemDescription& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
83
85
92 inline const Aws::String& GetFileSystemArn() const { return m_fileSystemArn; }
93 inline bool FileSystemArnHasBeenSet() const { return m_fileSystemArnHasBeenSet; }
94 template<typename FileSystemArnT = Aws::String>
95 void SetFileSystemArn(FileSystemArnT&& value) { m_fileSystemArnHasBeenSet = true; m_fileSystemArn = std::forward<FileSystemArnT>(value); }
96 template<typename FileSystemArnT = Aws::String>
97 FileSystemDescription& WithFileSystemArn(FileSystemArnT&& value) { SetFileSystemArn(std::forward<FileSystemArnT>(value)); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
106 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
107 template<typename CreationTimeT = Aws::Utils::DateTime>
108 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
109 template<typename CreationTimeT = Aws::Utils::DateTime>
110 FileSystemDescription& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
112
114
117 inline LifeCycleState GetLifeCycleState() const { return m_lifeCycleState; }
118 inline bool LifeCycleStateHasBeenSet() const { return m_lifeCycleStateHasBeenSet; }
119 inline void SetLifeCycleState(LifeCycleState value) { m_lifeCycleStateHasBeenSet = true; m_lifeCycleState = value; }
122
124
129 inline const Aws::String& GetName() const { return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 template<typename NameT = Aws::String>
132 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
133 template<typename NameT = Aws::String>
134 FileSystemDescription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
136
138
142 inline int GetNumberOfMountTargets() const { return m_numberOfMountTargets; }
143 inline bool NumberOfMountTargetsHasBeenSet() const { return m_numberOfMountTargetsHasBeenSet; }
144 inline void SetNumberOfMountTargets(int value) { m_numberOfMountTargetsHasBeenSet = true; m_numberOfMountTargets = value; }
147
149
161 inline const FileSystemSize& GetSizeInBytes() const { return m_sizeInBytes; }
162 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
163 template<typename SizeInBytesT = FileSystemSize>
164 void SetSizeInBytes(SizeInBytesT&& value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = std::forward<SizeInBytesT>(value); }
165 template<typename SizeInBytesT = FileSystemSize>
166 FileSystemDescription& WithSizeInBytes(SizeInBytesT&& value) { SetSizeInBytes(std::forward<SizeInBytesT>(value)); return *this;}
168
170
173 inline PerformanceMode GetPerformanceMode() const { return m_performanceMode; }
174 inline bool PerformanceModeHasBeenSet() const { return m_performanceModeHasBeenSet; }
175 inline void SetPerformanceMode(PerformanceMode value) { m_performanceModeHasBeenSet = true; m_performanceMode = value; }
178
180
184 inline bool GetEncrypted() const { return m_encrypted; }
185 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
186 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
187 inline FileSystemDescription& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
189
191
194 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
195 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
196 template<typename KmsKeyIdT = Aws::String>
197 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
198 template<typename KmsKeyIdT = Aws::String>
199 FileSystemDescription& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
201
203
208 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
209 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
210 inline void SetThroughputMode(ThroughputMode value) { m_throughputModeHasBeenSet = true; m_throughputMode = value; }
213
215
220 inline double GetProvisionedThroughputInMibps() const { return m_provisionedThroughputInMibps; }
221 inline bool ProvisionedThroughputInMibpsHasBeenSet() const { return m_provisionedThroughputInMibpsHasBeenSet; }
222 inline void SetProvisionedThroughputInMibps(double value) { m_provisionedThroughputInMibpsHasBeenSet = true; m_provisionedThroughputInMibps = value; }
225
227
234 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
235 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
236 template<typename AvailabilityZoneNameT = Aws::String>
237 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value); }
238 template<typename AvailabilityZoneNameT = Aws::String>
239 FileSystemDescription& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) { SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value)); return *this;}
241
243
250 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
251 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
252 template<typename AvailabilityZoneIdT = Aws::String>
253 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
254 template<typename AvailabilityZoneIdT = Aws::String>
255 FileSystemDescription& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
257
259
263 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template<typename TagsT = Aws::Vector<Tag>>
266 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
267 template<typename TagsT = Aws::Vector<Tag>>
268 FileSystemDescription& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
269 template<typename TagsT = Tag>
270 FileSystemDescription& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
272
274
277 inline const FileSystemProtectionDescription& GetFileSystemProtection() const { return m_fileSystemProtection; }
278 inline bool FileSystemProtectionHasBeenSet() const { return m_fileSystemProtectionHasBeenSet; }
279 template<typename FileSystemProtectionT = FileSystemProtectionDescription>
280 void SetFileSystemProtection(FileSystemProtectionT&& value) { m_fileSystemProtectionHasBeenSet = true; m_fileSystemProtection = std::forward<FileSystemProtectionT>(value); }
281 template<typename FileSystemProtectionT = FileSystemProtectionDescription>
282 FileSystemDescription& WithFileSystemProtection(FileSystemProtectionT&& value) { SetFileSystemProtection(std::forward<FileSystemProtectionT>(value)); return *this;}
284
286
287 inline const Aws::String& GetRequestId() const { return m_requestId; }
288 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
289 template<typename RequestIdT = Aws::String>
290 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
291 template<typename RequestIdT = Aws::String>
292 FileSystemDescription& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
294 private:
295
296 Aws::String m_ownerId;
297 bool m_ownerIdHasBeenSet = false;
298
299 Aws::String m_creationToken;
300 bool m_creationTokenHasBeenSet = false;
301
302 Aws::String m_fileSystemId;
303 bool m_fileSystemIdHasBeenSet = false;
304
305 Aws::String m_fileSystemArn;
306 bool m_fileSystemArnHasBeenSet = false;
307
308 Aws::Utils::DateTime m_creationTime{};
309 bool m_creationTimeHasBeenSet = false;
310
311 LifeCycleState m_lifeCycleState{LifeCycleState::NOT_SET};
312 bool m_lifeCycleStateHasBeenSet = false;
313
314 Aws::String m_name;
315 bool m_nameHasBeenSet = false;
316
317 int m_numberOfMountTargets{0};
318 bool m_numberOfMountTargetsHasBeenSet = false;
319
320 FileSystemSize m_sizeInBytes;
321 bool m_sizeInBytesHasBeenSet = false;
322
323 PerformanceMode m_performanceMode{PerformanceMode::NOT_SET};
324 bool m_performanceModeHasBeenSet = false;
325
326 bool m_encrypted{false};
327 bool m_encryptedHasBeenSet = false;
328
329 Aws::String m_kmsKeyId;
330 bool m_kmsKeyIdHasBeenSet = false;
331
332 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
333 bool m_throughputModeHasBeenSet = false;
334
335 double m_provisionedThroughputInMibps{0.0};
336 bool m_provisionedThroughputInMibpsHasBeenSet = false;
337
338 Aws::String m_availabilityZoneName;
339 bool m_availabilityZoneNameHasBeenSet = false;
340
341 Aws::String m_availabilityZoneId;
342 bool m_availabilityZoneIdHasBeenSet = false;
343
344 Aws::Vector<Tag> m_tags;
345 bool m_tagsHasBeenSet = false;
346
347 FileSystemProtectionDescription m_fileSystemProtection;
348 bool m_fileSystemProtectionHasBeenSet = false;
349
350 Aws::String m_requestId;
351 bool m_requestIdHasBeenSet = false;
352 };
353
354} // namespace Model
355} // namespace EFS
356} // 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)
const Aws::String & GetFileSystemArn() const
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