AWS SDK for C++  1.9.40
AWS SDK for C++
BackupPlanInput.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Backup
25 {
26 namespace Model
27 {
28 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetBackupPlanName() const{ return m_backupPlanName; }
50 
54  inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; }
55 
59  inline void SetBackupPlanName(const Aws::String& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = value; }
60 
64  inline void SetBackupPlanName(Aws::String&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::move(value); }
65 
69  inline void SetBackupPlanName(const char* value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName.assign(value); }
70 
74  inline BackupPlanInput& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;}
75 
79  inline BackupPlanInput& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;}
80 
84  inline BackupPlanInput& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;}
85 
86 
91  inline const Aws::Vector<BackupRuleInput>& GetRules() const{ return m_rules; }
92 
97  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
98 
103  inline void SetRules(const Aws::Vector<BackupRuleInput>& value) { m_rulesHasBeenSet = true; m_rules = value; }
104 
109  inline void SetRules(Aws::Vector<BackupRuleInput>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
110 
115  inline BackupPlanInput& WithRules(const Aws::Vector<BackupRuleInput>& value) { SetRules(value); return *this;}
116 
121  inline BackupPlanInput& WithRules(Aws::Vector<BackupRuleInput>&& value) { SetRules(std::move(value)); return *this;}
122 
127  inline BackupPlanInput& AddRules(const BackupRuleInput& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
128 
133  inline BackupPlanInput& AddRules(BackupRuleInput&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
134 
135 
140  inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const{ return m_advancedBackupSettings; }
141 
146  inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; }
147 
152  inline void SetAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = value; }
153 
158  inline void SetAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::move(value); }
159 
164  inline BackupPlanInput& WithAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { SetAdvancedBackupSettings(value); return *this;}
165 
170  inline BackupPlanInput& WithAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { SetAdvancedBackupSettings(std::move(value)); return *this;}
171 
176  inline BackupPlanInput& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(value); return *this; }
177 
182  inline BackupPlanInput& AddAdvancedBackupSettings(AdvancedBackupSetting&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(std::move(value)); return *this; }
183 
184  private:
185 
186  Aws::String m_backupPlanName;
187  bool m_backupPlanNameHasBeenSet;
188 
190  bool m_rulesHasBeenSet;
191 
192  Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
193  bool m_advancedBackupSettingsHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace Backup
198 } // namespace Aws
Aws::Backup::Model::BackupRuleInput
Definition: BackupRuleInput.h:37
Aws::Backup::Model::BackupPlanInput::WithBackupPlanName
BackupPlanInput & WithBackupPlanName(const char *value)
Definition: BackupPlanInput.h:84
Aws::Backup::Model::BackupPlanInput::SetBackupPlanName
void SetBackupPlanName(Aws::String &&value)
Definition: BackupPlanInput.h:64
Aws::Backup::Model::BackupPlanInput::SetBackupPlanName
void SetBackupPlanName(const Aws::String &value)
Definition: BackupPlanInput.h:59
Aws::Backup::Model::BackupPlanInput::AddAdvancedBackupSettings
BackupPlanInput & AddAdvancedBackupSettings(const AdvancedBackupSetting &value)
Definition: BackupPlanInput.h:176
Aws::Backup::Model::BackupPlanInput::SetAdvancedBackupSettings
void SetAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition: BackupPlanInput.h:158
Aws::Backup::Model::BackupPlanInput::SetRules
void SetRules(Aws::Vector< BackupRuleInput > &&value)
Definition: BackupPlanInput.h:109
Aws::Backup::Model::BackupPlanInput::BackupPlanInput
BackupPlanInput()
Aws::Backup::Model::BackupPlanInput::SetAdvancedBackupSettings
void SetAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition: BackupPlanInput.h:152
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::BackupPlanInput::WithBackupPlanName
BackupPlanInput & WithBackupPlanName(const Aws::String &value)
Definition: BackupPlanInput.h:74
Aws::Backup::Model::BackupPlanInput::AddRules
BackupPlanInput & AddRules(BackupRuleInput &&value)
Definition: BackupPlanInput.h:133
Aws::Backup::Model::BackupPlanInput::AddRules
BackupPlanInput & AddRules(const BackupRuleInput &value)
Definition: BackupPlanInput.h:127
Aws::Backup::Model::BackupPlanInput::WithRules
BackupPlanInput & WithRules(Aws::Vector< BackupRuleInput > &&value)
Definition: BackupPlanInput.h:121
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
BackupRuleInput.h
AWSVector.h
Aws::Backup::Model::BackupPlanInput::WithRules
BackupPlanInput & WithRules(const Aws::Vector< BackupRuleInput > &value)
Definition: BackupPlanInput.h:115
Aws::Backup::Model::BackupPlanInput
Definition: BackupPlanInput.h:38
Aws::Backup::Model::BackupPlanInput::AddAdvancedBackupSettings
BackupPlanInput & AddAdvancedBackupSettings(AdvancedBackupSetting &&value)
Definition: BackupPlanInput.h:182
Aws::Backup::Model::BackupPlanInput::WithBackupPlanName
BackupPlanInput & WithBackupPlanName(Aws::String &&value)
Definition: BackupPlanInput.h:79
Aws::Backup::Model::BackupPlanInput::SetRules
void SetRules(const Aws::Vector< BackupRuleInput > &value)
Definition: BackupPlanInput.h:103
AdvancedBackupSetting.h
Aws::Backup::Model::BackupPlanInput::GetAdvancedBackupSettings
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
Definition: BackupPlanInput.h:140
Aws::Backup::Model::BackupPlanInput::GetBackupPlanName
const Aws::String & GetBackupPlanName() const
Definition: BackupPlanInput.h:49
Aws::Backup::Model::BackupPlanInput::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: BackupPlanInput.h:97
Aws::Backup::Model::BackupPlanInput::GetRules
const Aws::Vector< BackupRuleInput > & GetRules() const
Definition: BackupPlanInput.h:91
Aws::Backup::Model::BackupPlanInput::SetBackupPlanName
void SetBackupPlanName(const char *value)
Definition: BackupPlanInput.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Backup::Model::BackupPlanInput::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Backup_EXPORTS.h
Aws::Backup::Model::BackupPlanInput::BackupPlanInput
BackupPlanInput(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::BackupPlanInput::AdvancedBackupSettingsHasBeenSet
bool AdvancedBackupSettingsHasBeenSet() const
Definition: BackupPlanInput.h:146
Aws::Backup::Model::BackupPlanInput::WithAdvancedBackupSettings
BackupPlanInput & WithAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition: BackupPlanInput.h:164
Aws::Backup::Model::BackupPlanInput::WithAdvancedBackupSettings
BackupPlanInput & WithAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition: BackupPlanInput.h:170
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::AdvancedBackupSetting
Definition: AdvancedBackupSetting.h:34
Aws::Backup::Model::BackupPlanInput::BackupPlanNameHasBeenSet
bool BackupPlanNameHasBeenSet() const
Definition: BackupPlanInput.h:54
Aws::Backup::Model::BackupPlanInput::operator=
BackupPlanInput & operator=(Aws::Utils::Json::JsonView jsonValue)