AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
48 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
49 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
50 inline RelationalDatabaseBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
51 inline RelationalDatabaseBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
52 inline RelationalDatabaseBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline RelationalDatabaseBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline RelationalDatabaseBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline RelationalDatabaseBundle& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline double GetPrice() const{ return m_price; }
74 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
75 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
76 inline RelationalDatabaseBundle& WithPrice(double value) { SetPrice(value); return *this;}
78
80
84 inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
85 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
86 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
87 inline RelationalDatabaseBundle& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
89
91
94 inline int GetDiskSizeInGb() const{ return m_diskSizeInGb; }
95 inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
96 inline void SetDiskSizeInGb(int value) { m_diskSizeInGbHasBeenSet = true; m_diskSizeInGb = value; }
97 inline RelationalDatabaseBundle& WithDiskSizeInGb(int value) { SetDiskSizeInGb(value); return *this;}
99
101
104 inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
105 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
106 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
109
111
114 inline int GetCpuCount() const{ return m_cpuCount; }
115 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
116 inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
117 inline RelationalDatabaseBundle& WithCpuCount(int value) { SetCpuCount(value); return *this;}
119
121
124 inline bool GetIsEncrypted() const{ return m_isEncrypted; }
125 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
126 inline void SetIsEncrypted(bool value) { m_isEncryptedHasBeenSet = true; m_isEncrypted = value; }
127 inline RelationalDatabaseBundle& WithIsEncrypted(bool value) { SetIsEncrypted(value); return *this;}
129
131
134 inline bool GetIsActive() const{ return m_isActive; }
135 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
136 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
137 inline RelationalDatabaseBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
139 private:
140
141 Aws::String m_bundleId;
142 bool m_bundleIdHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 double m_price;
148 bool m_priceHasBeenSet = false;
149
150 double m_ramSizeInGb;
151 bool m_ramSizeInGbHasBeenSet = false;
152
153 int m_diskSizeInGb;
154 bool m_diskSizeInGbHasBeenSet = false;
155
156 int m_transferPerMonthInGb;
157 bool m_transferPerMonthInGbHasBeenSet = false;
158
159 int m_cpuCount;
160 bool m_cpuCountHasBeenSet = false;
161
162 bool m_isEncrypted;
163 bool m_isEncryptedHasBeenSet = false;
164
165 bool m_isActive;
166 bool m_isActiveHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace Lightsail
171} // namespace Aws
RelationalDatabaseBundle & WithName(const Aws::String &value)
RelationalDatabaseBundle & WithIsActive(bool value)
RelationalDatabaseBundle & WithBundleId(const char *value)
RelationalDatabaseBundle & WithIsEncrypted(bool value)
RelationalDatabaseBundle & WithPrice(double value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
RelationalDatabaseBundle & WithBundleId(Aws::String &&value)
RelationalDatabaseBundle & WithBundleId(const Aws::String &value)
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 & WithName(Aws::String &&value)
RelationalDatabaseBundle & WithTransferPerMonthInGb(int value)
RelationalDatabaseBundle & WithName(const char *value)
RelationalDatabaseBundle & WithCpuCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue