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>
49 template <
typename RuleNameT = Aws::String>
51 m_ruleNameHasBeenSet =
true;
52 m_ruleName = std::forward<RuleNameT>(value);
54 template <
typename RuleNameT = Aws::String>
69 template <
typename TargetBackupVaultNameT = Aws::String>
71 m_targetBackupVaultNameHasBeenSet =
true;
72 m_targetBackupVaultName = std::forward<TargetBackupVaultNameT>(value);
74 template <
typename TargetBackupVaultNameT = Aws::String>
91 template <
typename TargetLogicallyAirGappedBackupVaultArnT = Aws::String>
93 m_targetLogicallyAirGappedBackupVaultArnHasBeenSet =
true;
94 m_targetLogicallyAirGappedBackupVaultArn = std::forward<TargetLogicallyAirGappedBackupVaultArnT>(value);
96 template <
typename TargetLogicallyAirGappedBackupVaultArnT = Aws::String>
118 template <
typename ScheduleExpressionT = Aws::String>
120 m_scheduleExpressionHasBeenSet =
true;
121 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
123 template <
typename ScheduleExpressionT = Aws::String>
146 m_startWindowMinutesHasBeenSet =
true;
147 m_startWindowMinutes = value;
163 m_completionWindowMinutesHasBeenSet =
true;
164 m_completionWindowMinutes = value;
188 template <
typename LifecycleT = Lifecycle>
190 m_lifecycleHasBeenSet =
true;
191 m_lifecycle = std::forward<LifecycleT>(value);
193 template <
typename LifecycleT = Lifecycle>
207 template <
typename RecoveryPo
intTagsT = Aws::Map<Aws::String, Aws::String>>
209 m_recoveryPointTagsHasBeenSet =
true;
210 m_recoveryPointTags = std::forward<RecoveryPointTagsT>(value);
212 template <
typename RecoveryPo
intTagsT = Aws::Map<Aws::String, Aws::String>>
217 template <
typename RecoveryPo
intTagsKeyT = Aws::String,
typename RecoveryPo
intTagsValueT = Aws::String>
219 m_recoveryPointTagsHasBeenSet =
true;
220 m_recoveryPointTags.emplace(std::forward<RecoveryPointTagsKeyT>(key), std::forward<RecoveryPointTagsValueT>(value));
232 template <
typename RuleIdT = Aws::String>
234 m_ruleIdHasBeenSet =
true;
235 m_ruleId = std::forward<RuleIdT>(value);
237 template <
typename RuleIdT = Aws::String>
251 template <
typename CopyActionsT = Aws::Vector<CopyAction>>
253 m_copyActionsHasBeenSet =
true;
254 m_copyActions = std::forward<CopyActionsT>(value);
256 template <
typename CopyActionsT = Aws::Vector<CopyAction>>
261 template <
typename CopyActionsT = CopyAction>
263 m_copyActionsHasBeenSet =
true;
264 m_copyActions.emplace_back(std::forward<CopyActionsT>(value));
278 m_enableContinuousBackupHasBeenSet =
true;
279 m_enableContinuousBackup = value;
294 template <
typename ScheduleExpressionTimezoneT = Aws::String>
296 m_scheduleExpressionTimezoneHasBeenSet =
true;
297 m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value);
299 template <
typename ScheduleExpressionTimezoneT = Aws::String>
315 template <
typename IndexActionsT = Aws::Vector<IndexAction>>
317 m_indexActionsHasBeenSet =
true;
318 m_indexActions = std::forward<IndexActionsT>(value);
320 template <
typename IndexActionsT = Aws::Vector<IndexAction>>
325 template <
typename IndexActionsT = IndexAction>
327 m_indexActionsHasBeenSet =
true;
328 m_indexActions.emplace_back(std::forward<IndexActionsT>(value));
340 template <
typename ScanActionsT = Aws::Vector<ScanAction>>
342 m_scanActionsHasBeenSet =
true;
343 m_scanActions = std::forward<ScanActionsT>(value);
345 template <
typename ScanActionsT = Aws::Vector<ScanAction>>
350 template <
typename ScanActionsT = ScanAction>
352 m_scanActionsHasBeenSet =
true;
353 m_scanActions.emplace_back(std::forward<ScanActionsT>(value));
367 template <
typename LocalBackupConfigurationT = LocalBackupConfiguration>
369 m_localBackupConfigurationHasBeenSet =
true;
370 m_localBackupConfiguration = std::forward<LocalBackupConfigurationT>(value);
372 template <
typename LocalBackupConfigurationT = LocalBackupConfiguration>
383 Aws::String m_targetLogicallyAirGappedBackupVaultArn;
387 long long m_startWindowMinutes{0};
389 long long m_completionWindowMinutes{0};
391 Lifecycle m_lifecycle;
399 bool m_enableContinuousBackup{
false};
407 LocalBackupConfiguration m_localBackupConfiguration;
408 bool m_ruleNameHasBeenSet =
false;
409 bool m_targetBackupVaultNameHasBeenSet =
false;
410 bool m_targetLogicallyAirGappedBackupVaultArnHasBeenSet =
false;
411 bool m_scheduleExpressionHasBeenSet =
false;
412 bool m_startWindowMinutesHasBeenSet =
false;
413 bool m_completionWindowMinutesHasBeenSet =
false;
414 bool m_lifecycleHasBeenSet =
false;
415 bool m_recoveryPointTagsHasBeenSet =
false;
416 bool m_ruleIdHasBeenSet =
false;
417 bool m_copyActionsHasBeenSet =
false;
418 bool m_enableContinuousBackupHasBeenSet =
false;
419 bool m_scheduleExpressionTimezoneHasBeenSet =
false;
420 bool m_indexActionsHasBeenSet =
false;
421 bool m_scanActionsHasBeenSet =
false;
422 bool m_localBackupConfigurationHasBeenSet =
false;
BackupRule & WithRuleId(RuleIdT &&value)
void SetScanActions(ScanActionsT &&value)
bool TargetLogicallyAirGappedBackupVaultArnHasBeenSet() const
BackupRule & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
void SetLocalBackupConfiguration(LocalBackupConfigurationT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
BackupRule & WithEnableContinuousBackup(bool value)
const Aws::String & GetScheduleExpression() const
void SetStartWindowMinutes(long long value)
void SetLifecycle(LifecycleT &&value)
const Aws::String & GetTargetLogicallyAirGappedBackupVaultArn() const
BackupRule & WithScheduleExpression(ScheduleExpressionT &&value)
BackupRule & AddCopyActions(CopyActionsT &&value)
bool RuleNameHasBeenSet() const
const LocalBackupConfiguration & GetLocalBackupConfiguration() const
bool CompletionWindowMinutesHasBeenSet() const
BackupRule & WithRecoveryPointTags(RecoveryPointTagsT &&value)
bool EnableContinuousBackupHasBeenSet() const
BackupRule & WithTargetLogicallyAirGappedBackupVaultArn(TargetLogicallyAirGappedBackupVaultArnT &&value)
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
BackupRule & WithCopyActions(CopyActionsT &&value)
void SetRuleId(RuleIdT &&value)
bool ScanActionsHasBeenSet() const
BackupRule & WithTargetBackupVaultName(TargetBackupVaultNameT &&value)
void SetCompletionWindowMinutes(long long value)
const Lifecycle & GetLifecycle() const
void SetTargetBackupVaultName(TargetBackupVaultNameT &&value)
BackupRule & AddRecoveryPointTags(RecoveryPointTagsKeyT &&key, RecoveryPointTagsValueT &&value)
BackupRule & WithRuleName(RuleNameT &&value)
void SetTargetLogicallyAirGappedBackupVaultArn(TargetLogicallyAirGappedBackupVaultArnT &&value)
bool StartWindowMinutesHasBeenSet() const
BackupRule & AddIndexActions(IndexActionsT &&value)
bool RuleIdHasBeenSet() const
bool GetEnableContinuousBackup() const
void SetRuleName(RuleNameT &&value)
const Aws::Vector< ScanAction > & GetScanActions() const
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
bool RecoveryPointTagsHasBeenSet() const
BackupRule & WithScanActions(ScanActionsT &&value)
BackupRule & WithLifecycle(LifecycleT &&value)
bool ScheduleExpressionTimezoneHasBeenSet() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API BackupRule(Aws::Utils::Json::JsonView jsonValue)
BackupRule & WithIndexActions(IndexActionsT &&value)
bool ScheduleExpressionHasBeenSet() const
long long GetStartWindowMinutes() const
bool TargetBackupVaultNameHasBeenSet() const
BackupRule & WithLocalBackupConfiguration(LocalBackupConfigurationT &&value)
AWS_BACKUP_API BackupRule()=default
const Aws::String & GetRuleName() const
BackupRule & WithStartWindowMinutes(long long value)
bool CopyActionsHasBeenSet() const
const Aws::Vector< CopyAction > & GetCopyActions() const
const Aws::Vector< IndexAction > & GetIndexActions() const
void SetIndexActions(IndexActionsT &&value)
void SetRecoveryPointTags(RecoveryPointTagsT &&value)
long long GetCompletionWindowMinutes() const
BackupRule & WithCompletionWindowMinutes(long long value)
void SetEnableContinuousBackup(bool value)
bool IndexActionsHasBeenSet() const
const Aws::String & GetRuleId() const
void SetCopyActions(CopyActionsT &&value)
AWS_BACKUP_API BackupRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LifecycleHasBeenSet() const
const Aws::String & GetScheduleExpressionTimezone() const
bool LocalBackupConfigurationHasBeenSet() const
const Aws::String & GetTargetBackupVaultName() const
BackupRule & AddScanActions(ScanActionsT &&value)
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