AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SizingNasBackupConfiguration.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/backup-external/model/SizingBackupRule.h>
9#include <aws/backup-external/model/SizingNasDataProfile.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BackupExternal {
22namespace Model {
23
31 public:
32 AWS_BACKUPEXTERNAL_API SizingNasBackupConfiguration() = default;
35 AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline SizingNasDataProfile GetDataProfile() const { return m_dataProfile; }
43 inline bool DataProfileHasBeenSet() const { return m_dataProfileHasBeenSet; }
45 m_dataProfileHasBeenSet = true;
46 m_dataProfile = value;
47 }
49 SetDataProfile(value);
50 return *this;
51 }
53
55
59 inline double GetInitialFileCountInMillions() const { return m_initialFileCountInMillions; }
60 inline bool InitialFileCountInMillionsHasBeenSet() const { return m_initialFileCountInMillionsHasBeenSet; }
61 inline void SetInitialFileCountInMillions(double value) {
62 m_initialFileCountInMillionsHasBeenSet = true;
63 m_initialFileCountInMillions = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::Vector<SizingBackupRule>& GetBackupRules() const { return m_backupRules; }
76 inline bool BackupRulesHasBeenSet() const { return m_backupRulesHasBeenSet; }
77 template <typename BackupRulesT = Aws::Vector<SizingBackupRule>>
78 void SetBackupRules(BackupRulesT&& value) {
79 m_backupRulesHasBeenSet = true;
80 m_backupRules = std::forward<BackupRulesT>(value);
81 }
82 template <typename BackupRulesT = Aws::Vector<SizingBackupRule>>
84 SetBackupRules(std::forward<BackupRulesT>(value));
85 return *this;
86 }
87 template <typename BackupRulesT = SizingBackupRule>
89 m_backupRulesHasBeenSet = true;
90 m_backupRules.emplace_back(std::forward<BackupRulesT>(value));
91 return *this;
92 }
94 private:
96
97 double m_initialFileCountInMillions{0.0};
98
100 bool m_dataProfileHasBeenSet = false;
101 bool m_initialFileCountInMillionsHasBeenSet = false;
102 bool m_backupRulesHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace BackupExternal
107} // namespace Aws
AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SizingBackupRule > & GetBackupRules() const
AWS_BACKUPEXTERNAL_API SizingNasBackupConfiguration()=default
SizingNasBackupConfiguration & WithDataProfile(SizingNasDataProfile value)
AWS_BACKUPEXTERNAL_API SizingNasBackupConfiguration(Aws::Utils::Json::JsonView jsonValue)
SizingNasBackupConfiguration & WithBackupRules(BackupRulesT &&value)
AWS_BACKUPEXTERNAL_API SizingNasBackupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SizingNasBackupConfiguration & AddBackupRules(BackupRulesT &&value)
SizingNasBackupConfiguration & WithInitialFileCountInMillions(double value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue