AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
BackupRuleInput.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/CopyAction.h>
9#include <aws/backup/model/IndexAction.h>
10#include <aws/backup/model/Lifecycle.h>
11#include <aws/backup/model/LocalBackupConfiguration.h>
12#include <aws/backup/model/ScanAction.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Backup {
27namespace Model {
28
36 public:
37 AWS_BACKUP_API BackupRuleInput() = default;
40 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetRuleName() const { return m_ruleName; }
48 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
49 template <typename RuleNameT = Aws::String>
50 void SetRuleName(RuleNameT&& value) {
51 m_ruleNameHasBeenSet = true;
52 m_ruleName = std::forward<RuleNameT>(value);
53 }
54 template <typename RuleNameT = Aws::String>
55 BackupRuleInput& WithRuleName(RuleNameT&& value) {
56 SetRuleName(std::forward<RuleNameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetTargetBackupVaultName() const { return m_targetBackupVaultName; }
68 inline bool TargetBackupVaultNameHasBeenSet() const { return m_targetBackupVaultNameHasBeenSet; }
69 template <typename TargetBackupVaultNameT = Aws::String>
70 void SetTargetBackupVaultName(TargetBackupVaultNameT&& value) {
71 m_targetBackupVaultNameHasBeenSet = true;
72 m_targetBackupVaultName = std::forward<TargetBackupVaultNameT>(value);
73 }
74 template <typename TargetBackupVaultNameT = Aws::String>
75 BackupRuleInput& WithTargetBackupVaultName(TargetBackupVaultNameT&& value) {
76 SetTargetBackupVaultName(std::forward<TargetBackupVaultNameT>(value));
77 return *this;
78 }
80
82
89 inline const Aws::String& GetTargetLogicallyAirGappedBackupVaultArn() const { return m_targetLogicallyAirGappedBackupVaultArn; }
90 inline bool TargetLogicallyAirGappedBackupVaultArnHasBeenSet() const { return m_targetLogicallyAirGappedBackupVaultArnHasBeenSet; }
91 template <typename TargetLogicallyAirGappedBackupVaultArnT = Aws::String>
92 void SetTargetLogicallyAirGappedBackupVaultArn(TargetLogicallyAirGappedBackupVaultArnT&& value) {
93 m_targetLogicallyAirGappedBackupVaultArnHasBeenSet = true;
94 m_targetLogicallyAirGappedBackupVaultArn = std::forward<TargetLogicallyAirGappedBackupVaultArnT>(value);
95 }
96 template <typename TargetLogicallyAirGappedBackupVaultArnT = Aws::String>
97 BackupRuleInput& WithTargetLogicallyAirGappedBackupVaultArn(TargetLogicallyAirGappedBackupVaultArnT&& value) {
98 SetTargetLogicallyAirGappedBackupVaultArn(std::forward<TargetLogicallyAirGappedBackupVaultArnT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
110 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
111 template <typename ScheduleExpressionT = Aws::String>
112 void SetScheduleExpression(ScheduleExpressionT&& value) {
113 m_scheduleExpressionHasBeenSet = true;
114 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
115 }
116 template <typename ScheduleExpressionT = Aws::String>
117 BackupRuleInput& WithScheduleExpression(ScheduleExpressionT&& value) {
118 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
119 return *this;
120 }
122
124
137 inline long long GetStartWindowMinutes() const { return m_startWindowMinutes; }
138 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
139 inline void SetStartWindowMinutes(long long value) {
140 m_startWindowMinutesHasBeenSet = true;
141 m_startWindowMinutes = value;
142 }
143 inline BackupRuleInput& WithStartWindowMinutes(long long value) {
145 return *this;
146 }
148
150
154 inline long long GetCompletionWindowMinutes() const { return m_completionWindowMinutes; }
155 inline bool CompletionWindowMinutesHasBeenSet() const { return m_completionWindowMinutesHasBeenSet; }
156 inline void SetCompletionWindowMinutes(long long value) {
157 m_completionWindowMinutesHasBeenSet = true;
158 m_completionWindowMinutes = value;
159 }
162 return *this;
163 }
165
167
182 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
183 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
184 template <typename LifecycleT = Lifecycle>
185 void SetLifecycle(LifecycleT&& value) {
186 m_lifecycleHasBeenSet = true;
187 m_lifecycle = std::forward<LifecycleT>(value);
188 }
189 template <typename LifecycleT = Lifecycle>
190 BackupRuleInput& WithLifecycle(LifecycleT&& value) {
191 SetLifecycle(std::forward<LifecycleT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const { return m_recoveryPointTags; }
201 inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
202 template <typename RecoveryPointTagsT = Aws::Map<Aws::String, Aws::String>>
203 void SetRecoveryPointTags(RecoveryPointTagsT&& value) {
204 m_recoveryPointTagsHasBeenSet = true;
205 m_recoveryPointTags = std::forward<RecoveryPointTagsT>(value);
206 }
207 template <typename RecoveryPointTagsT = Aws::Map<Aws::String, Aws::String>>
208 BackupRuleInput& WithRecoveryPointTags(RecoveryPointTagsT&& value) {
209 SetRecoveryPointTags(std::forward<RecoveryPointTagsT>(value));
210 return *this;
211 }
212 template <typename RecoveryPointTagsKeyT = Aws::String, typename RecoveryPointTagsValueT = Aws::String>
213 BackupRuleInput& AddRecoveryPointTags(RecoveryPointTagsKeyT&& key, RecoveryPointTagsValueT&& value) {
214 m_recoveryPointTagsHasBeenSet = true;
215 m_recoveryPointTags.emplace(std::forward<RecoveryPointTagsKeyT>(key), std::forward<RecoveryPointTagsValueT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::Vector<CopyAction>& GetCopyActions() const { return m_copyActions; }
226 inline bool CopyActionsHasBeenSet() const { return m_copyActionsHasBeenSet; }
227 template <typename CopyActionsT = Aws::Vector<CopyAction>>
228 void SetCopyActions(CopyActionsT&& value) {
229 m_copyActionsHasBeenSet = true;
230 m_copyActions = std::forward<CopyActionsT>(value);
231 }
232 template <typename CopyActionsT = Aws::Vector<CopyAction>>
233 BackupRuleInput& WithCopyActions(CopyActionsT&& value) {
234 SetCopyActions(std::forward<CopyActionsT>(value));
235 return *this;
236 }
237 template <typename CopyActionsT = CopyAction>
238 BackupRuleInput& AddCopyActions(CopyActionsT&& value) {
239 m_copyActionsHasBeenSet = true;
240 m_copyActions.emplace_back(std::forward<CopyActionsT>(value));
241 return *this;
242 }
244
246
251 inline bool GetEnableContinuousBackup() const { return m_enableContinuousBackup; }
252 inline bool EnableContinuousBackupHasBeenSet() const { return m_enableContinuousBackupHasBeenSet; }
253 inline void SetEnableContinuousBackup(bool value) {
254 m_enableContinuousBackupHasBeenSet = true;
255 m_enableContinuousBackup = value;
256 }
259 return *this;
260 }
262
264
268 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
269 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
270 template <typename ScheduleExpressionTimezoneT = Aws::String>
271 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
272 m_scheduleExpressionTimezoneHasBeenSet = true;
273 m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value);
274 }
275 template <typename ScheduleExpressionTimezoneT = Aws::String>
276 BackupRuleInput& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
277 SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value));
278 return *this;
279 }
281
283
290 inline const Aws::Vector<IndexAction>& GetIndexActions() const { return m_indexActions; }
291 inline bool IndexActionsHasBeenSet() const { return m_indexActionsHasBeenSet; }
292 template <typename IndexActionsT = Aws::Vector<IndexAction>>
293 void SetIndexActions(IndexActionsT&& value) {
294 m_indexActionsHasBeenSet = true;
295 m_indexActions = std::forward<IndexActionsT>(value);
296 }
297 template <typename IndexActionsT = Aws::Vector<IndexAction>>
298 BackupRuleInput& WithIndexActions(IndexActionsT&& value) {
299 SetIndexActions(std::forward<IndexActionsT>(value));
300 return *this;
301 }
302 template <typename IndexActionsT = IndexAction>
303 BackupRuleInput& AddIndexActions(IndexActionsT&& value) {
304 m_indexActionsHasBeenSet = true;
305 m_indexActions.emplace_back(std::forward<IndexActionsT>(value));
306 return *this;
307 }
309
311
315 inline const Aws::Vector<ScanAction>& GetScanActions() const { return m_scanActions; }
316 inline bool ScanActionsHasBeenSet() const { return m_scanActionsHasBeenSet; }
317 template <typename ScanActionsT = Aws::Vector<ScanAction>>
318 void SetScanActions(ScanActionsT&& value) {
319 m_scanActionsHasBeenSet = true;
320 m_scanActions = std::forward<ScanActionsT>(value);
321 }
322 template <typename ScanActionsT = Aws::Vector<ScanAction>>
323 BackupRuleInput& WithScanActions(ScanActionsT&& value) {
324 SetScanActions(std::forward<ScanActionsT>(value));
325 return *this;
326 }
327 template <typename ScanActionsT = ScanAction>
328 BackupRuleInput& AddScanActions(ScanActionsT&& value) {
329 m_scanActionsHasBeenSet = true;
330 m_scanActions.emplace_back(std::forward<ScanActionsT>(value));
331 return *this;
332 }
334
336
347 inline const LocalBackupConfiguration& GetLocalBackupConfiguration() const { return m_localBackupConfiguration; }
348 inline bool LocalBackupConfigurationHasBeenSet() const { return m_localBackupConfigurationHasBeenSet; }
349 template <typename LocalBackupConfigurationT = LocalBackupConfiguration>
350 void SetLocalBackupConfiguration(LocalBackupConfigurationT&& value) {
351 m_localBackupConfigurationHasBeenSet = true;
352 m_localBackupConfiguration = std::forward<LocalBackupConfigurationT>(value);
353 }
354 template <typename LocalBackupConfigurationT = LocalBackupConfiguration>
355 BackupRuleInput& WithLocalBackupConfiguration(LocalBackupConfigurationT&& value) {
356 SetLocalBackupConfiguration(std::forward<LocalBackupConfigurationT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_ruleName;
362
363 Aws::String m_targetBackupVaultName;
364
365 Aws::String m_targetLogicallyAirGappedBackupVaultArn;
366
367 Aws::String m_scheduleExpression;
368
369 long long m_startWindowMinutes{0};
370
371 long long m_completionWindowMinutes{0};
372
373 Lifecycle m_lifecycle;
374
375 Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
376
377 Aws::Vector<CopyAction> m_copyActions;
378
379 bool m_enableContinuousBackup{false};
380
381 Aws::String m_scheduleExpressionTimezone;
382
383 Aws::Vector<IndexAction> m_indexActions;
384
385 Aws::Vector<ScanAction> m_scanActions;
386
387 LocalBackupConfiguration m_localBackupConfiguration;
388 bool m_ruleNameHasBeenSet = false;
389 bool m_targetBackupVaultNameHasBeenSet = false;
390 bool m_targetLogicallyAirGappedBackupVaultArnHasBeenSet = false;
391 bool m_scheduleExpressionHasBeenSet = false;
392 bool m_startWindowMinutesHasBeenSet = false;
393 bool m_completionWindowMinutesHasBeenSet = false;
394 bool m_lifecycleHasBeenSet = false;
395 bool m_recoveryPointTagsHasBeenSet = false;
396 bool m_copyActionsHasBeenSet = false;
397 bool m_enableContinuousBackupHasBeenSet = false;
398 bool m_scheduleExpressionTimezoneHasBeenSet = false;
399 bool m_indexActionsHasBeenSet = false;
400 bool m_scanActionsHasBeenSet = false;
401 bool m_localBackupConfigurationHasBeenSet = false;
402};
403
404} // namespace Model
405} // namespace Backup
406} // namespace Aws
BackupRuleInput & WithLocalBackupConfiguration(LocalBackupConfigurationT &&value)
BackupRuleInput & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
BackupRuleInput & WithRuleName(RuleNameT &&value)
BackupRuleInput & WithEnableContinuousBackup(bool value)
void SetScanActions(ScanActionsT &&value)
void SetStartWindowMinutes(long long value)
void SetCopyActions(CopyActionsT &&value)
AWS_BACKUP_API BackupRuleInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
BackupRuleInput & WithTargetLogicallyAirGappedBackupVaultArn(TargetLogicallyAirGappedBackupVaultArnT &&value)
AWS_BACKUP_API BackupRuleInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScheduleExpression() const
BackupRuleInput & AddIndexActions(IndexActionsT &&value)
void SetLifecycle(LifecycleT &&value)
void SetCompletionWindowMinutes(long long value)
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
const Aws::String & GetTargetLogicallyAirGappedBackupVaultArn() const
BackupRuleInput & WithLifecycle(LifecycleT &&value)
const Aws::String & GetScheduleExpressionTimezone() const
void SetLocalBackupConfiguration(LocalBackupConfigurationT &&value)
void SetIndexActions(IndexActionsT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
BackupRuleInput & WithIndexActions(IndexActionsT &&value)
const Aws::Vector< CopyAction > & GetCopyActions() const
bool TargetLogicallyAirGappedBackupVaultArnHasBeenSet() const
BackupRuleInput & WithTargetBackupVaultName(TargetBackupVaultNameT &&value)
const Aws::Vector< IndexAction > & GetIndexActions() const
const Aws::String & GetTargetBackupVaultName() const
void SetRecoveryPointTags(RecoveryPointTagsT &&value)
BackupRuleInput & WithRecoveryPointTags(RecoveryPointTagsT &&value)
void SetTargetLogicallyAirGappedBackupVaultArn(TargetLogicallyAirGappedBackupVaultArnT &&value)
const Lifecycle & GetLifecycle() const
BackupRuleInput & WithStartWindowMinutes(long long value)
const Aws::Vector< ScanAction > & GetScanActions() const
BackupRuleInput & WithScanActions(ScanActionsT &&value)
void SetTargetBackupVaultName(TargetBackupVaultNameT &&value)
AWS_BACKUP_API BackupRuleInput()=default
const LocalBackupConfiguration & GetLocalBackupConfiguration() const
BackupRuleInput & AddCopyActions(CopyActionsT &&value)
BackupRuleInput & AddRecoveryPointTags(RecoveryPointTagsKeyT &&key, RecoveryPointTagsValueT &&value)
BackupRuleInput & AddScanActions(ScanActionsT &&value)
BackupRuleInput & WithScheduleExpression(ScheduleExpressionT &&value)
void SetRuleName(RuleNameT &&value)
BackupRuleInput & WithCompletionWindowMinutes(long long value)
BackupRuleInput & WithCopyActions(CopyActionsT &&value)
const Aws::String & GetRuleName() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue