AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BackupPlanInput.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/backup/model/BackupRuleInput.h>
11#include <aws/backup/model/AdvancedBackupSetting.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Backup
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_BACKUP_API BackupPlanInput() = default;
43 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetBackupPlanName() const { return m_backupPlanName; }
52 inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; }
53 template<typename BackupPlanNameT = Aws::String>
54 void SetBackupPlanName(BackupPlanNameT&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::forward<BackupPlanNameT>(value); }
55 template<typename BackupPlanNameT = Aws::String>
56 BackupPlanInput& WithBackupPlanName(BackupPlanNameT&& value) { SetBackupPlanName(std::forward<BackupPlanNameT>(value)); return *this;}
58
60
64 inline const Aws::Vector<BackupRuleInput>& GetRules() const { return m_rules; }
65 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
66 template<typename RulesT = Aws::Vector<BackupRuleInput>>
67 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
68 template<typename RulesT = Aws::Vector<BackupRuleInput>>
69 BackupPlanInput& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
70 template<typename RulesT = BackupRuleInput>
71 BackupPlanInput& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
73
75
80 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
81 inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; }
82 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
83 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value); }
84 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
85 BackupPlanInput& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value)); return *this;}
86 template<typename AdvancedBackupSettingsT = AdvancedBackupSetting>
87 BackupPlanInput& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value)); return *this; }
89 private:
90
91 Aws::String m_backupPlanName;
92 bool m_backupPlanNameHasBeenSet = false;
93
95 bool m_rulesHasBeenSet = false;
96
97 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
98 bool m_advancedBackupSettingsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Backup
103} // namespace Aws
AWS_BACKUP_API BackupPlanInput()=default
BackupPlanInput & AddAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
const Aws::String & GetBackupPlanName() const
void SetBackupPlanName(BackupPlanNameT &&value)
void SetAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
const Aws::Vector< BackupRuleInput > & GetRules() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API BackupPlanInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API BackupPlanInput(Aws::Utils::Json::JsonView jsonValue)
BackupPlanInput & WithBackupPlanName(BackupPlanNameT &&value)
BackupPlanInput & AddRules(RulesT &&value)
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
BackupPlanInput & WithAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
BackupPlanInput & WithRules(RulesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue