AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BackupVaultListMember.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Backup
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BACKUP_API BackupVaultListMember() = default;
40 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
50 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
51 template<typename BackupVaultNameT = Aws::String>
52 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
53 template<typename BackupVaultNameT = Aws::String>
54 BackupVaultListMember& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
56
58
63 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
64 inline bool BackupVaultArnHasBeenSet() const { return m_backupVaultArnHasBeenSet; }
65 template<typename BackupVaultArnT = Aws::String>
66 void SetBackupVaultArn(BackupVaultArnT&& value) { m_backupVaultArnHasBeenSet = true; m_backupVaultArn = std::forward<BackupVaultArnT>(value); }
67 template<typename BackupVaultArnT = Aws::String>
68 BackupVaultListMember& WithBackupVaultArn(BackupVaultArnT&& value) { SetBackupVaultArn(std::forward<BackupVaultArnT>(value)); return *this;}
70
72
75 inline VaultType GetVaultType() const { return m_vaultType; }
76 inline bool VaultTypeHasBeenSet() const { return m_vaultTypeHasBeenSet; }
77 inline void SetVaultType(VaultType value) { m_vaultTypeHasBeenSet = true; m_vaultType = value; }
78 inline BackupVaultListMember& WithVaultType(VaultType value) { SetVaultType(value); return *this;}
80
82
85 inline VaultState GetVaultState() const { return m_vaultState; }
86 inline bool VaultStateHasBeenSet() const { return m_vaultStateHasBeenSet; }
87 inline void SetVaultState(VaultState value) { m_vaultStateHasBeenSet = true; m_vaultState = value; }
88 inline BackupVaultListMember& WithVaultState(VaultState value) { SetVaultState(value); return *this;}
90
92
98 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
99 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
100 template<typename CreationDateT = Aws::Utils::DateTime>
101 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
102 template<typename CreationDateT = Aws::Utils::DateTime>
103 BackupVaultListMember& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
105
107
118 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
119 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
120 template<typename EncryptionKeyArnT = Aws::String>
121 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
122 template<typename EncryptionKeyArnT = Aws::String>
123 BackupVaultListMember& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
125
127
133 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
134 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
135 template<typename CreatorRequestIdT = Aws::String>
136 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
137 template<typename CreatorRequestIdT = Aws::String>
138 BackupVaultListMember& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
140
142
145 inline long long GetNumberOfRecoveryPoints() const { return m_numberOfRecoveryPoints; }
146 inline bool NumberOfRecoveryPointsHasBeenSet() const { return m_numberOfRecoveryPointsHasBeenSet; }
147 inline void SetNumberOfRecoveryPoints(long long value) { m_numberOfRecoveryPointsHasBeenSet = true; m_numberOfRecoveryPoints = value; }
148 inline BackupVaultListMember& WithNumberOfRecoveryPoints(long long value) { SetNumberOfRecoveryPoints(value); return *this;}
150
152
157 inline bool GetLocked() const { return m_locked; }
158 inline bool LockedHasBeenSet() const { return m_lockedHasBeenSet; }
159 inline void SetLocked(bool value) { m_lockedHasBeenSet = true; m_locked = value; }
160 inline BackupVaultListMember& WithLocked(bool value) { SetLocked(value); return *this;}
162
164
175 inline long long GetMinRetentionDays() const { return m_minRetentionDays; }
176 inline bool MinRetentionDaysHasBeenSet() const { return m_minRetentionDaysHasBeenSet; }
177 inline void SetMinRetentionDays(long long value) { m_minRetentionDaysHasBeenSet = true; m_minRetentionDays = value; }
178 inline BackupVaultListMember& WithMinRetentionDays(long long value) { SetMinRetentionDays(value); return *this;}
180
182
194 inline long long GetMaxRetentionDays() const { return m_maxRetentionDays; }
195 inline bool MaxRetentionDaysHasBeenSet() const { return m_maxRetentionDaysHasBeenSet; }
196 inline void SetMaxRetentionDays(long long value) { m_maxRetentionDaysHasBeenSet = true; m_maxRetentionDays = value; }
197 inline BackupVaultListMember& WithMaxRetentionDays(long long value) { SetMaxRetentionDays(value); return *this;}
199
201
210 inline const Aws::Utils::DateTime& GetLockDate() const { return m_lockDate; }
211 inline bool LockDateHasBeenSet() const { return m_lockDateHasBeenSet; }
212 template<typename LockDateT = Aws::Utils::DateTime>
213 void SetLockDate(LockDateT&& value) { m_lockDateHasBeenSet = true; m_lockDate = std::forward<LockDateT>(value); }
214 template<typename LockDateT = Aws::Utils::DateTime>
215 BackupVaultListMember& WithLockDate(LockDateT&& value) { SetLockDate(std::forward<LockDateT>(value)); return *this;}
217 private:
218
219 Aws::String m_backupVaultName;
220 bool m_backupVaultNameHasBeenSet = false;
221
222 Aws::String m_backupVaultArn;
223 bool m_backupVaultArnHasBeenSet = false;
224
225 VaultType m_vaultType{VaultType::NOT_SET};
226 bool m_vaultTypeHasBeenSet = false;
227
228 VaultState m_vaultState{VaultState::NOT_SET};
229 bool m_vaultStateHasBeenSet = false;
230
231 Aws::Utils::DateTime m_creationDate{};
232 bool m_creationDateHasBeenSet = false;
233
234 Aws::String m_encryptionKeyArn;
235 bool m_encryptionKeyArnHasBeenSet = false;
236
237 Aws::String m_creatorRequestId;
238 bool m_creatorRequestIdHasBeenSet = false;
239
240 long long m_numberOfRecoveryPoints{0};
241 bool m_numberOfRecoveryPointsHasBeenSet = false;
242
243 bool m_locked{false};
244 bool m_lockedHasBeenSet = false;
245
246 long long m_minRetentionDays{0};
247 bool m_minRetentionDaysHasBeenSet = false;
248
249 long long m_maxRetentionDays{0};
250 bool m_maxRetentionDaysHasBeenSet = false;
251
252 Aws::Utils::DateTime m_lockDate{};
253 bool m_lockDateHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace Backup
258} // namespace Aws
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
BackupVaultListMember & WithVaultType(VaultType value)
BackupVaultListMember & WithBackupVaultArn(BackupVaultArnT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_BACKUP_API BackupVaultListMember(Aws::Utils::Json::JsonView jsonValue)
BackupVaultListMember & WithVaultState(VaultState value)
AWS_BACKUP_API BackupVaultListMember()=default
void SetBackupVaultName(BackupVaultNameT &&value)
BackupVaultListMember & WithMaxRetentionDays(long long value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
BackupVaultListMember & WithNumberOfRecoveryPoints(long long value)
AWS_BACKUP_API BackupVaultListMember & operator=(Aws::Utils::Json::JsonView jsonValue)
BackupVaultListMember & WithBackupVaultName(BackupVaultNameT &&value)
BackupVaultListMember & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetBackupVaultArn(BackupVaultArnT &&value)
BackupVaultListMember & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
void SetCreatorRequestId(CreatorRequestIdT &&value)
BackupVaultListMember & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetLockDate() const
BackupVaultListMember & WithLocked(bool value)
BackupVaultListMember & WithMinRetentionDays(long long value)
BackupVaultListMember & WithLockDate(LockDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue