7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/Lifecycle.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/backup/model/CopyAction.h>
54 inline void SetRuleName(
const char* value) { m_ruleNameHasBeenSet =
true; m_ruleName.assign(value); }
70 inline void SetTargetBackupVaultName(
const char* value) { m_targetBackupVaultNameHasBeenSet =
true; m_targetBackupVaultName.assign(value); }
91 inline void SetScheduleExpression(
const char* value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression.assign(value); }
112 inline void SetStartWindowMinutes(
long long value) { m_startWindowMinutesHasBeenSet =
true; m_startWindowMinutes = value; }
166 inline BackupRule&
AddRecoveryPointTags(
const char* key,
const char* value) { m_recoveryPointTagsHasBeenSet =
true; m_recoveryPointTags.emplace(key, value);
return *
this; }
178 inline void SetRuleId(
const char* value) { m_ruleIdHasBeenSet =
true; m_ruleId.assign(value); }
228 bool m_ruleNameHasBeenSet =
false;
231 bool m_targetBackupVaultNameHasBeenSet =
false;
234 bool m_scheduleExpressionHasBeenSet =
false;
236 long long m_startWindowMinutes;
237 bool m_startWindowMinutesHasBeenSet =
false;
239 long long m_completionWindowMinutes;
240 bool m_completionWindowMinutesHasBeenSet =
false;
243 bool m_lifecycleHasBeenSet =
false;
246 bool m_recoveryPointTagsHasBeenSet =
false;
249 bool m_ruleIdHasBeenSet =
false;
252 bool m_copyActionsHasBeenSet =
false;
254 bool m_enableContinuousBackup;
255 bool m_enableContinuousBackupHasBeenSet =
false;
258 bool m_scheduleExpressionTimezoneHasBeenSet =
false;
void SetScheduleExpression(Aws::String &&value)
BackupRule & AddCopyActions(const CopyAction &value)
BackupRule & WithRuleId(const char *value)
BackupRule & WithScheduleExpressionTimezone(const Aws::String &value)
void SetTargetBackupVaultName(const char *value)
BackupRule & WithScheduleExpressionTimezone(Aws::String &&value)
BackupRule & WithEnableContinuousBackup(bool value)
const Aws::String & GetScheduleExpression() const
void SetTargetBackupVaultName(const Aws::String &value)
BackupRule & WithRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
BackupRule & AddRecoveryPointTags(Aws::String &&key, Aws::String &&value)
void SetStartWindowMinutes(long long value)
bool RuleNameHasBeenSet() const
BackupRule & AddRecoveryPointTags(const Aws::String &key, const Aws::String &value)
bool CompletionWindowMinutesHasBeenSet() const
void SetLifecycle(Lifecycle &&value)
BackupRule & WithCopyActions(Aws::Vector< CopyAction > &&value)
void SetRuleName(const char *value)
void SetRuleName(Aws::String &&value)
bool EnableContinuousBackupHasBeenSet() const
void SetRuleId(Aws::String &&value)
void SetScheduleExpression(const char *value)
void SetTargetBackupVaultName(Aws::String &&value)
BackupRule & WithRuleName(const char *value)
BackupRule & WithRuleId(Aws::String &&value)
void SetRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetCompletionWindowMinutes(long long value)
void SetScheduleExpressionTimezone(Aws::String &&value)
void SetCopyActions(Aws::Vector< CopyAction > &&value)
const Lifecycle & GetLifecycle() const
AWS_BACKUP_API BackupRule()
BackupRule & WithTargetBackupVaultName(const char *value)
BackupRule & AddCopyActions(CopyAction &&value)
BackupRule & WithScheduleExpressionTimezone(const char *value)
BackupRule & WithTargetBackupVaultName(Aws::String &&value)
BackupRule & WithCopyActions(const Aws::Vector< CopyAction > &value)
BackupRule & WithRuleId(const Aws::String &value)
BackupRule & AddRecoveryPointTags(Aws::String &&key, const char *value)
bool StartWindowMinutesHasBeenSet() const
void SetScheduleExpression(const Aws::String &value)
BackupRule & WithScheduleExpression(const Aws::String &value)
bool RuleIdHasBeenSet() const
bool GetEnableContinuousBackup() const
BackupRule & WithRuleName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
BackupRule & WithLifecycle(Lifecycle &&value)
bool RecoveryPointTagsHasBeenSet() const
void SetRuleId(const Aws::String &value)
BackupRule & WithScheduleExpression(Aws::String &&value)
BackupRule & WithTargetBackupVaultName(const Aws::String &value)
BackupRule & AddRecoveryPointTags(const char *key, const char *value)
BackupRule & WithRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetScheduleExpressionTimezone(const Aws::String &value)
bool ScheduleExpressionTimezoneHasBeenSet() const
BackupRule & WithScheduleExpression(const char *value)
void SetLifecycle(const Lifecycle &value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API BackupRule(Aws::Utils::Json::JsonView jsonValue)
void SetScheduleExpressionTimezone(const char *value)
BackupRule & WithLifecycle(const Lifecycle &value)
bool ScheduleExpressionHasBeenSet() const
long long GetStartWindowMinutes() const
bool TargetBackupVaultNameHasBeenSet() const
void SetRuleName(const Aws::String &value)
const Aws::String & GetRuleName() const
BackupRule & WithStartWindowMinutes(long long value)
BackupRule & AddRecoveryPointTags(const Aws::String &key, Aws::String &&value)
bool CopyActionsHasBeenSet() const
BackupRule & AddRecoveryPointTags(Aws::String &&key, const Aws::String &value)
void SetRuleId(const char *value)
void SetRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
BackupRule & AddRecoveryPointTags(const char *key, Aws::String &&value)
const Aws::Vector< CopyAction > & GetCopyActions() const
long long GetCompletionWindowMinutes() const
BackupRule & WithCompletionWindowMinutes(long long value)
void SetCopyActions(const Aws::Vector< CopyAction > &value)
BackupRule & WithRuleName(Aws::String &&value)
void SetEnableContinuousBackup(bool value)
const Aws::String & GetRuleId() const
AWS_BACKUP_API BackupRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LifecycleHasBeenSet() const
const Aws::String & GetScheduleExpressionTimezone() const
const Aws::String & GetTargetBackupVaultName() 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