AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.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 GetBackupPlanResult() = default;
34
36
40 inline const BackupPlan& GetBackupPlan() const { return m_backupPlan; }
41 template <typename BackupPlanT = BackupPlan>
42 void SetBackupPlan(BackupPlanT&& value) {
43 m_backupPlanHasBeenSet = true;
44 m_backupPlan = std::forward<BackupPlanT>(value);
45 }
46 template <typename BackupPlanT = BackupPlan>
47 GetBackupPlanResult& WithBackupPlan(BackupPlanT&& value) {
48 SetBackupPlan(std::forward<BackupPlanT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
58 template <typename BackupPlanIdT = Aws::String>
59 void SetBackupPlanId(BackupPlanIdT&& value) {
60 m_backupPlanIdHasBeenSet = true;
61 m_backupPlanId = std::forward<BackupPlanIdT>(value);
62 }
63 template <typename BackupPlanIdT = Aws::String>
64 GetBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) {
65 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
77 template <typename BackupPlanArnT = Aws::String>
78 void SetBackupPlanArn(BackupPlanArnT&& value) {
79 m_backupPlanArnHasBeenSet = true;
80 m_backupPlanArn = std::forward<BackupPlanArnT>(value);
81 }
82 template <typename BackupPlanArnT = Aws::String>
83 GetBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) {
84 SetBackupPlanArn(std::forward<BackupPlanArnT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetVersionId() const { return m_versionId; }
95 template <typename VersionIdT = Aws::String>
96 void SetVersionId(VersionIdT&& value) {
97 m_versionIdHasBeenSet = true;
98 m_versionId = std::forward<VersionIdT>(value);
99 }
100 template <typename VersionIdT = Aws::String>
101 GetBackupPlanResult& WithVersionId(VersionIdT&& value) {
102 SetVersionId(std::forward<VersionIdT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
113 template <typename CreatorRequestIdT = Aws::String>
114 void SetCreatorRequestId(CreatorRequestIdT&& value) {
115 m_creatorRequestIdHasBeenSet = true;
116 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
117 }
118 template <typename CreatorRequestIdT = Aws::String>
119 GetBackupPlanResult& WithCreatorRequestId(CreatorRequestIdT&& value) {
120 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
121 return *this;
122 }
124
126
132 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
133 template <typename CreationDateT = Aws::Utils::DateTime>
134 void SetCreationDate(CreationDateT&& value) {
135 m_creationDateHasBeenSet = true;
136 m_creationDate = std::forward<CreationDateT>(value);
137 }
138 template <typename CreationDateT = Aws::Utils::DateTime>
139 GetBackupPlanResult& WithCreationDate(CreationDateT&& value) {
140 SetCreationDate(std::forward<CreationDateT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
153 template <typename DeletionDateT = Aws::Utils::DateTime>
154 void SetDeletionDate(DeletionDateT&& value) {
155 m_deletionDateHasBeenSet = true;
156 m_deletionDate = std::forward<DeletionDateT>(value);
157 }
158 template <typename DeletionDateT = Aws::Utils::DateTime>
159 GetBackupPlanResult& WithDeletionDate(DeletionDateT&& value) {
160 SetDeletionDate(std::forward<DeletionDateT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
173 template <typename LastExecutionDateT = Aws::Utils::DateTime>
174 void SetLastExecutionDate(LastExecutionDateT&& value) {
175 m_lastExecutionDateHasBeenSet = true;
176 m_lastExecutionDate = std::forward<LastExecutionDateT>(value);
177 }
178 template <typename LastExecutionDateT = Aws::Utils::DateTime>
179 GetBackupPlanResult& WithLastExecutionDate(LastExecutionDateT&& value) {
180 SetLastExecutionDate(std::forward<LastExecutionDateT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
191 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
192 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
193 m_advancedBackupSettingsHasBeenSet = true;
194 m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value);
195 }
196 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
197 GetBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
198 SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value));
199 return *this;
200 }
201 template <typename AdvancedBackupSettingsT = AdvancedBackupSetting>
202 GetBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
203 m_advancedBackupSettingsHasBeenSet = true;
204 m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value));
205 return *this;
206 }
208
210
216 inline const Aws::Vector<ScheduledPlanExecutionMember>& GetScheduledRunsPreview() const { return m_scheduledRunsPreview; }
217 template <typename ScheduledRunsPreviewT = Aws::Vector<ScheduledPlanExecutionMember>>
218 void SetScheduledRunsPreview(ScheduledRunsPreviewT&& value) {
219 m_scheduledRunsPreviewHasBeenSet = true;
220 m_scheduledRunsPreview = std::forward<ScheduledRunsPreviewT>(value);
221 }
222 template <typename ScheduledRunsPreviewT = Aws::Vector<ScheduledPlanExecutionMember>>
223 GetBackupPlanResult& WithScheduledRunsPreview(ScheduledRunsPreviewT&& value) {
224 SetScheduledRunsPreview(std::forward<ScheduledRunsPreviewT>(value));
225 return *this;
226 }
227 template <typename ScheduledRunsPreviewT = ScheduledPlanExecutionMember>
228 GetBackupPlanResult& AddScheduledRunsPreview(ScheduledRunsPreviewT&& value) {
229 m_scheduledRunsPreviewHasBeenSet = true;
230 m_scheduledRunsPreview.emplace_back(std::forward<ScheduledRunsPreviewT>(value));
231 return *this;
232 }
234
236
237 inline const Aws::String& GetRequestId() const { return m_requestId; }
238 template <typename RequestIdT = Aws::String>
239 void SetRequestId(RequestIdT&& value) {
240 m_requestIdHasBeenSet = true;
241 m_requestId = std::forward<RequestIdT>(value);
242 }
243 template <typename RequestIdT = Aws::String>
244 GetBackupPlanResult& WithRequestId(RequestIdT&& value) {
245 SetRequestId(std::forward<RequestIdT>(value));
246 return *this;
247 }
249 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
250
251 private:
252 BackupPlan m_backupPlan;
253
254 Aws::String m_backupPlanId;
255
256 Aws::String m_backupPlanArn;
257
258 Aws::String m_versionId;
259
260 Aws::String m_creatorRequestId;
261
262 Aws::Utils::DateTime m_creationDate{};
263
264 Aws::Utils::DateTime m_deletionDate{};
265
266 Aws::Utils::DateTime m_lastExecutionDate{};
267
268 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
269
270 Aws::Vector<ScheduledPlanExecutionMember> m_scheduledRunsPreview;
271
272 Aws::String m_requestId;
273 Aws::Http::HttpResponseCode m_HttpResponseCode;
274 bool m_backupPlanHasBeenSet = false;
275 bool m_backupPlanIdHasBeenSet = false;
276 bool m_backupPlanArnHasBeenSet = false;
277 bool m_versionIdHasBeenSet = false;
278 bool m_creatorRequestIdHasBeenSet = false;
279 bool m_creationDateHasBeenSet = false;
280 bool m_deletionDateHasBeenSet = false;
281 bool m_lastExecutionDateHasBeenSet = false;
282 bool m_advancedBackupSettingsHasBeenSet = false;
283 bool m_scheduledRunsPreviewHasBeenSet = false;
284 bool m_requestIdHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace Backup
289} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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