AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
GetBackupPlanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/AdvancedBackupSetting.h>
9#include <aws/backup/model/BackupPlan.h>
10#include <aws/backup/model/ScheduledPlanExecutionMember.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.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 GetBackupPlanResult() = default;
33
35
39 inline const BackupPlan& GetBackupPlan() const { return m_backupPlan; }
40 template <typename BackupPlanT = BackupPlan>
41 void SetBackupPlan(BackupPlanT&& value) {
42 m_backupPlanHasBeenSet = true;
43 m_backupPlan = std::forward<BackupPlanT>(value);
44 }
45 template <typename BackupPlanT = BackupPlan>
46 GetBackupPlanResult& WithBackupPlan(BackupPlanT&& value) {
47 SetBackupPlan(std::forward<BackupPlanT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
57 template <typename BackupPlanIdT = Aws::String>
58 void SetBackupPlanId(BackupPlanIdT&& value) {
59 m_backupPlanIdHasBeenSet = true;
60 m_backupPlanId = std::forward<BackupPlanIdT>(value);
61 }
62 template <typename BackupPlanIdT = Aws::String>
63 GetBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) {
64 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
76 template <typename BackupPlanArnT = Aws::String>
77 void SetBackupPlanArn(BackupPlanArnT&& value) {
78 m_backupPlanArnHasBeenSet = true;
79 m_backupPlanArn = std::forward<BackupPlanArnT>(value);
80 }
81 template <typename BackupPlanArnT = Aws::String>
82 GetBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) {
83 SetBackupPlanArn(std::forward<BackupPlanArnT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetVersionId() const { return m_versionId; }
94 template <typename VersionIdT = Aws::String>
95 void SetVersionId(VersionIdT&& value) {
96 m_versionIdHasBeenSet = true;
97 m_versionId = std::forward<VersionIdT>(value);
98 }
99 template <typename VersionIdT = Aws::String>
100 GetBackupPlanResult& WithVersionId(VersionIdT&& value) {
101 SetVersionId(std::forward<VersionIdT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
112 template <typename CreatorRequestIdT = Aws::String>
113 void SetCreatorRequestId(CreatorRequestIdT&& value) {
114 m_creatorRequestIdHasBeenSet = true;
115 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
116 }
117 template <typename CreatorRequestIdT = Aws::String>
118 GetBackupPlanResult& WithCreatorRequestId(CreatorRequestIdT&& value) {
119 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
120 return *this;
121 }
123
125
131 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
132 template <typename CreationDateT = Aws::Utils::DateTime>
133 void SetCreationDate(CreationDateT&& value) {
134 m_creationDateHasBeenSet = true;
135 m_creationDate = std::forward<CreationDateT>(value);
136 }
137 template <typename CreationDateT = Aws::Utils::DateTime>
138 GetBackupPlanResult& WithCreationDate(CreationDateT&& value) {
139 SetCreationDate(std::forward<CreationDateT>(value));
140 return *this;
141 }
143
145
151 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
152 template <typename DeletionDateT = Aws::Utils::DateTime>
153 void SetDeletionDate(DeletionDateT&& value) {
154 m_deletionDateHasBeenSet = true;
155 m_deletionDate = std::forward<DeletionDateT>(value);
156 }
157 template <typename DeletionDateT = Aws::Utils::DateTime>
158 GetBackupPlanResult& WithDeletionDate(DeletionDateT&& value) {
159 SetDeletionDate(std::forward<DeletionDateT>(value));
160 return *this;
161 }
163
165
171 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
172 template <typename LastExecutionDateT = Aws::Utils::DateTime>
173 void SetLastExecutionDate(LastExecutionDateT&& value) {
174 m_lastExecutionDateHasBeenSet = true;
175 m_lastExecutionDate = std::forward<LastExecutionDateT>(value);
176 }
177 template <typename LastExecutionDateT = Aws::Utils::DateTime>
178 GetBackupPlanResult& WithLastExecutionDate(LastExecutionDateT&& value) {
179 SetLastExecutionDate(std::forward<LastExecutionDateT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
190 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
191 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
192 m_advancedBackupSettingsHasBeenSet = true;
193 m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value);
194 }
195 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
196 GetBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
197 SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value));
198 return *this;
199 }
200 template <typename AdvancedBackupSettingsT = AdvancedBackupSetting>
201 GetBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
202 m_advancedBackupSettingsHasBeenSet = true;
203 m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value));
204 return *this;
205 }
207
209
215 inline const Aws::Vector<ScheduledPlanExecutionMember>& GetScheduledRunsPreview() const { return m_scheduledRunsPreview; }
216 template <typename ScheduledRunsPreviewT = Aws::Vector<ScheduledPlanExecutionMember>>
217 void SetScheduledRunsPreview(ScheduledRunsPreviewT&& value) {
218 m_scheduledRunsPreviewHasBeenSet = true;
219 m_scheduledRunsPreview = std::forward<ScheduledRunsPreviewT>(value);
220 }
221 template <typename ScheduledRunsPreviewT = Aws::Vector<ScheduledPlanExecutionMember>>
222 GetBackupPlanResult& WithScheduledRunsPreview(ScheduledRunsPreviewT&& value) {
223 SetScheduledRunsPreview(std::forward<ScheduledRunsPreviewT>(value));
224 return *this;
225 }
226 template <typename ScheduledRunsPreviewT = ScheduledPlanExecutionMember>
227 GetBackupPlanResult& AddScheduledRunsPreview(ScheduledRunsPreviewT&& value) {
228 m_scheduledRunsPreviewHasBeenSet = true;
229 m_scheduledRunsPreview.emplace_back(std::forward<ScheduledRunsPreviewT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 GetBackupPlanResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 private:
249 BackupPlan m_backupPlan;
250
251 Aws::String m_backupPlanId;
252
253 Aws::String m_backupPlanArn;
254
255 Aws::String m_versionId;
256
257 Aws::String m_creatorRequestId;
258
259 Aws::Utils::DateTime m_creationDate{};
260
261 Aws::Utils::DateTime m_deletionDate{};
262
263 Aws::Utils::DateTime m_lastExecutionDate{};
264
265 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
266
267 Aws::Vector<ScheduledPlanExecutionMember> m_scheduledRunsPreview;
268
269 Aws::String m_requestId;
270 bool m_backupPlanHasBeenSet = false;
271 bool m_backupPlanIdHasBeenSet = false;
272 bool m_backupPlanArnHasBeenSet = false;
273 bool m_versionIdHasBeenSet = false;
274 bool m_creatorRequestIdHasBeenSet = false;
275 bool m_creationDateHasBeenSet = false;
276 bool m_deletionDateHasBeenSet = false;
277 bool m_lastExecutionDateHasBeenSet = false;
278 bool m_advancedBackupSettingsHasBeenSet = false;
279 bool m_scheduledRunsPreviewHasBeenSet = false;
280 bool m_requestIdHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace Backup
285} // namespace Aws
GetBackupPlanResult & WithDeletionDate(DeletionDateT &&value)
GetBackupPlanResult & AddAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
GetBackupPlanResult & WithBackupPlan(BackupPlanT &&value)
void SetDeletionDate(DeletionDateT &&value)
GetBackupPlanResult & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
GetBackupPlanResult & WithAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
AWS_BACKUP_API GetBackupPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBackupPlanResult & WithScheduledRunsPreview(ScheduledRunsPreviewT &&value)
GetBackupPlanResult & WithVersionId(VersionIdT &&value)
AWS_BACKUP_API GetBackupPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatorRequestId(CreatorRequestIdT &&value)
void SetLastExecutionDate(LastExecutionDateT &&value)
GetBackupPlanResult & WithCreationDate(CreationDateT &&value)
GetBackupPlanResult & WithLastExecutionDate(LastExecutionDateT &&value)
GetBackupPlanResult & WithBackupPlanId(BackupPlanIdT &&value)
AWS_BACKUP_API GetBackupPlanResult()=default
void SetBackupPlanId(BackupPlanIdT &&value)
void SetBackupPlanArn(BackupPlanArnT &&value)
GetBackupPlanResult & WithRequestId(RequestIdT &&value)
GetBackupPlanResult & AddScheduledRunsPreview(ScheduledRunsPreviewT &&value)
const Aws::String & GetBackupPlanId() const
const Aws::String & GetBackupPlanArn() const
const Aws::Utils::DateTime & GetCreationDate() const
void SetScheduledRunsPreview(ScheduledRunsPreviewT &&value)
GetBackupPlanResult & WithBackupPlanArn(BackupPlanArnT &&value)
const Aws::Utils::DateTime & GetDeletionDate() const
void SetAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
const Aws::String & GetCreatorRequestId() const
const Aws::Utils::DateTime & GetLastExecutionDate() const
const Aws::Vector< ScheduledPlanExecutionMember > & GetScheduledRunsPreview() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue