AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBackupPlanName(const Aws::String& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = value; }
54 inline void SetBackupPlanName(Aws::String&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::move(value); }
55 inline void SetBackupPlanName(const char* value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName.assign(value); }
56 inline BackupPlanInput& WithBackupPlanName(const Aws::String& value) { SetBackupPlanName(value); return *this;}
57 inline BackupPlanInput& WithBackupPlanName(Aws::String&& value) { SetBackupPlanName(std::move(value)); return *this;}
58 inline BackupPlanInput& WithBackupPlanName(const char* value) { SetBackupPlanName(value); return *this;}
60
62
66 inline const Aws::Vector<BackupRuleInput>& GetRules() const{ return m_rules; }
67 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
68 inline void SetRules(const Aws::Vector<BackupRuleInput>& value) { m_rulesHasBeenSet = true; m_rules = value; }
69 inline void SetRules(Aws::Vector<BackupRuleInput>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
70 inline BackupPlanInput& WithRules(const Aws::Vector<BackupRuleInput>& value) { SetRules(value); return *this;}
71 inline BackupPlanInput& WithRules(Aws::Vector<BackupRuleInput>&& value) { SetRules(std::move(value)); return *this;}
72 inline BackupPlanInput& AddRules(const BackupRuleInput& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
73 inline BackupPlanInput& AddRules(BackupRuleInput&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
75
77
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 BackupPlanInput& AddAdvancedBackupSettings(const AdvancedBackupSetting& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.push_back(value); return *this; }
89 inline BackupPlanInput& 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
BackupPlanInput & WithBackupPlanName(const Aws::String &value)
void SetBackupPlanName(Aws::String &&value)
BackupPlanInput & AddAdvancedBackupSettings(AdvancedBackupSetting &&value)
void SetBackupPlanName(const Aws::String &value)
BackupPlanInput & WithAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
const Aws::String & GetBackupPlanName() const
BackupPlanInput & WithBackupPlanName(const char *value)
BackupPlanInput & WithRules(const Aws::Vector< BackupRuleInput > &value)
void SetBackupPlanName(const char *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(Aws::String &&value)
void SetRules(Aws::Vector< BackupRuleInput > &&value)
BackupPlanInput & AddRules(const BackupRuleInput &value)
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
void SetAdvancedBackupSettings(const Aws::Vector< AdvancedBackupSetting > &value)
BackupPlanInput & AddAdvancedBackupSettings(const AdvancedBackupSetting &value)
BackupPlanInput & AddRules(BackupRuleInput &&value)
void SetAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
BackupPlanInput & WithAdvancedBackupSettings(Aws::Vector< AdvancedBackupSetting > &&value)
BackupPlanInput & WithRules(Aws::Vector< BackupRuleInput > &&value)
void SetRules(const Aws::Vector< BackupRuleInput > &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