AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
DescribeBackupVaultResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/EncryptionKeyType.h>
9#include <aws/backup/model/LatestMpaApprovalTeamUpdate.h>
10#include <aws/backup/model/VaultState.h>
11#include <aws/backup/model/VaultType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Backup {
27namespace Model {
29 public:
30 AWS_BACKUP_API DescribeBackupVaultResult() = default;
33
35
40 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
41 template <typename BackupVaultNameT = Aws::String>
42 void SetBackupVaultName(BackupVaultNameT&& value) {
43 m_backupVaultNameHasBeenSet = true;
44 m_backupVaultName = std::forward<BackupVaultNameT>(value);
45 }
46 template <typename BackupVaultNameT = Aws::String>
48 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
60 template <typename BackupVaultArnT = Aws::String>
61 void SetBackupVaultArn(BackupVaultArnT&& value) {
62 m_backupVaultArnHasBeenSet = true;
63 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
64 }
65 template <typename BackupVaultArnT = Aws::String>
67 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
68 return *this;
69 }
71
73
76 inline VaultType GetVaultType() const { return m_vaultType; }
77 inline void SetVaultType(VaultType value) {
78 m_vaultTypeHasBeenSet = true;
79 m_vaultType = value;
80 }
82 SetVaultType(value);
83 return *this;
84 }
86
88
91 inline VaultState GetVaultState() const { return m_vaultState; }
92 inline void SetVaultState(VaultState value) {
93 m_vaultStateHasBeenSet = true;
94 m_vaultState = value;
95 }
97 SetVaultState(value);
98 return *this;
99 }
101
103
108 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
109 template <typename EncryptionKeyArnT = Aws::String>
110 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
111 m_encryptionKeyArnHasBeenSet = true;
112 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
113 }
114 template <typename EncryptionKeyArnT = Aws::String>
116 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
117 return *this;
118 }
120
122
128 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
129 template <typename CreationDateT = Aws::Utils::DateTime>
130 void SetCreationDate(CreationDateT&& value) {
131 m_creationDateHasBeenSet = true;
132 m_creationDate = std::forward<CreationDateT>(value);
133 }
134 template <typename CreationDateT = Aws::Utils::DateTime>
136 SetCreationDate(std::forward<CreationDateT>(value));
137 return *this;
138 }
140
142
148 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
149 template <typename CreatorRequestIdT = Aws::String>
150 void SetCreatorRequestId(CreatorRequestIdT&& value) {
151 m_creatorRequestIdHasBeenSet = true;
152 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
153 }
154 template <typename CreatorRequestIdT = Aws::String>
156 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
157 return *this;
158 }
160
162
170 inline long long GetNumberOfRecoveryPoints() const { return m_numberOfRecoveryPoints; }
171 inline void SetNumberOfRecoveryPoints(long long value) {
172 m_numberOfRecoveryPointsHasBeenSet = true;
173 m_numberOfRecoveryPoints = value;
174 }
177 return *this;
178 }
180
182
187 inline bool GetLocked() const { return m_locked; }
188 inline void SetLocked(bool value) {
189 m_lockedHasBeenSet = true;
190 m_locked = value;
191 }
193 SetLocked(value);
194 return *this;
195 }
197
199
210 inline long long GetMinRetentionDays() const { return m_minRetentionDays; }
211 inline void SetMinRetentionDays(long long value) {
212 m_minRetentionDaysHasBeenSet = true;
213 m_minRetentionDays = value;
214 }
216 SetMinRetentionDays(value);
217 return *this;
218 }
220
222
234 inline long long GetMaxRetentionDays() const { return m_maxRetentionDays; }
235 inline void SetMaxRetentionDays(long long value) {
236 m_maxRetentionDaysHasBeenSet = true;
237 m_maxRetentionDays = value;
238 }
240 SetMaxRetentionDays(value);
241 return *this;
242 }
244
246
254 inline const Aws::Utils::DateTime& GetLockDate() const { return m_lockDate; }
255 template <typename LockDateT = Aws::Utils::DateTime>
256 void SetLockDate(LockDateT&& value) {
257 m_lockDateHasBeenSet = true;
258 m_lockDate = std::forward<LockDateT>(value);
259 }
260 template <typename LockDateT = Aws::Utils::DateTime>
262 SetLockDate(std::forward<LockDateT>(value));
263 return *this;
264 }
266
268
272 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
273 template <typename SourceBackupVaultArnT = Aws::String>
274 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
275 m_sourceBackupVaultArnHasBeenSet = true;
276 m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value);
277 }
278 template <typename SourceBackupVaultArnT = Aws::String>
279 DescribeBackupVaultResult& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
280 SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::String& GetMpaApprovalTeamArn() const { return m_mpaApprovalTeamArn; }
290 template <typename MpaApprovalTeamArnT = Aws::String>
291 void SetMpaApprovalTeamArn(MpaApprovalTeamArnT&& value) {
292 m_mpaApprovalTeamArnHasBeenSet = true;
293 m_mpaApprovalTeamArn = std::forward<MpaApprovalTeamArnT>(value);
294 }
295 template <typename MpaApprovalTeamArnT = Aws::String>
296 DescribeBackupVaultResult& WithMpaApprovalTeamArn(MpaApprovalTeamArnT&& value) {
297 SetMpaApprovalTeamArn(std::forward<MpaApprovalTeamArnT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetMpaSessionArn() const { return m_mpaSessionArn; }
307 template <typename MpaSessionArnT = Aws::String>
308 void SetMpaSessionArn(MpaSessionArnT&& value) {
309 m_mpaSessionArnHasBeenSet = true;
310 m_mpaSessionArn = std::forward<MpaSessionArnT>(value);
311 }
312 template <typename MpaSessionArnT = Aws::String>
314 SetMpaSessionArn(std::forward<MpaSessionArnT>(value));
315 return *this;
316 }
318
320
324 inline const LatestMpaApprovalTeamUpdate& GetLatestMpaApprovalTeamUpdate() const { return m_latestMpaApprovalTeamUpdate; }
325 template <typename LatestMpaApprovalTeamUpdateT = LatestMpaApprovalTeamUpdate>
326 void SetLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT&& value) {
327 m_latestMpaApprovalTeamUpdateHasBeenSet = true;
328 m_latestMpaApprovalTeamUpdate = std::forward<LatestMpaApprovalTeamUpdateT>(value);
329 }
330 template <typename LatestMpaApprovalTeamUpdateT = LatestMpaApprovalTeamUpdate>
331 DescribeBackupVaultResult& WithLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT&& value) {
332 SetLatestMpaApprovalTeamUpdate(std::forward<LatestMpaApprovalTeamUpdateT>(value));
333 return *this;
334 }
336
338
343 inline EncryptionKeyType GetEncryptionKeyType() const { return m_encryptionKeyType; }
345 m_encryptionKeyTypeHasBeenSet = true;
346 m_encryptionKeyType = value;
347 }
350 return *this;
351 }
353
355
356 inline const Aws::String& GetRequestId() const { return m_requestId; }
357 template <typename RequestIdT = Aws::String>
358 void SetRequestId(RequestIdT&& value) {
359 m_requestIdHasBeenSet = true;
360 m_requestId = std::forward<RequestIdT>(value);
361 }
362 template <typename RequestIdT = Aws::String>
364 SetRequestId(std::forward<RequestIdT>(value));
365 return *this;
366 }
368 private:
369 Aws::String m_backupVaultName;
370
371 Aws::String m_backupVaultArn;
372
373 VaultType m_vaultType{VaultType::NOT_SET};
374
375 VaultState m_vaultState{VaultState::NOT_SET};
376
377 Aws::String m_encryptionKeyArn;
378
379 Aws::Utils::DateTime m_creationDate{};
380
381 Aws::String m_creatorRequestId;
382
383 long long m_numberOfRecoveryPoints{0};
384
385 bool m_locked{false};
386
387 long long m_minRetentionDays{0};
388
389 long long m_maxRetentionDays{0};
390
391 Aws::Utils::DateTime m_lockDate{};
392
393 Aws::String m_sourceBackupVaultArn;
394
395 Aws::String m_mpaApprovalTeamArn;
396
397 Aws::String m_mpaSessionArn;
398
399 LatestMpaApprovalTeamUpdate m_latestMpaApprovalTeamUpdate;
400
402
403 Aws::String m_requestId;
404 bool m_backupVaultNameHasBeenSet = false;
405 bool m_backupVaultArnHasBeenSet = false;
406 bool m_vaultTypeHasBeenSet = false;
407 bool m_vaultStateHasBeenSet = false;
408 bool m_encryptionKeyArnHasBeenSet = false;
409 bool m_creationDateHasBeenSet = false;
410 bool m_creatorRequestIdHasBeenSet = false;
411 bool m_numberOfRecoveryPointsHasBeenSet = false;
412 bool m_lockedHasBeenSet = false;
413 bool m_minRetentionDaysHasBeenSet = false;
414 bool m_maxRetentionDaysHasBeenSet = false;
415 bool m_lockDateHasBeenSet = false;
416 bool m_sourceBackupVaultArnHasBeenSet = false;
417 bool m_mpaApprovalTeamArnHasBeenSet = false;
418 bool m_mpaSessionArnHasBeenSet = false;
419 bool m_latestMpaApprovalTeamUpdateHasBeenSet = false;
420 bool m_encryptionKeyTypeHasBeenSet = false;
421 bool m_requestIdHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace Backup
426} // namespace Aws
DescribeBackupVaultResult & WithMaxRetentionDays(long long value)
DescribeBackupVaultResult & WithNumberOfRecoveryPoints(long long value)
DescribeBackupVaultResult & WithCreatorRequestId(CreatorRequestIdT &&value)
AWS_BACKUP_API DescribeBackupVaultResult()=default
DescribeBackupVaultResult & WithRequestId(RequestIdT &&value)
DescribeBackupVaultResult & WithMpaSessionArn(MpaSessionArnT &&value)
DescribeBackupVaultResult & WithMpaApprovalTeamArn(MpaApprovalTeamArnT &&value)
DescribeBackupVaultResult & WithMinRetentionDays(long long value)
DescribeBackupVaultResult & WithCreationDate(CreationDateT &&value)
DescribeBackupVaultResult & WithLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT &&value)
DescribeBackupVaultResult & WithEncryptionKeyType(EncryptionKeyType value)
DescribeBackupVaultResult & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
void SetSourceBackupVaultArn(SourceBackupVaultArnT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
DescribeBackupVaultResult & WithSourceBackupVaultArn(SourceBackupVaultArnT &&value)
DescribeBackupVaultResult & WithLocked(bool value)
void SetLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT &&value)
DescribeBackupVaultResult & WithBackupVaultArn(BackupVaultArnT &&value)
DescribeBackupVaultResult & WithBackupVaultName(BackupVaultNameT &&value)
DescribeBackupVaultResult & WithVaultState(VaultState value)
void SetMpaApprovalTeamArn(MpaApprovalTeamArnT &&value)
DescribeBackupVaultResult & WithVaultType(VaultType value)
AWS_BACKUP_API DescribeBackupVaultResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBackupVaultResult & WithLockDate(LockDateT &&value)
const LatestMpaApprovalTeamUpdate & GetLatestMpaApprovalTeamUpdate() const
AWS_BACKUP_API DescribeBackupVaultResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue