AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RelationalDatabaseBundle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
29 public:
30 AWS_LIGHTSAIL_API RelationalDatabaseBundle() = default;
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBundleId() const { return m_bundleId; }
40 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
41 template <typename BundleIdT = Aws::String>
42 void SetBundleId(BundleIdT&& value) {
43 m_bundleIdHasBeenSet = true;
44 m_bundleId = std::forward<BundleIdT>(value);
45 }
46 template <typename BundleIdT = Aws::String>
48 SetBundleId(std::forward<BundleIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline double GetPrice() const { return m_price; }
76 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
77 inline void SetPrice(double value) {
78 m_priceHasBeenSet = true;
79 m_price = value;
80 }
81 inline RelationalDatabaseBundle& WithPrice(double value) {
82 SetPrice(value);
83 return *this;
84 }
86
88
92 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
93 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
94 inline void SetRamSizeInGb(double value) {
95 m_ramSizeInGbHasBeenSet = true;
96 m_ramSizeInGb = value;
97 }
99 SetRamSizeInGb(value);
100 return *this;
101 }
103
105
108 inline int GetDiskSizeInGb() const { return m_diskSizeInGb; }
109 inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
110 inline void SetDiskSizeInGb(int value) {
111 m_diskSizeInGbHasBeenSet = true;
112 m_diskSizeInGb = value;
113 }
115 SetDiskSizeInGb(value);
116 return *this;
117 }
119
121
124 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
125 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
126 inline void SetTransferPerMonthInGb(int value) {
127 m_transferPerMonthInGbHasBeenSet = true;
128 m_transferPerMonthInGb = value;
129 }
132 return *this;
133 }
135
137
140 inline int GetCpuCount() const { return m_cpuCount; }
141 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
142 inline void SetCpuCount(int value) {
143 m_cpuCountHasBeenSet = true;
144 m_cpuCount = value;
145 }
147 SetCpuCount(value);
148 return *this;
149 }
151
153
156 inline bool GetIsEncrypted() const { return m_isEncrypted; }
157 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
158 inline void SetIsEncrypted(bool value) {
159 m_isEncryptedHasBeenSet = true;
160 m_isEncrypted = value;
161 }
163 SetIsEncrypted(value);
164 return *this;
165 }
167
169
172 inline bool GetIsActive() const { return m_isActive; }
173 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
174 inline void SetIsActive(bool value) {
175 m_isActiveHasBeenSet = true;
176 m_isActive = value;
177 }
179 SetIsActive(value);
180 return *this;
181 }
183 private:
184 Aws::String m_bundleId;
185
186 Aws::String m_name;
187
188 double m_price{0.0};
189
190 double m_ramSizeInGb{0.0};
191
192 int m_diskSizeInGb{0};
193
194 int m_transferPerMonthInGb{0};
195
196 int m_cpuCount{0};
197
198 bool m_isEncrypted{false};
199
200 bool m_isActive{false};
201 bool m_bundleIdHasBeenSet = false;
202 bool m_nameHasBeenSet = false;
203 bool m_priceHasBeenSet = false;
204 bool m_ramSizeInGbHasBeenSet = false;
205 bool m_diskSizeInGbHasBeenSet = false;
206 bool m_transferPerMonthInGbHasBeenSet = false;
207 bool m_cpuCountHasBeenSet = false;
208 bool m_isEncryptedHasBeenSet = false;
209 bool m_isActiveHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace Lightsail
214} // namespace Aws
AWS_LIGHTSAIL_API RelationalDatabaseBundle()=default
RelationalDatabaseBundle & WithIsActive(bool value)
RelationalDatabaseBundle & WithName(NameT &&value)
RelationalDatabaseBundle & WithBundleId(BundleIdT &&value)
RelationalDatabaseBundle & WithIsEncrypted(bool value)
RelationalDatabaseBundle & WithPrice(double value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
RelationalDatabaseBundle & WithRamSizeInGb(double value)
RelationalDatabaseBundle & WithDiskSizeInGb(int value)
AWS_LIGHTSAIL_API RelationalDatabaseBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API RelationalDatabaseBundle(Aws::Utils::Json::JsonView jsonValue)
RelationalDatabaseBundle & WithTransferPerMonthInGb(int value)
RelationalDatabaseBundle & WithCpuCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue