AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Backup {
28namespace Model {
30 public:
31 AWS_BACKUP_API DescribeBackupVaultResult() = default;
34
36
41 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
42 template <typename BackupVaultNameT = Aws::String>
43 void SetBackupVaultName(BackupVaultNameT&& value) {
44 m_backupVaultNameHasBeenSet = true;
45 m_backupVaultName = std::forward<BackupVaultNameT>(value);
46 }
47 template <typename BackupVaultNameT = Aws::String>
49 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
61 template <typename BackupVaultArnT = Aws::String>
62 void SetBackupVaultArn(BackupVaultArnT&& value) {
63 m_backupVaultArnHasBeenSet = true;
64 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
65 }
66 template <typename BackupVaultArnT = Aws::String>
68 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
69 return *this;
70 }
72
74
77 inline VaultType GetVaultType() const { return m_vaultType; }
78 inline void SetVaultType(VaultType value) {
79 m_vaultTypeHasBeenSet = true;
80 m_vaultType = value;
81 }
83 SetVaultType(value);
84 return *this;
85 }
87
89
92 inline VaultState GetVaultState() const { return m_vaultState; }
93 inline void SetVaultState(VaultState value) {
94 m_vaultStateHasBeenSet = true;
95 m_vaultState = value;
96 }
98 SetVaultState(value);
99 return *this;
100 }
102
104
109 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
110 template <typename EncryptionKeyArnT = Aws::String>
111 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
112 m_encryptionKeyArnHasBeenSet = true;
113 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
114 }
115 template <typename EncryptionKeyArnT = Aws::String>
117 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
130 template <typename CreationDateT = Aws::Utils::DateTime>
131 void SetCreationDate(CreationDateT&& value) {
132 m_creationDateHasBeenSet = true;
133 m_creationDate = std::forward<CreationDateT>(value);
134 }
135 template <typename CreationDateT = Aws::Utils::DateTime>
137 SetCreationDate(std::forward<CreationDateT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
150 template <typename CreatorRequestIdT = Aws::String>
151 void SetCreatorRequestId(CreatorRequestIdT&& value) {
152 m_creatorRequestIdHasBeenSet = true;
153 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
154 }
155 template <typename CreatorRequestIdT = Aws::String>
157 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
158 return *this;
159 }
161
163
171 inline long long GetNumberOfRecoveryPoints() const { return m_numberOfRecoveryPoints; }
172 inline void SetNumberOfRecoveryPoints(long long value) {
173 m_numberOfRecoveryPointsHasBeenSet = true;
174 m_numberOfRecoveryPoints = value;
175 }
178 return *this;
179 }
181
183
188 inline bool GetLocked() const { return m_locked; }
189 inline void SetLocked(bool value) {
190 m_lockedHasBeenSet = true;
191 m_locked = value;
192 }
194 SetLocked(value);
195 return *this;
196 }
198
200
211 inline long long GetMinRetentionDays() const { return m_minRetentionDays; }
212 inline void SetMinRetentionDays(long long value) {
213 m_minRetentionDaysHasBeenSet = true;
214 m_minRetentionDays = value;
215 }
217 SetMinRetentionDays(value);
218 return *this;
219 }
221
223
235 inline long long GetMaxRetentionDays() const { return m_maxRetentionDays; }
236 inline void SetMaxRetentionDays(long long value) {
237 m_maxRetentionDaysHasBeenSet = true;
238 m_maxRetentionDays = value;
239 }
241 SetMaxRetentionDays(value);
242 return *this;
243 }
245
247
255 inline const Aws::Utils::DateTime& GetLockDate() const { return m_lockDate; }
256 template <typename LockDateT = Aws::Utils::DateTime>
257 void SetLockDate(LockDateT&& value) {
258 m_lockDateHasBeenSet = true;
259 m_lockDate = std::forward<LockDateT>(value);
260 }
261 template <typename LockDateT = Aws::Utils::DateTime>
263 SetLockDate(std::forward<LockDateT>(value));
264 return *this;
265 }
267
269
273 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
274 template <typename SourceBackupVaultArnT = Aws::String>
275 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
276 m_sourceBackupVaultArnHasBeenSet = true;
277 m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value);
278 }
279 template <typename SourceBackupVaultArnT = Aws::String>
280 DescribeBackupVaultResult& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
281 SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetMpaApprovalTeamArn() const { return m_mpaApprovalTeamArn; }
291 template <typename MpaApprovalTeamArnT = Aws::String>
292 void SetMpaApprovalTeamArn(MpaApprovalTeamArnT&& value) {
293 m_mpaApprovalTeamArnHasBeenSet = true;
294 m_mpaApprovalTeamArn = std::forward<MpaApprovalTeamArnT>(value);
295 }
296 template <typename MpaApprovalTeamArnT = Aws::String>
297 DescribeBackupVaultResult& WithMpaApprovalTeamArn(MpaApprovalTeamArnT&& value) {
298 SetMpaApprovalTeamArn(std::forward<MpaApprovalTeamArnT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::String& GetMpaSessionArn() const { return m_mpaSessionArn; }
308 template <typename MpaSessionArnT = Aws::String>
309 void SetMpaSessionArn(MpaSessionArnT&& value) {
310 m_mpaSessionArnHasBeenSet = true;
311 m_mpaSessionArn = std::forward<MpaSessionArnT>(value);
312 }
313 template <typename MpaSessionArnT = Aws::String>
315 SetMpaSessionArn(std::forward<MpaSessionArnT>(value));
316 return *this;
317 }
319
321
325 inline const LatestMpaApprovalTeamUpdate& GetLatestMpaApprovalTeamUpdate() const { return m_latestMpaApprovalTeamUpdate; }
326 template <typename LatestMpaApprovalTeamUpdateT = LatestMpaApprovalTeamUpdate>
327 void SetLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT&& value) {
328 m_latestMpaApprovalTeamUpdateHasBeenSet = true;
329 m_latestMpaApprovalTeamUpdate = std::forward<LatestMpaApprovalTeamUpdateT>(value);
330 }
331 template <typename LatestMpaApprovalTeamUpdateT = LatestMpaApprovalTeamUpdate>
332 DescribeBackupVaultResult& WithLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT&& value) {
333 SetLatestMpaApprovalTeamUpdate(std::forward<LatestMpaApprovalTeamUpdateT>(value));
334 return *this;
335 }
337
339
344 inline EncryptionKeyType GetEncryptionKeyType() const { return m_encryptionKeyType; }
346 m_encryptionKeyTypeHasBeenSet = true;
347 m_encryptionKeyType = value;
348 }
351 return *this;
352 }
354
356
357 inline const Aws::String& GetRequestId() const { return m_requestId; }
358 template <typename RequestIdT = Aws::String>
359 void SetRequestId(RequestIdT&& value) {
360 m_requestIdHasBeenSet = true;
361 m_requestId = std::forward<RequestIdT>(value);
362 }
363 template <typename RequestIdT = Aws::String>
365 SetRequestId(std::forward<RequestIdT>(value));
366 return *this;
367 }
369 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
370
371 private:
372 Aws::String m_backupVaultName;
373
374 Aws::String m_backupVaultArn;
375
376 VaultType m_vaultType{VaultType::NOT_SET};
377
378 VaultState m_vaultState{VaultState::NOT_SET};
379
380 Aws::String m_encryptionKeyArn;
381
382 Aws::Utils::DateTime m_creationDate{};
383
384 Aws::String m_creatorRequestId;
385
386 long long m_numberOfRecoveryPoints{0};
387
388 bool m_locked{false};
389
390 long long m_minRetentionDays{0};
391
392 long long m_maxRetentionDays{0};
393
394 Aws::Utils::DateTime m_lockDate{};
395
396 Aws::String m_sourceBackupVaultArn;
397
398 Aws::String m_mpaApprovalTeamArn;
399
400 Aws::String m_mpaSessionArn;
401
402 LatestMpaApprovalTeamUpdate m_latestMpaApprovalTeamUpdate;
403
405
406 Aws::String m_requestId;
407 Aws::Http::HttpResponseCode m_HttpResponseCode;
408 bool m_backupVaultNameHasBeenSet = false;
409 bool m_backupVaultArnHasBeenSet = false;
410 bool m_vaultTypeHasBeenSet = false;
411 bool m_vaultStateHasBeenSet = false;
412 bool m_encryptionKeyArnHasBeenSet = false;
413 bool m_creationDateHasBeenSet = false;
414 bool m_creatorRequestIdHasBeenSet = false;
415 bool m_numberOfRecoveryPointsHasBeenSet = false;
416 bool m_lockedHasBeenSet = false;
417 bool m_minRetentionDaysHasBeenSet = false;
418 bool m_maxRetentionDaysHasBeenSet = false;
419 bool m_lockDateHasBeenSet = false;
420 bool m_sourceBackupVaultArnHasBeenSet = false;
421 bool m_mpaApprovalTeamArnHasBeenSet = false;
422 bool m_mpaSessionArnHasBeenSet = false;
423 bool m_latestMpaApprovalTeamUpdateHasBeenSet = false;
424 bool m_encryptionKeyTypeHasBeenSet = false;
425 bool m_requestIdHasBeenSet = false;
426};
427
428} // namespace Model
429} // namespace Backup
430} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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