AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecoveryPointByResource.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/backup/model/RecoveryPointStatus.h>
11#include <aws/backup/model/VaultType.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
36 {
37 public:
38 AWS_BACKUP_API RecoveryPointByResource();
41 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; }
51 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
52 inline void SetRecoveryPointArn(const Aws::String& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = value; }
53 inline void SetRecoveryPointArn(Aws::String&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::move(value); }
54 inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn.assign(value); }
55 inline RecoveryPointByResource& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;}
56 inline RecoveryPointByResource& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;}
57 inline RecoveryPointByResource& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;}
59
61
67 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
68 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
69 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
70 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
72 inline RecoveryPointByResource& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
74
76
79 inline const RecoveryPointStatus& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const RecoveryPointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(RecoveryPointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline RecoveryPointByResource& WithStatus(const RecoveryPointStatus& value) { SetStatus(value); return *this;}
84 inline RecoveryPointByResource& WithStatus(RecoveryPointStatus&& value) { SetStatus(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
92 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
93 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
94 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
95 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
96 inline RecoveryPointByResource& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
97 inline RecoveryPointByResource& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
98 inline RecoveryPointByResource& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
100
102
107 inline const Aws::String& GetEncryptionKeyArn() const{ return m_encryptionKeyArn; }
108 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
109 inline void SetEncryptionKeyArn(const Aws::String& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = value; }
110 inline void SetEncryptionKeyArn(Aws::String&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::move(value); }
111 inline void SetEncryptionKeyArn(const char* value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn.assign(value); }
113 inline RecoveryPointByResource& WithEncryptionKeyArn(Aws::String&& value) { SetEncryptionKeyArn(std::move(value)); return *this;}
114 inline RecoveryPointByResource& WithEncryptionKeyArn(const char* value) { SetEncryptionKeyArn(value); return *this;}
116
118
121 inline long long GetBackupSizeBytes() const{ return m_backupSizeBytes; }
122 inline bool BackupSizeBytesHasBeenSet() const { return m_backupSizeBytesHasBeenSet; }
123 inline void SetBackupSizeBytes(long long value) { m_backupSizeBytesHasBeenSet = true; m_backupSizeBytes = value; }
124 inline RecoveryPointByResource& WithBackupSizeBytes(long long value) { SetBackupSizeBytes(value); return *this;}
126
128
133 inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
134 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
135 inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
136 inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
137 inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
138 inline RecoveryPointByResource& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
139 inline RecoveryPointByResource& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
140 inline RecoveryPointByResource& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
142
144
148 inline bool GetIsParent() const{ return m_isParent; }
149 inline bool IsParentHasBeenSet() const { return m_isParentHasBeenSet; }
150 inline void SetIsParent(bool value) { m_isParentHasBeenSet = true; m_isParent = value; }
151 inline RecoveryPointByResource& WithIsParent(bool value) { SetIsParent(value); return *this;}
153
155
158 inline const Aws::String& GetParentRecoveryPointArn() const{ return m_parentRecoveryPointArn; }
159 inline bool ParentRecoveryPointArnHasBeenSet() const { return m_parentRecoveryPointArnHasBeenSet; }
160 inline void SetParentRecoveryPointArn(const Aws::String& value) { m_parentRecoveryPointArnHasBeenSet = true; m_parentRecoveryPointArn = value; }
161 inline void SetParentRecoveryPointArn(Aws::String&& value) { m_parentRecoveryPointArnHasBeenSet = true; m_parentRecoveryPointArn = std::move(value); }
162 inline void SetParentRecoveryPointArn(const char* value) { m_parentRecoveryPointArnHasBeenSet = true; m_parentRecoveryPointArn.assign(value); }
165 inline RecoveryPointByResource& WithParentRecoveryPointArn(const char* value) { SetParentRecoveryPointArn(value); return *this;}
167
169
172 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
173 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
174 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
175 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
176 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
177 inline RecoveryPointByResource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
178 inline RecoveryPointByResource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
179 inline RecoveryPointByResource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
181
183
186 inline const VaultType& GetVaultType() const{ return m_vaultType; }
187 inline bool VaultTypeHasBeenSet() const { return m_vaultTypeHasBeenSet; }
188 inline void SetVaultType(const VaultType& value) { m_vaultTypeHasBeenSet = true; m_vaultType = value; }
189 inline void SetVaultType(VaultType&& value) { m_vaultTypeHasBeenSet = true; m_vaultType = std::move(value); }
190 inline RecoveryPointByResource& WithVaultType(const VaultType& value) { SetVaultType(value); return *this;}
191 inline RecoveryPointByResource& WithVaultType(VaultType&& value) { SetVaultType(std::move(value)); return *this;}
193 private:
194
195 Aws::String m_recoveryPointArn;
196 bool m_recoveryPointArnHasBeenSet = false;
197
198 Aws::Utils::DateTime m_creationDate;
199 bool m_creationDateHasBeenSet = false;
200
201 RecoveryPointStatus m_status;
202 bool m_statusHasBeenSet = false;
203
204 Aws::String m_statusMessage;
205 bool m_statusMessageHasBeenSet = false;
206
207 Aws::String m_encryptionKeyArn;
208 bool m_encryptionKeyArnHasBeenSet = false;
209
210 long long m_backupSizeBytes;
211 bool m_backupSizeBytesHasBeenSet = false;
212
213 Aws::String m_backupVaultName;
214 bool m_backupVaultNameHasBeenSet = false;
215
216 bool m_isParent;
217 bool m_isParentHasBeenSet = false;
218
219 Aws::String m_parentRecoveryPointArn;
220 bool m_parentRecoveryPointArnHasBeenSet = false;
221
222 Aws::String m_resourceName;
223 bool m_resourceNameHasBeenSet = false;
224
225 VaultType m_vaultType;
226 bool m_vaultTypeHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace Backup
231} // namespace Aws
RecoveryPointByResource & WithVaultType(VaultType &&value)
RecoveryPointByResource & WithParentRecoveryPointArn(Aws::String &&value)
AWS_BACKUP_API RecoveryPointByResource & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryPointByResource & WithEncryptionKeyArn(const Aws::String &value)
RecoveryPointByResource & WithCreationDate(Aws::Utils::DateTime &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
RecoveryPointByResource & WithRecoveryPointArn(Aws::String &&value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryPointByResource & WithCreationDate(const Aws::Utils::DateTime &value)
RecoveryPointByResource & WithIsParent(bool value)
RecoveryPointByResource & WithStatusMessage(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDate() const
RecoveryPointByResource & WithStatusMessage(Aws::String &&value)
RecoveryPointByResource & WithBackupVaultName(const char *value)
AWS_BACKUP_API RecoveryPointByResource(Aws::Utils::Json::JsonView jsonValue)
RecoveryPointByResource & WithVaultType(const VaultType &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetStatus(const RecoveryPointStatus &value)
RecoveryPointByResource & WithResourceName(const Aws::String &value)
void SetParentRecoveryPointArn(const Aws::String &value)
const RecoveryPointStatus & GetStatus() const
RecoveryPointByResource & WithStatus(const RecoveryPointStatus &value)
RecoveryPointByResource & WithResourceName(Aws::String &&value)
RecoveryPointByResource & WithBackupSizeBytes(long long value)
RecoveryPointByResource & WithResourceName(const char *value)
RecoveryPointByResource & WithParentRecoveryPointArn(const char *value)
RecoveryPointByResource & WithEncryptionKeyArn(Aws::String &&value)
RecoveryPointByResource & WithStatus(RecoveryPointStatus &&value)
RecoveryPointByResource & WithBackupVaultName(Aws::String &&value)
RecoveryPointByResource & WithRecoveryPointArn(const char *value)
RecoveryPointByResource & WithBackupVaultName(const Aws::String &value)
RecoveryPointByResource & WithRecoveryPointArn(const Aws::String &value)
RecoveryPointByResource & WithEncryptionKeyArn(const char *value)
RecoveryPointByResource & WithParentRecoveryPointArn(const Aws::String &value)
RecoveryPointByResource & WithStatusMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue