AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RelationalDatabaseHardware.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Lightsail {
17namespace Model {
18
25 public:
26 AWS_LIGHTSAIL_API RelationalDatabaseHardware() = default;
29 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetCpuCount() const { return m_cpuCount; }
36 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
37 inline void SetCpuCount(int value) {
38 m_cpuCountHasBeenSet = true;
39 m_cpuCount = value;
40 }
42 SetCpuCount(value);
43 return *this;
44 }
46
48
51 inline int GetDiskSizeInGb() const { return m_diskSizeInGb; }
52 inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
53 inline void SetDiskSizeInGb(int value) {
54 m_diskSizeInGbHasBeenSet = true;
55 m_diskSizeInGb = value;
56 }
58 SetDiskSizeInGb(value);
59 return *this;
60 }
62
64
67 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
68 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
69 inline void SetRamSizeInGb(double value) {
70 m_ramSizeInGbHasBeenSet = true;
71 m_ramSizeInGb = value;
72 }
74 SetRamSizeInGb(value);
75 return *this;
76 }
78 private:
79 int m_cpuCount{0};
80
81 int m_diskSizeInGb{0};
82
83 double m_ramSizeInGb{0.0};
84 bool m_cpuCountHasBeenSet = false;
85 bool m_diskSizeInGbHasBeenSet = false;
86 bool m_ramSizeInGbHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Lightsail
91} // namespace Aws
RelationalDatabaseHardware & WithDiskSizeInGb(int value)
RelationalDatabaseHardware & WithCpuCount(int value)
AWS_LIGHTSAIL_API RelationalDatabaseHardware()=default
AWS_LIGHTSAIL_API RelationalDatabaseHardware & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
RelationalDatabaseHardware & WithRamSizeInGb(double value)
AWS_LIGHTSAIL_API RelationalDatabaseHardware(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue