AWS SDK for C++  1.9.154
AWS SDK for C++
BackupRule.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Backup
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
49  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
50 
55  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
56 
61  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
62 
67  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
68 
73  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
74 
79  inline BackupRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
80 
85  inline BackupRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
86 
91  inline BackupRule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
92 
93 
100  inline const Aws::String& GetTargetBackupVaultName() const{ return m_targetBackupVaultName; }
101 
108  inline bool TargetBackupVaultNameHasBeenSet() const { return m_targetBackupVaultNameHasBeenSet; }
109 
116  inline void SetTargetBackupVaultName(const Aws::String& value) { m_targetBackupVaultNameHasBeenSet = true; m_targetBackupVaultName = value; }
117 
124  inline void SetTargetBackupVaultName(Aws::String&& value) { m_targetBackupVaultNameHasBeenSet = true; m_targetBackupVaultName = std::move(value); }
125 
132  inline void SetTargetBackupVaultName(const char* value) { m_targetBackupVaultNameHasBeenSet = true; m_targetBackupVaultName.assign(value); }
133 
140  inline BackupRule& WithTargetBackupVaultName(const Aws::String& value) { SetTargetBackupVaultName(value); return *this;}
141 
148  inline BackupRule& WithTargetBackupVaultName(Aws::String&& value) { SetTargetBackupVaultName(std::move(value)); return *this;}
149 
156  inline BackupRule& WithTargetBackupVaultName(const char* value) { SetTargetBackupVaultName(value); return *this;}
157 
158 
169  inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
170 
181  inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
182 
193  inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
194 
205  inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
206 
217  inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
218 
229  inline BackupRule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
230 
241  inline BackupRule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
242 
253  inline BackupRule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
254 
255 
260  inline long long GetStartWindowMinutes() const{ return m_startWindowMinutes; }
261 
266  inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
267 
272  inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; }
273 
278  inline BackupRule& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;}
279 
280 
285  inline long long GetCompletionWindowMinutes() const{ return m_completionWindowMinutes; }
286 
291  inline bool CompletionWindowMinutesHasBeenSet() const { return m_completionWindowMinutesHasBeenSet; }
292 
297  inline void SetCompletionWindowMinutes(long long value) { m_completionWindowMinutesHasBeenSet = true; m_completionWindowMinutes = value; }
298 
303  inline BackupRule& WithCompletionWindowMinutes(long long value) { SetCompletionWindowMinutes(value); return *this;}
304 
305 
316  inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
317 
328  inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
329 
340  inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
341 
352  inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
353 
364  inline BackupRule& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
365 
376  inline BackupRule& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
377 
378 
383  inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const{ return m_recoveryPointTags; }
384 
389  inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
390 
395  inline void SetRecoveryPointTags(const Aws::Map<Aws::String, Aws::String>& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = value; }
396 
401  inline void SetRecoveryPointTags(Aws::Map<Aws::String, Aws::String>&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = std::move(value); }
402 
407  inline BackupRule& WithRecoveryPointTags(const Aws::Map<Aws::String, Aws::String>& value) { SetRecoveryPointTags(value); return *this;}
408 
413  inline BackupRule& WithRecoveryPointTags(Aws::Map<Aws::String, Aws::String>&& value) { SetRecoveryPointTags(std::move(value)); return *this;}
414 
419  inline BackupRule& AddRecoveryPointTags(const Aws::String& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
420 
425  inline BackupRule& AddRecoveryPointTags(Aws::String&& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
426 
431  inline BackupRule& AddRecoveryPointTags(const Aws::String& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
432 
437  inline BackupRule& AddRecoveryPointTags(Aws::String&& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), std::move(value)); return *this; }
438 
443  inline BackupRule& AddRecoveryPointTags(const char* key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
444 
449  inline BackupRule& AddRecoveryPointTags(Aws::String&& key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
450 
455  inline BackupRule& AddRecoveryPointTags(const char* key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
456 
457 
462  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
463 
468  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
469 
474  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
475 
480  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
481 
486  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
487 
492  inline BackupRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
493 
498  inline BackupRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
499 
504  inline BackupRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
505 
506 
511  inline const Aws::Vector<CopyAction>& GetCopyActions() const{ return m_copyActions; }
512 
517  inline bool CopyActionsHasBeenSet() const { return m_copyActionsHasBeenSet; }
518 
523  inline void SetCopyActions(const Aws::Vector<CopyAction>& value) { m_copyActionsHasBeenSet = true; m_copyActions = value; }
524 
529  inline void SetCopyActions(Aws::Vector<CopyAction>&& value) { m_copyActionsHasBeenSet = true; m_copyActions = std::move(value); }
530 
535  inline BackupRule& WithCopyActions(const Aws::Vector<CopyAction>& value) { SetCopyActions(value); return *this;}
536 
541  inline BackupRule& WithCopyActions(Aws::Vector<CopyAction>&& value) { SetCopyActions(std::move(value)); return *this;}
542 
547  inline BackupRule& AddCopyActions(const CopyAction& value) { m_copyActionsHasBeenSet = true; m_copyActions.push_back(value); return *this; }
548 
553  inline BackupRule& AddCopyActions(CopyAction&& value) { m_copyActionsHasBeenSet = true; m_copyActions.push_back(std::move(value)); return *this; }
554 
555 
561  inline bool GetEnableContinuousBackup() const{ return m_enableContinuousBackup; }
562 
568  inline bool EnableContinuousBackupHasBeenSet() const { return m_enableContinuousBackupHasBeenSet; }
569 
575  inline void SetEnableContinuousBackup(bool value) { m_enableContinuousBackupHasBeenSet = true; m_enableContinuousBackup = value; }
576 
582  inline BackupRule& WithEnableContinuousBackup(bool value) { SetEnableContinuousBackup(value); return *this;}
583 
584  private:
585 
586  Aws::String m_ruleName;
587  bool m_ruleNameHasBeenSet;
588 
589  Aws::String m_targetBackupVaultName;
590  bool m_targetBackupVaultNameHasBeenSet;
591 
592  Aws::String m_scheduleExpression;
593  bool m_scheduleExpressionHasBeenSet;
594 
595  long long m_startWindowMinutes;
596  bool m_startWindowMinutesHasBeenSet;
597 
598  long long m_completionWindowMinutes;
599  bool m_completionWindowMinutesHasBeenSet;
600 
601  Lifecycle m_lifecycle;
602  bool m_lifecycleHasBeenSet;
603 
604  Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
605  bool m_recoveryPointTagsHasBeenSet;
606 
607  Aws::String m_ruleId;
608  bool m_ruleIdHasBeenSet;
609 
610  Aws::Vector<CopyAction> m_copyActions;
611  bool m_copyActionsHasBeenSet;
612 
613  bool m_enableContinuousBackup;
614  bool m_enableContinuousBackupHasBeenSet;
615  };
616 
617 } // namespace Model
618 } // namespace Backup
619 } // namespace Aws
Aws::Backup::Model::BackupRule::WithRuleName
BackupRule & WithRuleName(const char *value)
Definition: BackupRule.h:91
Aws::Backup::Model::BackupRule::WithTargetBackupVaultName
BackupRule & WithTargetBackupVaultName(Aws::String &&value)
Definition: BackupRule.h:148
Aws::Backup::Model::BackupRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(Aws::String &&key, const char *value)
Definition: BackupRule.h:449
Aws::Backup::Model::BackupRule::SetRuleName
void SetRuleName(const char *value)
Definition: BackupRule.h:73
Aws::Backup::Model::BackupRule::WithRecoveryPointTags
BackupRule & WithRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: BackupRule.h:413
Aws::Backup::Model::BackupRule::WithRecoveryPointTags
BackupRule & WithRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: BackupRule.h:407
Aws::Backup::Model::BackupRule::WithTargetBackupVaultName
BackupRule & WithTargetBackupVaultName(const char *value)
Definition: BackupRule.h:156
Aws::Backup::Model::BackupRule::WithRuleName
BackupRule & WithRuleName(Aws::String &&value)
Definition: BackupRule.h:85
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(const char *key, const char *value)
Definition: BackupRule.h:455
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(Aws::String &&key, Aws::String &&value)
Definition: BackupRule.h:437
Aws::Backup::Model::BackupRule::CopyActionsHasBeenSet
bool CopyActionsHasBeenSet() const
Definition: BackupRule.h:517
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::BackupRule::GetRecoveryPointTags
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
Definition: BackupRule.h:383
Aws::Backup::Model::BackupRule::WithRuleId
BackupRule & WithRuleId(const char *value)
Definition: BackupRule.h:504
Aws::Backup::Model::BackupRule::WithLifecycle
BackupRule & WithLifecycle(Lifecycle &&value)
Definition: BackupRule.h:376
Aws::Backup::Model::BackupRule::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: BackupRule.h:61
Aws::Backup::Model::BackupRule::SetRuleId
void SetRuleId(const char *value)
Definition: BackupRule.h:486
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(const char *key, Aws::String &&value)
Definition: BackupRule.h:443
Aws::Backup::Model::BackupRule::SetRecoveryPointTags
void SetRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: BackupRule.h:395
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Backup::Model::BackupRule::WithCopyActions
BackupRule & WithCopyActions(Aws::Vector< CopyAction > &&value)
Definition: BackupRule.h:541
Aws::Backup::Model::BackupRule::SetCopyActions
void SetCopyActions(const Aws::Vector< CopyAction > &value)
Definition: BackupRule.h:523
AWSVector.h
Aws::Backup::Model::BackupRule::GetStartWindowMinutes
long long GetStartWindowMinutes() const
Definition: BackupRule.h:260
Aws::Backup::Model::BackupRule::SetCopyActions
void SetCopyActions(Aws::Vector< CopyAction > &&value)
Definition: BackupRule.h:529
Aws::Backup::Model::BackupRule::WithCopyActions
BackupRule & WithCopyActions(const Aws::Vector< CopyAction > &value)
Definition: BackupRule.h:535
Aws::Backup::Model::BackupRule::LifecycleHasBeenSet
bool LifecycleHasBeenSet() const
Definition: BackupRule.h:328
Aws::Backup::Model::BackupRule::WithScheduleExpression
BackupRule & WithScheduleExpression(Aws::String &&value)
Definition: BackupRule.h:241
Aws::Backup::Model::BackupRule::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: BackupRule.h:55
Aws::Backup::Model::BackupRule::WithRuleName
BackupRule & WithRuleName(const Aws::String &value)
Definition: BackupRule.h:79
Aws::Backup::Model::BackupRule::SetLifecycle
void SetLifecycle(Lifecycle &&value)
Definition: BackupRule.h:352
Aws::Backup::Model::BackupRule::SetLifecycle
void SetLifecycle(const Lifecycle &value)
Definition: BackupRule.h:340
Aws::Backup::Model::BackupRule::WithScheduleExpression
BackupRule & WithScheduleExpression(const Aws::String &value)
Definition: BackupRule.h:229
Aws::Backup::Model::Lifecycle
Definition: Lifecycle.h:37
Aws::Backup::Model::BackupRule::SetTargetBackupVaultName
void SetTargetBackupVaultName(Aws::String &&value)
Definition: BackupRule.h:124
Aws::Backup::Model::BackupRule::WithScheduleExpression
BackupRule & WithScheduleExpression(const char *value)
Definition: BackupRule.h:253
Aws::Backup::Model::BackupRule::GetScheduleExpression
const Aws::String & GetScheduleExpression() const
Definition: BackupRule.h:169
Aws::Backup::Model::BackupRule
Definition: BackupRule.h:37
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(Aws::String &&key, const Aws::String &value)
Definition: BackupRule.h:425
Aws::Backup::Model::BackupRule::SetScheduleExpression
void SetScheduleExpression(const Aws::String &value)
Definition: BackupRule.h:193
Aws::Backup::Model::BackupRule::GetLifecycle
const Lifecycle & GetLifecycle() const
Definition: BackupRule.h:316
Aws::Backup::Model::BackupRule::GetRuleName
const Aws::String & GetRuleName() const
Definition: BackupRule.h:49
Aws::Backup::Model::BackupRule::GetCopyActions
const Aws::Vector< CopyAction > & GetCopyActions() const
Definition: BackupRule.h:511
Aws::Backup::Model::BackupRule::WithCompletionWindowMinutes
BackupRule & WithCompletionWindowMinutes(long long value)
Definition: BackupRule.h:303
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Backup::Model::BackupRule::BackupRule
BackupRule(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Backup::Model::BackupRule::WithStartWindowMinutes
BackupRule & WithStartWindowMinutes(long long value)
Definition: BackupRule.h:278
Aws::Backup::Model::BackupRule::SetScheduleExpression
void SetScheduleExpression(const char *value)
Definition: BackupRule.h:217
Aws::Backup::Model::BackupRule::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: BackupRule.h:474
Aws::Backup::Model::BackupRule::WithRuleId
BackupRule & WithRuleId(const Aws::String &value)
Definition: BackupRule.h:492
Aws::Backup::Model::BackupRule::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: BackupRule.h:480
Aws::Backup::Model::BackupRule::WithRuleId
BackupRule & WithRuleId(Aws::String &&value)
Definition: BackupRule.h:498
Aws::Backup::Model::BackupRule::GetCompletionWindowMinutes
long long GetCompletionWindowMinutes() const
Definition: BackupRule.h:285
Aws::Backup::Model::BackupRule::RecoveryPointTagsHasBeenSet
bool RecoveryPointTagsHasBeenSet() const
Definition: BackupRule.h:389
Lifecycle.h
Aws::Backup::Model::BackupRule::WithLifecycle
BackupRule & WithLifecycle(const Lifecycle &value)
Definition: BackupRule.h:364
Backup_EXPORTS.h
Aws::Backup::Model::BackupRule::EnableContinuousBackupHasBeenSet
bool EnableContinuousBackupHasBeenSet() const
Definition: BackupRule.h:568
Aws::Backup::Model::BackupRule::GetRuleId
const Aws::String & GetRuleId() const
Definition: BackupRule.h:462
Aws::Backup::Model::BackupRule::ScheduleExpressionHasBeenSet
bool ScheduleExpressionHasBeenSet() const
Definition: BackupRule.h:181
Aws::Backup::Model::BackupRule::WithTargetBackupVaultName
BackupRule & WithTargetBackupVaultName(const Aws::String &value)
Definition: BackupRule.h:140
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::BackupRule::StartWindowMinutesHasBeenSet
bool StartWindowMinutesHasBeenSet() const
Definition: BackupRule.h:266
Aws::Backup::Model::BackupRule::AddCopyActions
BackupRule & AddCopyActions(CopyAction &&value)
Definition: BackupRule.h:553
Aws::Backup::Model::BackupRule::GetTargetBackupVaultName
const Aws::String & GetTargetBackupVaultName() const
Definition: BackupRule.h:100
Aws::Backup::Model::BackupRule::BackupRule
BackupRule()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::BackupRule::SetTargetBackupVaultName
void SetTargetBackupVaultName(const Aws::String &value)
Definition: BackupRule.h:116
Aws::Backup::Model::BackupRule::SetScheduleExpression
void SetScheduleExpression(Aws::String &&value)
Definition: BackupRule.h:205
Aws::Backup::Model::BackupRule::TargetBackupVaultNameHasBeenSet
bool TargetBackupVaultNameHasBeenSet() const
Definition: BackupRule.h:108
Aws::Backup::Model::BackupRule::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: BackupRule.h:67
Aws::Backup::Model::BackupRule::GetEnableContinuousBackup
bool GetEnableContinuousBackup() const
Definition: BackupRule.h:561
Aws::Backup::Model::CopyAction
Definition: CopyAction.h:33
CopyAction.h
Aws::Backup::Model::BackupRule::SetEnableContinuousBackup
void SetEnableContinuousBackup(bool value)
Definition: BackupRule.h:575
Aws::Backup::Model::BackupRule::CompletionWindowMinutesHasBeenSet
bool CompletionWindowMinutesHasBeenSet() const
Definition: BackupRule.h:291
Aws::Backup::Model::BackupRule::operator=
BackupRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::BackupRule::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: BackupRule.h:468
Aws::Backup::Model::BackupRule::WithEnableContinuousBackup
BackupRule & WithEnableContinuousBackup(bool value)
Definition: BackupRule.h:582
AWSMap.h
Aws::Backup::Model::BackupRule::SetRecoveryPointTags
void SetRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: BackupRule.h:401
Aws::Backup::Model::BackupRule::SetTargetBackupVaultName
void SetTargetBackupVaultName(const char *value)
Definition: BackupRule.h:132
Aws::Backup::Model::BackupRule::AddCopyActions
BackupRule & AddCopyActions(const CopyAction &value)
Definition: BackupRule.h:547
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(const Aws::String &key, const Aws::String &value)
Definition: BackupRule.h:419
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Backup::Model::BackupRule::SetStartWindowMinutes
void SetStartWindowMinutes(long long value)
Definition: BackupRule.h:272
Aws::Backup::Model::BackupRule::SetCompletionWindowMinutes
void SetCompletionWindowMinutes(long long value)
Definition: BackupRule.h:297
Aws::Backup::Model::BackupRule::AddRecoveryPointTags
BackupRule & AddRecoveryPointTags(const Aws::String &key, Aws::String &&value)
Definition: BackupRule.h:431