AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RelationalDatabaseBundle.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LIGHTSAIL_API RelationalDatabaseBundle() = default;
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBundleId() const { return m_bundleId; }
46 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
47 template<typename BundleIdT = Aws::String>
48 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
49 template<typename BundleIdT = Aws::String>
50 RelationalDatabaseBundle& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 RelationalDatabaseBundle& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline double GetPrice() const { return m_price; }
70 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
71 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
72 inline RelationalDatabaseBundle& WithPrice(double value) { SetPrice(value); return *this;}
74
76
80 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
81 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
82 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
83 inline RelationalDatabaseBundle& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
85
87
90 inline int GetDiskSizeInGb() const { return m_diskSizeInGb; }
91 inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
92 inline void SetDiskSizeInGb(int value) { m_diskSizeInGbHasBeenSet = true; m_diskSizeInGb = value; }
93 inline RelationalDatabaseBundle& WithDiskSizeInGb(int value) { SetDiskSizeInGb(value); return *this;}
95
97
100 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
101 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
102 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
105
107
110 inline int GetCpuCount() const { return m_cpuCount; }
111 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
112 inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
113 inline RelationalDatabaseBundle& WithCpuCount(int value) { SetCpuCount(value); return *this;}
115
117
120 inline bool GetIsEncrypted() const { return m_isEncrypted; }
121 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
122 inline void SetIsEncrypted(bool value) { m_isEncryptedHasBeenSet = true; m_isEncrypted = value; }
123 inline RelationalDatabaseBundle& WithIsEncrypted(bool value) { SetIsEncrypted(value); return *this;}
125
127
130 inline bool GetIsActive() const { return m_isActive; }
131 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
132 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
133 inline RelationalDatabaseBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
135 private:
136
137 Aws::String m_bundleId;
138 bool m_bundleIdHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 double m_price{0.0};
144 bool m_priceHasBeenSet = false;
145
146 double m_ramSizeInGb{0.0};
147 bool m_ramSizeInGbHasBeenSet = false;
148
149 int m_diskSizeInGb{0};
150 bool m_diskSizeInGbHasBeenSet = false;
151
152 int m_transferPerMonthInGb{0};
153 bool m_transferPerMonthInGbHasBeenSet = false;
154
155 int m_cpuCount{0};
156 bool m_cpuCountHasBeenSet = false;
157
158 bool m_isEncrypted{false};
159 bool m_isEncryptedHasBeenSet = false;
160
161 bool m_isActive{false};
162 bool m_isActiveHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Lightsail
167} // 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