AWS SDK for C++  1.9.40
AWS SDK for C++
BackupPlan.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 BackupPlan& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;}
75 
79  inline BackupPlan& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;}
80 
84  inline BackupPlan& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;}
85 
86 
91  inline const Aws::Vector<BackupRule>& GetRules() const{ return m_rules; }
92 
97  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
98 
103  inline void SetRules(const Aws::Vector<BackupRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
104 
109  inline void SetRules(Aws::Vector<BackupRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
110 
115  inline BackupPlan& WithRules(const Aws::Vector<BackupRule>& value) { SetRules(value); return *this;}
116 
121  inline BackupPlan& WithRules(Aws::Vector<BackupRule>&& value) { SetRules(std::move(value)); return *this;}
122 
127  inline BackupPlan& AddRules(const BackupRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
128 
133  inline BackupPlan& AddRules(BackupRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
134 
135 
139  inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const{ return m_advancedBackupSettings; }
140 
144  inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; }
145 
149  inline void SetAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = value; }
150 
154  inline void SetAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::move(value); }
155 
159  inline BackupPlan& WithAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { SetAdvancedBackupSettings(value); return *this;}
160 
164  inline BackupPlan& WithAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { SetAdvancedBackupSettings(std::move(value)); return *this;}
165 
169  inline BackupPlan& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(value); return *this; }
170 
174  inline BackupPlan& AddAdvancedBackupSettings(AdvancedBackupSetting&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(std::move(value)); return *this; }
175 
176  private:
177 
178  Aws::String m_backupPlanName;
179  bool m_backupPlanNameHasBeenSet;
180 
181  Aws::Vector<BackupRule> m_rules;
182  bool m_rulesHasBeenSet;
183 
184  Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
185  bool m_advancedBackupSettingsHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace Backup
190 } // namespace Aws
Aws::Backup::Model::BackupPlan::SetRules
void SetRules(Aws::Vector< BackupRule > &&value)
Definition: BackupPlan.h:109
Aws::Backup::Model::BackupPlan::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Backup::Model::BackupPlan::WithRules
BackupPlan & WithRules(const Aws::Vector< BackupRule > &value)
Definition: BackupPlan.h:115
Aws::Backup::Model::BackupPlan::GetAdvancedBackupSettings
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
Definition: BackupPlan.h:139
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::BackupPlan::AddRules
BackupPlan & AddRules(BackupRule &&value)
Definition: BackupPlan.h:133
Aws::Backup::Model::BackupPlan::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: BackupPlan.h:97
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Backup::Model::BackupPlan::operator=
BackupPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::BackupPlan::SetAdvancedBackupSettings
void SetAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition: BackupPlan.h:154
AWSVector.h
Aws::Backup::Model::BackupPlan::WithBackupPlanName
BackupPlan & WithBackupPlanName(const char *value)
Definition: BackupPlan.h:84
Aws::Backup::Model::BackupPlan::AddRules
BackupPlan & AddRules(const BackupRule &value)
Definition: BackupPlan.h:127
AdvancedBackupSetting.h
Aws::Backup::Model::BackupRule
Definition: BackupRule.h:37
Aws::Backup::Model::BackupPlan::GetBackupPlanName
const Aws::String & GetBackupPlanName() const
Definition: BackupPlan.h:49
Aws::Backup::Model::BackupPlan::WithAdvancedBackupSettings
BackupPlan & WithAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition: BackupPlan.h:159
Aws::Backup::Model::BackupPlan::SetAdvancedBackupSettings
void SetAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition: BackupPlan.h:149
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Backup::Model::BackupPlan::SetRules
void SetRules(const Aws::Vector< BackupRule > &value)
Definition: BackupPlan.h:103
Aws::Backup::Model::BackupPlan::WithBackupPlanName
BackupPlan & WithBackupPlanName(Aws::String &&value)
Definition: BackupPlan.h:79
Aws::Backup::Model::BackupPlan::SetBackupPlanName
void SetBackupPlanName(const Aws::String &value)
Definition: BackupPlan.h:59
Aws::Backup::Model::BackupPlan::AdvancedBackupSettingsHasBeenSet
bool AdvancedBackupSettingsHasBeenSet() const
Definition: BackupPlan.h:144
Aws::Backup::Model::BackupPlan::AddAdvancedBackupSettings
BackupPlan & AddAdvancedBackupSettings(const AdvancedBackupSetting &value)
Definition: BackupPlan.h:169
Backup_EXPORTS.h
Aws::Backup::Model::BackupPlan::WithBackupPlanName
BackupPlan & WithBackupPlanName(const Aws::String &value)
Definition: BackupPlan.h:74
Aws::Backup::Model::BackupPlan::WithRules
BackupPlan & WithRules(Aws::Vector< BackupRule > &&value)
Definition: BackupPlan.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::BackupPlan::GetRules
const Aws::Vector< BackupRule > & GetRules() const
Definition: BackupPlan.h:91
Aws::Backup::Model::BackupPlan::SetBackupPlanName
void SetBackupPlanName(Aws::String &&value)
Definition: BackupPlan.h:64
Aws::Backup::Model::BackupPlan
Definition: BackupPlan.h:38
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::BackupPlan::SetBackupPlanName
void SetBackupPlanName(const char *value)
Definition: BackupPlan.h:69
Aws::Backup::Model::BackupPlan::WithAdvancedBackupSettings
BackupPlan & WithAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition: BackupPlan.h:164
Aws::Backup::Model::BackupPlan::BackupPlan
BackupPlan()
Aws::Backup::Model::BackupPlan::BackupPlan
BackupPlan(Aws::Utils::Json::JsonView jsonValue)
BackupRule.h
Aws::Backup::Model::BackupPlan::BackupPlanNameHasBeenSet
bool BackupPlanNameHasBeenSet() const
Definition: BackupPlan.h:54
Aws::Backup::Model::BackupPlan::AddAdvancedBackupSettings
BackupPlan & AddAdvancedBackupSettings(AdvancedBackupSetting &&value)
Definition: BackupPlan.h:174