AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Bundle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/AppCategory.h>
11#include <aws/lightsail/model/InstancePlatform.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
31class Bundle {
32 public:
33 AWS_LIGHTSAIL_API Bundle() = default;
34 AWS_LIGHTSAIL_API Bundle(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LIGHTSAIL_API Bundle& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline double GetPrice() const { return m_price; }
43 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
44 inline void SetPrice(double value) {
45 m_priceHasBeenSet = true;
46 m_price = value;
47 }
48 inline Bundle& WithPrice(double value) {
49 SetPrice(value);
50 return *this;
51 }
53
55
58 inline int GetCpuCount() const { return m_cpuCount; }
59 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
60 inline void SetCpuCount(int value) {
61 m_cpuCountHasBeenSet = true;
62 m_cpuCount = value;
63 }
64 inline Bundle& WithCpuCount(int value) {
65 SetCpuCount(value);
66 return *this;
67 }
69
71
74 inline int GetDiskSizeInGb() const { return m_diskSizeInGb; }
75 inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
76 inline void SetDiskSizeInGb(int value) {
77 m_diskSizeInGbHasBeenSet = true;
78 m_diskSizeInGb = value;
79 }
80 inline Bundle& WithDiskSizeInGb(int value) {
81 SetDiskSizeInGb(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetBundleId() const { return m_bundleId; }
91 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
92 template <typename BundleIdT = Aws::String>
93 void SetBundleId(BundleIdT&& value) {
94 m_bundleIdHasBeenSet = true;
95 m_bundleId = std::forward<BundleIdT>(value);
96 }
97 template <typename BundleIdT = Aws::String>
98 Bundle& WithBundleId(BundleIdT&& value) {
99 SetBundleId(std::forward<BundleIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
109 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
110 template <typename InstanceTypeT = Aws::String>
111 void SetInstanceType(InstanceTypeT&& value) {
112 m_instanceTypeHasBeenSet = true;
113 m_instanceType = std::forward<InstanceTypeT>(value);
114 }
115 template <typename InstanceTypeT = Aws::String>
116 Bundle& WithInstanceType(InstanceTypeT&& value) {
117 SetInstanceType(std::forward<InstanceTypeT>(value));
118 return *this;
119 }
121
123
126 inline bool GetIsActive() const { return m_isActive; }
127 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
128 inline void SetIsActive(bool value) {
129 m_isActiveHasBeenSet = true;
130 m_isActive = value;
131 }
132 inline Bundle& WithIsActive(bool value) {
133 SetIsActive(value);
134 return *this;
135 }
137
139
142 inline const Aws::String& GetName() const { return m_name; }
143 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
144 template <typename NameT = Aws::String>
145 void SetName(NameT&& value) {
146 m_nameHasBeenSet = true;
147 m_name = std::forward<NameT>(value);
148 }
149 template <typename NameT = Aws::String>
150 Bundle& WithName(NameT&& value) {
151 SetName(std::forward<NameT>(value));
152 return *this;
153 }
155
157
164 inline int GetPower() const { return m_power; }
165 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
166 inline void SetPower(int value) {
167 m_powerHasBeenSet = true;
168 m_power = value;
169 }
170 inline Bundle& WithPower(int value) {
171 SetPower(value);
172 return *this;
173 }
175
177
180 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
181 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
182 inline void SetRamSizeInGb(double value) {
183 m_ramSizeInGbHasBeenSet = true;
184 m_ramSizeInGb = value;
185 }
186 inline Bundle& WithRamSizeInGb(double value) {
187 SetRamSizeInGb(value);
188 return *this;
189 }
191
193
196 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
197 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
198 inline void SetTransferPerMonthInGb(int value) {
199 m_transferPerMonthInGbHasBeenSet = true;
200 m_transferPerMonthInGb = value;
201 }
202 inline Bundle& WithTransferPerMonthInGb(int value) {
204 return *this;
205 }
207
209
215 inline const Aws::Vector<InstancePlatform>& GetSupportedPlatforms() const { return m_supportedPlatforms; }
216 inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
217 template <typename SupportedPlatformsT = Aws::Vector<InstancePlatform>>
218 void SetSupportedPlatforms(SupportedPlatformsT&& value) {
219 m_supportedPlatformsHasBeenSet = true;
220 m_supportedPlatforms = std::forward<SupportedPlatformsT>(value);
221 }
222 template <typename SupportedPlatformsT = Aws::Vector<InstancePlatform>>
223 Bundle& WithSupportedPlatforms(SupportedPlatformsT&& value) {
224 SetSupportedPlatforms(std::forward<SupportedPlatformsT>(value));
225 return *this;
226 }
228 m_supportedPlatformsHasBeenSet = true;
229 m_supportedPlatforms.push_back(value);
230 return *this;
231 }
233
235
240 inline const Aws::Vector<AppCategory>& GetSupportedAppCategories() const { return m_supportedAppCategories; }
241 inline bool SupportedAppCategoriesHasBeenSet() const { return m_supportedAppCategoriesHasBeenSet; }
242 template <typename SupportedAppCategoriesT = Aws::Vector<AppCategory>>
243 void SetSupportedAppCategories(SupportedAppCategoriesT&& value) {
244 m_supportedAppCategoriesHasBeenSet = true;
245 m_supportedAppCategories = std::forward<SupportedAppCategoriesT>(value);
246 }
247 template <typename SupportedAppCategoriesT = Aws::Vector<AppCategory>>
248 Bundle& WithSupportedAppCategories(SupportedAppCategoriesT&& value) {
249 SetSupportedAppCategories(std::forward<SupportedAppCategoriesT>(value));
250 return *this;
251 }
253 m_supportedAppCategoriesHasBeenSet = true;
254 m_supportedAppCategories.push_back(value);
255 return *this;
256 }
258
260
264 inline int GetPublicIpv4AddressCount() const { return m_publicIpv4AddressCount; }
265 inline bool PublicIpv4AddressCountHasBeenSet() const { return m_publicIpv4AddressCountHasBeenSet; }
266 inline void SetPublicIpv4AddressCount(int value) {
267 m_publicIpv4AddressCountHasBeenSet = true;
268 m_publicIpv4AddressCount = value;
269 }
272 return *this;
273 }
275 private:
276 double m_price{0.0};
277
278 int m_cpuCount{0};
279
280 int m_diskSizeInGb{0};
281
282 Aws::String m_bundleId;
283
284 Aws::String m_instanceType;
285
286 bool m_isActive{false};
287
288 Aws::String m_name;
289
290 int m_power{0};
291
292 double m_ramSizeInGb{0.0};
293
294 int m_transferPerMonthInGb{0};
295
296 Aws::Vector<InstancePlatform> m_supportedPlatforms;
297
298 Aws::Vector<AppCategory> m_supportedAppCategories;
299
300 int m_publicIpv4AddressCount{0};
301 bool m_priceHasBeenSet = false;
302 bool m_cpuCountHasBeenSet = false;
303 bool m_diskSizeInGbHasBeenSet = false;
304 bool m_bundleIdHasBeenSet = false;
305 bool m_instanceTypeHasBeenSet = false;
306 bool m_isActiveHasBeenSet = false;
307 bool m_nameHasBeenSet = false;
308 bool m_powerHasBeenSet = false;
309 bool m_ramSizeInGbHasBeenSet = false;
310 bool m_transferPerMonthInGbHasBeenSet = false;
311 bool m_supportedPlatformsHasBeenSet = false;
312 bool m_supportedAppCategoriesHasBeenSet = false;
313 bool m_publicIpv4AddressCountHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace Lightsail
318} // namespace Aws
Bundle & AddSupportedPlatforms(InstancePlatform value)
Definition Bundle.h:227
void SetPower(int value)
Definition Bundle.h:166
Bundle & WithPrice(double value)
Definition Bundle.h:48
double GetPrice() const
Definition Bundle.h:42
const Aws::Vector< InstancePlatform > & GetSupportedPlatforms() const
Definition Bundle.h:215
bool NameHasBeenSet() const
Definition Bundle.h:143
void SetTransferPerMonthInGb(int value)
Definition Bundle.h:198
Bundle & WithSupportedAppCategories(SupportedAppCategoriesT &&value)
Definition Bundle.h:248
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API Bundle & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PublicIpv4AddressCountHasBeenSet() const
Definition Bundle.h:265
Bundle & WithBundleId(BundleIdT &&value)
Definition Bundle.h:98
void SetRamSizeInGb(double value)
Definition Bundle.h:182
void SetDiskSizeInGb(int value)
Definition Bundle.h:76
Bundle & WithName(NameT &&value)
Definition Bundle.h:150
void SetCpuCount(int value)
Definition Bundle.h:60
void SetSupportedPlatforms(SupportedPlatformsT &&value)
Definition Bundle.h:218
int GetPublicIpv4AddressCount() const
Definition Bundle.h:264
bool DiskSizeInGbHasBeenSet() const
Definition Bundle.h:75
AWS_LIGHTSAIL_API Bundle(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Bundle.h:142
Bundle & WithSupportedPlatforms(SupportedPlatformsT &&value)
Definition Bundle.h:223
AWS_LIGHTSAIL_API Bundle()=default
int GetDiskSizeInGb() const
Definition Bundle.h:74
const Aws::Vector< AppCategory > & GetSupportedAppCategories() const
Definition Bundle.h:240
bool RamSizeInGbHasBeenSet() const
Definition Bundle.h:181
double GetRamSizeInGb() const
Definition Bundle.h:180
Bundle & WithIsActive(bool value)
Definition Bundle.h:132
bool IsActiveHasBeenSet() const
Definition Bundle.h:127
void SetPublicIpv4AddressCount(int value)
Definition Bundle.h:266
bool TransferPerMonthInGbHasBeenSet() const
Definition Bundle.h:197
bool CpuCountHasBeenSet() const
Definition Bundle.h:59
bool InstanceTypeHasBeenSet() const
Definition Bundle.h:109
const Aws::String & GetInstanceType() const
Definition Bundle.h:108
Bundle & WithCpuCount(int value)
Definition Bundle.h:64
bool PowerHasBeenSet() const
Definition Bundle.h:165
Bundle & WithPublicIpv4AddressCount(int value)
Definition Bundle.h:270
bool SupportedAppCategoriesHasBeenSet() const
Definition Bundle.h:241
Bundle & WithRamSizeInGb(double value)
Definition Bundle.h:186
Bundle & AddSupportedAppCategories(AppCategory value)
Definition Bundle.h:252
Bundle & WithPower(int value)
Definition Bundle.h:170
void SetSupportedAppCategories(SupportedAppCategoriesT &&value)
Definition Bundle.h:243
int GetTransferPerMonthInGb() const
Definition Bundle.h:196
bool SupportedPlatformsHasBeenSet() const
Definition Bundle.h:216
void SetInstanceType(InstanceTypeT &&value)
Definition Bundle.h:111
void SetPrice(double value)
Definition Bundle.h:44
Bundle & WithDiskSizeInGb(int value)
Definition Bundle.h:80
void SetIsActive(bool value)
Definition Bundle.h:128
void SetBundleId(BundleIdT &&value)
Definition Bundle.h:93
void SetName(NameT &&value)
Definition Bundle.h:145
bool PriceHasBeenSet() const
Definition Bundle.h:43
const Aws::String & GetBundleId() const
Definition Bundle.h:90
bool BundleIdHasBeenSet() const
Definition Bundle.h:91
Bundle & WithTransferPerMonthInGb(int value)
Definition Bundle.h:202
Bundle & WithInstanceType(InstanceTypeT &&value)
Definition Bundle.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue