AWS SDK for C++  1.9.156
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 
50  inline const Aws::String& GetBackupPlanName() const{ return m_backupPlanName; }
51 
56  inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; }
57 
62  inline void SetBackupPlanName(const Aws::String& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = value; }
63 
68  inline void SetBackupPlanName(Aws::String&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::move(value); }
69 
74  inline void SetBackupPlanName(const char* value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName.assign(value); }
75 
80  inline BackupPlanInput& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;}
81 
86  inline BackupPlanInput& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;}
87 
92  inline BackupPlanInput& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;}
93 
94 
99  inline const Aws::Vector<BackupRuleInput>& GetRules() const{ return m_rules; }
100 
105  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
106 
111  inline void SetRules(const Aws::Vector<BackupRuleInput>& value) { m_rulesHasBeenSet = true; m_rules = value; }
112 
117  inline void SetRules(Aws::Vector<BackupRuleInput>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
118 
123  inline BackupPlanInput& WithRules(const Aws::Vector<BackupRuleInput>& value) { SetRules(value); return *this;}
124 
129  inline BackupPlanInput& WithRules(Aws::Vector<BackupRuleInput>&& value) { SetRules(std::move(value)); return *this;}
130 
135  inline BackupPlanInput& AddRules(const BackupRuleInput& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
136 
141  inline BackupPlanInput& AddRules(BackupRuleInput&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
142 
143 
149  inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const{ return m_advancedBackupSettings; }
150 
156  inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; }
157 
163  inline void SetAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = value; }
164 
170  inline void SetAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::move(value); }
171 
177  inline BackupPlanInput& WithAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { SetAdvancedBackupSettings(value); return *this;}
178 
184  inline BackupPlanInput& WithAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { SetAdvancedBackupSettings(std::move(value)); return *this;}
185 
191  inline BackupPlanInput& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(value); return *this; }
192 
198  inline BackupPlanInput& AddAdvancedBackupSettings(AdvancedBackupSetting&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(std::move(value)); return *this; }
199 
200  private:
201 
202  Aws::String m_backupPlanName;
203  bool m_backupPlanNameHasBeenSet;
204 
206  bool m_rulesHasBeenSet;
207 
208  Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
209  bool m_advancedBackupSettingsHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace Backup
214 } // namespace Aws
Aws::Backup::Model::BackupRuleInput
Definition: BackupRuleInput.h:37
Aws::Backup::Model::BackupPlanInput::WithBackupPlanName
BackupPlanInput & WithBackupPlanName(const char *value)
Definition: BackupPlanInput.h:92
Aws::Backup::Model::BackupPlanInput::SetBackupPlanName
void SetBackupPlanName(Aws::String &&value)
Definition: BackupPlanInput.h:68
Aws::Backup::Model::BackupPlanInput::SetBackupPlanName
void SetBackupPlanName(const Aws::String &value)
Definition: BackupPlanInput.h:62
Aws::Backup::Model::BackupPlanInput::AddAdvancedBackupSettings
BackupPlanInput & AddAdvancedBackupSettings(const AdvancedBackupSetting &value)
Definition: BackupPlanInput.h:191
Aws::Backup::Model::BackupPlanInput::SetAdvancedBackupSettings
void SetAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition: BackupPlanInput.h:170
Aws::Backup::Model::BackupPlanInput::SetRules
void SetRules(Aws::Vector< BackupRuleInput > &&value)
Definition: BackupPlanInput.h:117
Aws::Backup::Model::BackupPlanInput::BackupPlanInput
BackupPlanInput()
Aws::Backup::Model::BackupPlanInput::SetAdvancedBackupSettings
void SetAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition: BackupPlanInput.h:163
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:80
Aws::Backup::Model::BackupPlanInput::AddRules
BackupPlanInput & AddRules(BackupRuleInput &&value)
Definition: BackupPlanInput.h:141
Aws::Backup::Model::BackupPlanInput::AddRules
BackupPlanInput & AddRules(const BackupRuleInput &value)
Definition: BackupPlanInput.h:135
Aws::Backup::Model::BackupPlanInput::WithRules
BackupPlanInput & WithRules(Aws::Vector< BackupRuleInput > &&value)
Definition: BackupPlanInput.h:129
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:123
Aws::Backup::Model::BackupPlanInput
Definition: BackupPlanInput.h:38
Aws::Backup::Model::BackupPlanInput::AddAdvancedBackupSettings
BackupPlanInput & AddAdvancedBackupSettings(AdvancedBackupSetting &&value)
Definition: BackupPlanInput.h:198
Aws::Backup::Model::BackupPlanInput::WithBackupPlanName
BackupPlanInput & WithBackupPlanName(Aws::String &&value)
Definition: BackupPlanInput.h:86
Aws::Backup::Model::BackupPlanInput::SetRules
void SetRules(const Aws::Vector< BackupRuleInput > &value)
Definition: BackupPlanInput.h:111
AdvancedBackupSetting.h
Aws::Backup::Model::BackupPlanInput::GetAdvancedBackupSettings
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
Definition: BackupPlanInput.h:149
Aws::Backup::Model::BackupPlanInput::GetBackupPlanName
const Aws::String & GetBackupPlanName() const
Definition: BackupPlanInput.h:50
Aws::Backup::Model::BackupPlanInput::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: BackupPlanInput.h:105
Aws::Backup::Model::BackupPlanInput::GetRules
const Aws::Vector< BackupRuleInput > & GetRules() const
Definition: BackupPlanInput.h:99
Aws::Backup::Model::BackupPlanInput::SetBackupPlanName
void SetBackupPlanName(const char *value)
Definition: BackupPlanInput.h:74
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
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::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::BackupPlanInput::AdvancedBackupSettingsHasBeenSet
bool AdvancedBackupSettingsHasBeenSet() const
Definition: BackupPlanInput.h:156
Aws::Backup::Model::BackupPlanInput::WithAdvancedBackupSettings
BackupPlanInput & WithAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition: BackupPlanInput.h:177
Aws::Backup::Model::BackupPlanInput::WithAdvancedBackupSettings
BackupPlanInput & WithAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition: BackupPlanInput.h:184
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:56
Aws::Backup::Model::BackupPlanInput::operator=
BackupPlanInput & operator=(Aws::Utils::Json::JsonView jsonValue)