AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BackupPlan.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/BackupRule.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 BackupPlan();
41 AWS_BACKUP_API BackupPlan(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetBackupPlanName() const{ return m_backupPlanName; }
54 inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; }
55 inline void SetBackupPlanName(const Aws::String& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = value; }
56 inline void SetBackupPlanName(Aws::String&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::move(value); }
57 inline void SetBackupPlanName(const char* value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName.assign(value); }
58 inline BackupPlan& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;}
59 inline BackupPlan& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;}
60 inline BackupPlan& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;}
62
64
68 inline const Aws::Vector<BackupRule>& GetRules() const{ return m_rules; }
69 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
70 inline void SetRules(const Aws::Vector<BackupRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
71 inline void SetRules(Aws::Vector<BackupRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
72 inline BackupPlan& WithRules(const Aws::Vector<BackupRule>& value) { SetRules(value); return *this;}
73 inline BackupPlan& WithRules(Aws::Vector<BackupRule>&& value) { SetRules(std::move(value)); return *this;}
74 inline BackupPlan& AddRules(const BackupRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
75 inline BackupPlan& AddRules(BackupRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const{ return m_advancedBackupSettings; }
83 inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; }
84 inline void SetAdvancedBackupSettings(const Aws::Vector<AdvancedBackupSetting>& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = value; }
85 inline void SetAdvancedBackupSettings(Aws::Vector<AdvancedBackupSetting>&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::move(value); }
88 inline BackupPlan& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(value); return *this; }
89 inline BackupPlan& AddAdvancedBackupSettings(AdvancedBackupSetting&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(std::move(value)); return *this; }
91 private:
92
93 Aws::String m_backupPlanName;
94 bool m_backupPlanNameHasBeenSet = false;
95
97 bool m_rulesHasBeenSet = false;
98
99 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
100 bool m_advancedBackupSettingsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Backup
105} // namespace Aws
void SetRules(Aws::Vector< BackupRule > &&value)
Definition BackupPlan.h:71
void SetRules(const Aws::Vector< BackupRule > &value)
Definition BackupPlan.h:70
BackupPlan & WithBackupPlanName(const Aws::String &value)
Definition BackupPlan.h:58
void SetBackupPlanName(Aws::String &&value)
Definition BackupPlan.h:56
BackupPlan & WithBackupPlanName(Aws::String &&value)
Definition BackupPlan.h:59
void SetBackupPlanName(const Aws::String &value)
Definition BackupPlan.h:55
BackupPlan & WithRules(const Aws::Vector< BackupRule > &value)
Definition BackupPlan.h:72
BackupPlan & WithRules(Aws::Vector< BackupRule > &&value)
Definition BackupPlan.h:73
BackupPlan & WithAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition BackupPlan.h:86
bool AdvancedBackupSettingsHasBeenSet() const
Definition BackupPlan.h:83
AWS_BACKUP_API BackupPlan(Aws::Utils::Json::JsonView jsonValue)
BackupPlan & AddRules(BackupRule &&value)
Definition BackupPlan.h:75
BackupPlan & AddAdvancedBackupSettings(AdvancedBackupSetting &&value)
Definition BackupPlan.h:89
BackupPlan & AddRules(const BackupRule &value)
Definition BackupPlan.h:74
const Aws::String & GetBackupPlanName() const
Definition BackupPlan.h:53
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
Definition BackupPlan.h:82
AWS_BACKUP_API BackupPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
BackupPlan & AddAdvancedBackupSettings(const AdvancedBackupSetting &value)
Definition BackupPlan.h:88
void SetAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition BackupPlan.h:85
BackupPlan & WithAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
Definition BackupPlan.h:87
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
bool BackupPlanNameHasBeenSet() const
Definition BackupPlan.h:54
const Aws::Vector< BackupRule > & GetRules() const
Definition BackupPlan.h:68
void SetBackupPlanName(const char *value)
Definition BackupPlan.h:57
void SetAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
Definition BackupPlan.h:84
BackupPlan & WithBackupPlanName(const char *value)
Definition BackupPlan.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue