AWS SDK for C++  1.9.22
AWS SDK for C++
RelationalDatabaseBundle.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
45 
49  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
50 
54  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
55 
59  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
60 
64  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
65 
69  inline RelationalDatabaseBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
70 
74  inline RelationalDatabaseBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
75 
79  inline RelationalDatabaseBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
80 
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 
95  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 
105  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 
110  inline RelationalDatabaseBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline RelationalDatabaseBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline RelationalDatabaseBundle& WithName(const char* value) { SetName(value); return *this;}
121 
122 
126  inline double GetPrice() const{ return m_price; }
127 
131  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
132 
136  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
137 
141  inline RelationalDatabaseBundle& WithPrice(double value) { SetPrice(value); return *this;}
142 
143 
148  inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
149 
154  inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
155 
160  inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
161 
166  inline RelationalDatabaseBundle& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
167 
168 
172  inline int GetDiskSizeInGb() const{ return m_diskSizeInGb; }
173 
177  inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
178 
182  inline void SetDiskSizeInGb(int value) { m_diskSizeInGbHasBeenSet = true; m_diskSizeInGb = value; }
183 
187  inline RelationalDatabaseBundle& WithDiskSizeInGb(int value) { SetDiskSizeInGb(value); return *this;}
188 
189 
193  inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
194 
198  inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
199 
203  inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
204 
208  inline RelationalDatabaseBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
209 
210 
214  inline int GetCpuCount() const{ return m_cpuCount; }
215 
219  inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
220 
224  inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
225 
229  inline RelationalDatabaseBundle& WithCpuCount(int value) { SetCpuCount(value); return *this;}
230 
231 
235  inline bool GetIsEncrypted() const{ return m_isEncrypted; }
236 
240  inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
241 
245  inline void SetIsEncrypted(bool value) { m_isEncryptedHasBeenSet = true; m_isEncrypted = value; }
246 
250  inline RelationalDatabaseBundle& WithIsEncrypted(bool value) { SetIsEncrypted(value); return *this;}
251 
252 
256  inline bool GetIsActive() const{ return m_isActive; }
257 
261  inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
262 
266  inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
267 
271  inline RelationalDatabaseBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
272 
273  private:
274 
275  Aws::String m_bundleId;
276  bool m_bundleIdHasBeenSet;
277 
278  Aws::String m_name;
279  bool m_nameHasBeenSet;
280 
281  double m_price;
282  bool m_priceHasBeenSet;
283 
284  double m_ramSizeInGb;
285  bool m_ramSizeInGbHasBeenSet;
286 
287  int m_diskSizeInGb;
288  bool m_diskSizeInGbHasBeenSet;
289 
290  int m_transferPerMonthInGb;
291  bool m_transferPerMonthInGbHasBeenSet;
292 
293  int m_cpuCount;
294  bool m_cpuCountHasBeenSet;
295 
296  bool m_isEncrypted;
297  bool m_isEncryptedHasBeenSet;
298 
299  bool m_isActive;
300  bool m_isActiveHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace Lightsail
305 } // namespace Aws
Aws::Lightsail::Model::RelationalDatabaseBundle::WithBundleId
RelationalDatabaseBundle & WithBundleId(Aws::String &&value)
Definition: RelationalDatabaseBundle.h:74
Aws::Lightsail::Model::RelationalDatabaseBundle::operator=
RelationalDatabaseBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::RelationalDatabaseBundle::GetName
const Aws::String & GetName() const
Definition: RelationalDatabaseBundle.h:85
Aws::Lightsail::Model::RelationalDatabaseBundle::WithName
RelationalDatabaseBundle & WithName(const Aws::String &value)
Definition: RelationalDatabaseBundle.h:110
Aws::Lightsail::Model::RelationalDatabaseBundle::WithCpuCount
RelationalDatabaseBundle & WithCpuCount(int value)
Definition: RelationalDatabaseBundle.h:229
Aws::Lightsail::Model::RelationalDatabaseBundle::GetIsActive
bool GetIsActive() const
Definition: RelationalDatabaseBundle.h:256
Aws::Lightsail::Model::RelationalDatabaseBundle::SetIsActive
void SetIsActive(bool value)
Definition: RelationalDatabaseBundle.h:266
Aws::Lightsail::Model::RelationalDatabaseBundle::SetRamSizeInGb
void SetRamSizeInGb(double value)
Definition: RelationalDatabaseBundle.h:160
Aws::Lightsail::Model::RelationalDatabaseBundle::WithIsActive
RelationalDatabaseBundle & WithIsActive(bool value)
Definition: RelationalDatabaseBundle.h:271
Aws::Lightsail::Model::RelationalDatabaseBundle::GetBundleId
const Aws::String & GetBundleId() const
Definition: RelationalDatabaseBundle.h:44
Aws::Lightsail::Model::RelationalDatabaseBundle::WithBundleId
RelationalDatabaseBundle & WithBundleId(const Aws::String &value)
Definition: RelationalDatabaseBundle.h:69
Aws::Lightsail::Model::RelationalDatabaseBundle::TransferPerMonthInGbHasBeenSet
bool TransferPerMonthInGbHasBeenSet() const
Definition: RelationalDatabaseBundle.h:198
Aws::Lightsail::Model::RelationalDatabaseBundle::DiskSizeInGbHasBeenSet
bool DiskSizeInGbHasBeenSet() const
Definition: RelationalDatabaseBundle.h:177
Aws::Lightsail::Model::RelationalDatabaseBundle::GetTransferPerMonthInGb
int GetTransferPerMonthInGb() const
Definition: RelationalDatabaseBundle.h:193
Aws::Lightsail::Model::RelationalDatabaseBundle::GetIsEncrypted
bool GetIsEncrypted() const
Definition: RelationalDatabaseBundle.h:235
Aws::Lightsail::Model::RelationalDatabaseBundle::GetPrice
double GetPrice() const
Definition: RelationalDatabaseBundle.h:126
Aws::Lightsail::Model::RelationalDatabaseBundle::RamSizeInGbHasBeenSet
bool RamSizeInGbHasBeenSet() const
Definition: RelationalDatabaseBundle.h:154
Aws::Lightsail::Model::RelationalDatabaseBundle::WithName
RelationalDatabaseBundle & WithName(Aws::String &&value)
Definition: RelationalDatabaseBundle.h:115
Aws::Lightsail::Model::RelationalDatabaseBundle::WithRamSizeInGb
RelationalDatabaseBundle & WithRamSizeInGb(double value)
Definition: RelationalDatabaseBundle.h:166
Aws::Lightsail::Model::RelationalDatabaseBundle::SetPrice
void SetPrice(double value)
Definition: RelationalDatabaseBundle.h:136
Aws::Lightsail::Model::RelationalDatabaseBundle::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: RelationalDatabaseBundle.h:131
Aws::Lightsail::Model::RelationalDatabaseBundle::CpuCountHasBeenSet
bool CpuCountHasBeenSet() const
Definition: RelationalDatabaseBundle.h:219
Aws::Lightsail::Model::RelationalDatabaseBundle::RelationalDatabaseBundle
RelationalDatabaseBundle()
Aws::Lightsail::Model::RelationalDatabaseBundle::WithName
RelationalDatabaseBundle & WithName(const char *value)
Definition: RelationalDatabaseBundle.h:120
Aws::Lightsail::Model::RelationalDatabaseBundle::WithBundleId
RelationalDatabaseBundle & WithBundleId(const char *value)
Definition: RelationalDatabaseBundle.h:79
Aws::Lightsail::Model::RelationalDatabaseBundle::GetRamSizeInGb
double GetRamSizeInGb() const
Definition: RelationalDatabaseBundle.h:148
Aws::Lightsail::Model::RelationalDatabaseBundle::WithPrice
RelationalDatabaseBundle & WithPrice(double value)
Definition: RelationalDatabaseBundle.h:141
Aws::Lightsail::Model::RelationalDatabaseBundle::RelationalDatabaseBundle
RelationalDatabaseBundle(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::RelationalDatabaseBundle::SetName
void SetName(Aws::String &&value)
Definition: RelationalDatabaseBundle.h:100
Aws::Lightsail::Model::RelationalDatabaseBundle::GetDiskSizeInGb
int GetDiskSizeInGb() const
Definition: RelationalDatabaseBundle.h:172
Aws::Lightsail::Model::RelationalDatabaseBundle::WithTransferPerMonthInGb
RelationalDatabaseBundle & WithTransferPerMonthInGb(int value)
Definition: RelationalDatabaseBundle.h:208
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Lightsail_EXPORTS.h
Aws::Lightsail::Model::RelationalDatabaseBundle::WithIsEncrypted
RelationalDatabaseBundle & WithIsEncrypted(bool value)
Definition: RelationalDatabaseBundle.h:250
Aws::Lightsail::Model::RelationalDatabaseBundle::SetCpuCount
void SetCpuCount(int value)
Definition: RelationalDatabaseBundle.h:224
Aws::Lightsail::Model::RelationalDatabaseBundle
Definition: RelationalDatabaseBundle.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::RelationalDatabaseBundle::SetName
void SetName(const char *value)
Definition: RelationalDatabaseBundle.h:105
Aws::Lightsail::Model::RelationalDatabaseBundle::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: RelationalDatabaseBundle.h:49
Aws::Lightsail::Model::RelationalDatabaseBundle::GetCpuCount
int GetCpuCount() const
Definition: RelationalDatabaseBundle.h:214
Aws::Lightsail::Model::RelationalDatabaseBundle::SetBundleId
void SetBundleId(const char *value)
Definition: RelationalDatabaseBundle.h:64
Aws::Lightsail::Model::RelationalDatabaseBundle::WithDiskSizeInGb
RelationalDatabaseBundle & WithDiskSizeInGb(int value)
Definition: RelationalDatabaseBundle.h:187
Aws::Lightsail::Model::RelationalDatabaseBundle::IsActiveHasBeenSet
bool IsActiveHasBeenSet() const
Definition: RelationalDatabaseBundle.h:261
Aws::Lightsail::Model::RelationalDatabaseBundle::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RelationalDatabaseBundle.h:90
Aws::Lightsail::Model::RelationalDatabaseBundle::SetIsEncrypted
void SetIsEncrypted(bool value)
Definition: RelationalDatabaseBundle.h:245
Aws::Lightsail::Model::RelationalDatabaseBundle::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::RelationalDatabaseBundle::IsEncryptedHasBeenSet
bool IsEncryptedHasBeenSet() const
Definition: RelationalDatabaseBundle.h:240
Aws::Lightsail::Model::RelationalDatabaseBundle::SetName
void SetName(const Aws::String &value)
Definition: RelationalDatabaseBundle.h:95
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::RelationalDatabaseBundle::SetTransferPerMonthInGb
void SetTransferPerMonthInGb(int value)
Definition: RelationalDatabaseBundle.h:203
Aws::Lightsail::Model::RelationalDatabaseBundle::SetDiskSizeInGb
void SetDiskSizeInGb(int value)
Definition: RelationalDatabaseBundle.h:182
Aws::Lightsail::Model::RelationalDatabaseBundle::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: RelationalDatabaseBundle.h:54
Aws::Lightsail::Model::RelationalDatabaseBundle::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: RelationalDatabaseBundle.h:59