AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SizingDatabaseBackupConfiguration.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/backup-external/model/SizingBackupRule.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BackupExternal {
21namespace Model {
22
30 public:
31 AWS_BACKUPEXTERNAL_API SizingDatabaseBackupConfiguration() = default;
34 AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<SizingBackupRule>& GetBackupRules() const { return m_backupRules; }
41 inline bool BackupRulesHasBeenSet() const { return m_backupRulesHasBeenSet; }
42 template <typename BackupRulesT = Aws::Vector<SizingBackupRule>>
43 void SetBackupRules(BackupRulesT&& value) {
44 m_backupRulesHasBeenSet = true;
45 m_backupRules = std::forward<BackupRulesT>(value);
46 }
47 template <typename BackupRulesT = Aws::Vector<SizingBackupRule>>
49 SetBackupRules(std::forward<BackupRulesT>(value));
50 return *this;
51 }
52 template <typename BackupRulesT = SizingBackupRule>
54 m_backupRulesHasBeenSet = true;
55 m_backupRules.emplace_back(std::forward<BackupRulesT>(value));
56 return *this;
57 }
59
61
64 inline int GetFullBackupAfterDays() const { return m_fullBackupAfterDays; }
65 inline bool FullBackupAfterDaysHasBeenSet() const { return m_fullBackupAfterDaysHasBeenSet; }
66 inline void SetFullBackupAfterDays(int value) {
67 m_fullBackupAfterDaysHasBeenSet = true;
68 m_fullBackupAfterDays = value;
69 }
72 return *this;
73 }
75
77
83 inline double GetLogChangeRatePercent() const { return m_logChangeRatePercent; }
84 inline bool LogChangeRatePercentHasBeenSet() const { return m_logChangeRatePercentHasBeenSet; }
85 inline void SetLogChangeRatePercent(double value) {
86 m_logChangeRatePercentHasBeenSet = true;
87 m_logChangeRatePercent = value;
88 }
91 return *this;
92 }
94 private:
96
97 int m_fullBackupAfterDays{0};
98
99 double m_logChangeRatePercent{0.0};
100 bool m_backupRulesHasBeenSet = false;
101 bool m_fullBackupAfterDaysHasBeenSet = false;
102 bool m_logChangeRatePercentHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace BackupExternal
107} // namespace Aws
AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const
SizingDatabaseBackupConfiguration & AddBackupRules(BackupRulesT &&value)
AWS_BACKUPEXTERNAL_API SizingDatabaseBackupConfiguration()=default
SizingDatabaseBackupConfiguration & WithLogChangeRatePercent(double value)
AWS_BACKUPEXTERNAL_API SizingDatabaseBackupConfiguration(Aws::Utils::Json::JsonView jsonValue)
SizingDatabaseBackupConfiguration & WithBackupRules(BackupRulesT &&value)
AWS_BACKUPEXTERNAL_API SizingDatabaseBackupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue