AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeBackupVaultResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/VaultType.h>
10#include <aws/backup/model/VaultState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/backup/model/LatestMpaApprovalTeamUpdate.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Backup
28{
29namespace Model
30{
32 {
33 public:
34 AWS_BACKUP_API DescribeBackupVaultResult() = default;
37
38
40
45 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
46 template<typename BackupVaultNameT = Aws::String>
47 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
48 template<typename BackupVaultNameT = Aws::String>
49 DescribeBackupVaultResult& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
51
53
58 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
59 template<typename BackupVaultArnT = Aws::String>
60 void SetBackupVaultArn(BackupVaultArnT&& value) { m_backupVaultArnHasBeenSet = true; m_backupVaultArn = std::forward<BackupVaultArnT>(value); }
61 template<typename BackupVaultArnT = Aws::String>
62 DescribeBackupVaultResult& WithBackupVaultArn(BackupVaultArnT&& value) { SetBackupVaultArn(std::forward<BackupVaultArnT>(value)); return *this;}
64
66
69 inline VaultType GetVaultType() const { return m_vaultType; }
70 inline void SetVaultType(VaultType value) { m_vaultTypeHasBeenSet = true; m_vaultType = value; }
71 inline DescribeBackupVaultResult& WithVaultType(VaultType value) { SetVaultType(value); return *this;}
73
75
78 inline VaultState GetVaultState() const { return m_vaultState; }
79 inline void SetVaultState(VaultState value) { m_vaultStateHasBeenSet = true; m_vaultState = value; }
80 inline DescribeBackupVaultResult& WithVaultState(VaultState value) { SetVaultState(value); return *this;}
82
84
89 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
90 template<typename EncryptionKeyArnT = Aws::String>
91 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
92 template<typename EncryptionKeyArnT = Aws::String>
93 DescribeBackupVaultResult& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
95
97
103 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
104 template<typename CreationDateT = Aws::Utils::DateTime>
105 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
106 template<typename CreationDateT = Aws::Utils::DateTime>
107 DescribeBackupVaultResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
109
111
117 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
118 template<typename CreatorRequestIdT = Aws::String>
119 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
120 template<typename CreatorRequestIdT = Aws::String>
121 DescribeBackupVaultResult& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
123
125
133 inline long long GetNumberOfRecoveryPoints() const { return m_numberOfRecoveryPoints; }
134 inline void SetNumberOfRecoveryPoints(long long value) { m_numberOfRecoveryPointsHasBeenSet = true; m_numberOfRecoveryPoints = value; }
137
139
144 inline bool GetLocked() const { return m_locked; }
145 inline void SetLocked(bool value) { m_lockedHasBeenSet = true; m_locked = value; }
146 inline DescribeBackupVaultResult& WithLocked(bool value) { SetLocked(value); return *this;}
148
150
161 inline long long GetMinRetentionDays() const { return m_minRetentionDays; }
162 inline void SetMinRetentionDays(long long value) { m_minRetentionDaysHasBeenSet = true; m_minRetentionDays = value; }
163 inline DescribeBackupVaultResult& WithMinRetentionDays(long long value) { SetMinRetentionDays(value); return *this;}
165
167
179 inline long long GetMaxRetentionDays() const { return m_maxRetentionDays; }
180 inline void SetMaxRetentionDays(long long value) { m_maxRetentionDaysHasBeenSet = true; m_maxRetentionDays = value; }
181 inline DescribeBackupVaultResult& WithMaxRetentionDays(long long value) { SetMaxRetentionDays(value); return *this;}
183
185
193 inline const Aws::Utils::DateTime& GetLockDate() const { return m_lockDate; }
194 template<typename LockDateT = Aws::Utils::DateTime>
195 void SetLockDate(LockDateT&& value) { m_lockDateHasBeenSet = true; m_lockDate = std::forward<LockDateT>(value); }
196 template<typename LockDateT = Aws::Utils::DateTime>
197 DescribeBackupVaultResult& WithLockDate(LockDateT&& value) { SetLockDate(std::forward<LockDateT>(value)); return *this;}
199
201
205 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
206 template<typename SourceBackupVaultArnT = Aws::String>
207 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) { m_sourceBackupVaultArnHasBeenSet = true; m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value); }
208 template<typename SourceBackupVaultArnT = Aws::String>
209 DescribeBackupVaultResult& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) { SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value)); return *this;}
211
213
216 inline const Aws::String& GetMpaApprovalTeamArn() const { return m_mpaApprovalTeamArn; }
217 template<typename MpaApprovalTeamArnT = Aws::String>
218 void SetMpaApprovalTeamArn(MpaApprovalTeamArnT&& value) { m_mpaApprovalTeamArnHasBeenSet = true; m_mpaApprovalTeamArn = std::forward<MpaApprovalTeamArnT>(value); }
219 template<typename MpaApprovalTeamArnT = Aws::String>
220 DescribeBackupVaultResult& WithMpaApprovalTeamArn(MpaApprovalTeamArnT&& value) { SetMpaApprovalTeamArn(std::forward<MpaApprovalTeamArnT>(value)); return *this;}
222
224
227 inline const Aws::String& GetMpaSessionArn() const { return m_mpaSessionArn; }
228 template<typename MpaSessionArnT = Aws::String>
229 void SetMpaSessionArn(MpaSessionArnT&& value) { m_mpaSessionArnHasBeenSet = true; m_mpaSessionArn = std::forward<MpaSessionArnT>(value); }
230 template<typename MpaSessionArnT = Aws::String>
231 DescribeBackupVaultResult& WithMpaSessionArn(MpaSessionArnT&& value) { SetMpaSessionArn(std::forward<MpaSessionArnT>(value)); return *this;}
233
235
239 inline const LatestMpaApprovalTeamUpdate& GetLatestMpaApprovalTeamUpdate() const { return m_latestMpaApprovalTeamUpdate; }
240 template<typename LatestMpaApprovalTeamUpdateT = LatestMpaApprovalTeamUpdate>
241 void SetLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT&& value) { m_latestMpaApprovalTeamUpdateHasBeenSet = true; m_latestMpaApprovalTeamUpdate = std::forward<LatestMpaApprovalTeamUpdateT>(value); }
242 template<typename LatestMpaApprovalTeamUpdateT = LatestMpaApprovalTeamUpdate>
243 DescribeBackupVaultResult& WithLatestMpaApprovalTeamUpdate(LatestMpaApprovalTeamUpdateT&& value) { SetLatestMpaApprovalTeamUpdate(std::forward<LatestMpaApprovalTeamUpdateT>(value)); return *this;}
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template<typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
251 template<typename RequestIdT = Aws::String>
252 DescribeBackupVaultResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
254 private:
255
256 Aws::String m_backupVaultName;
257 bool m_backupVaultNameHasBeenSet = false;
258
259 Aws::String m_backupVaultArn;
260 bool m_backupVaultArnHasBeenSet = false;
261
262 VaultType m_vaultType{VaultType::NOT_SET};
263 bool m_vaultTypeHasBeenSet = false;
264
265 VaultState m_vaultState{VaultState::NOT_SET};
266 bool m_vaultStateHasBeenSet = false;
267
268 Aws::String m_encryptionKeyArn;
269 bool m_encryptionKeyArnHasBeenSet = false;
270
271 Aws::Utils::DateTime m_creationDate{};
272 bool m_creationDateHasBeenSet = false;
273
274 Aws::String m_creatorRequestId;
275 bool m_creatorRequestIdHasBeenSet = false;
276
277 long long m_numberOfRecoveryPoints{0};
278 bool m_numberOfRecoveryPointsHasBeenSet = false;
279
280 bool m_locked{false};
281 bool m_lockedHasBeenSet = false;
282
283 long long m_minRetentionDays{0};
284 bool m_minRetentionDaysHasBeenSet = false;
285
286 long long m_maxRetentionDays{0};
287 bool m_maxRetentionDaysHasBeenSet = false;
288
289 Aws::Utils::DateTime m_lockDate{};
290 bool m_lockDateHasBeenSet = false;
291
292 Aws::String m_sourceBackupVaultArn;
293 bool m_sourceBackupVaultArnHasBeenSet = false;
294
295 Aws::String m_mpaApprovalTeamArn;
296 bool m_mpaApprovalTeamArnHasBeenSet = false;
297
298 Aws::String m_mpaSessionArn;
299 bool m_mpaSessionArnHasBeenSet = false;
300
301 LatestMpaApprovalTeamUpdate m_latestMpaApprovalTeamUpdate;
302 bool m_latestMpaApprovalTeamUpdateHasBeenSet = false;
303
304 Aws::String m_requestId;
305 bool m_requestIdHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace Backup
310} // 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 & 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