AWS SDK for C++  1.9.16
AWS SDK for C++
Bundle.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
35  {
36  public:
37  Bundle();
41 
42 
46  inline double GetPrice() const{ return m_price; }
47 
51  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
52 
56  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
57 
61  inline Bundle& WithPrice(double value) { SetPrice(value); return *this;}
62 
63 
67  inline int GetCpuCount() const{ return m_cpuCount; }
68 
72  inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
73 
77  inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
78 
82  inline Bundle& WithCpuCount(int value) { SetCpuCount(value); return *this;}
83 
84 
88  inline int GetDiskSizeInGb() const{ return m_diskSizeInGb; }
89 
93  inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
94 
98  inline void SetDiskSizeInGb(int value) { m_diskSizeInGbHasBeenSet = true; m_diskSizeInGb = value; }
99 
103  inline Bundle& WithDiskSizeInGb(int value) { SetDiskSizeInGb(value); return *this;}
104 
105 
109  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
110 
114  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
115 
119  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
120 
124  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
125 
129  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
130 
134  inline Bundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
135 
139  inline Bundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
140 
144  inline Bundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
145 
146 
150  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
151 
155  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
156 
160  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
161 
165  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
166 
170  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
171 
175  inline Bundle& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
176 
180  inline Bundle& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
181 
185  inline Bundle& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
186 
187 
191  inline bool GetIsActive() const{ return m_isActive; }
192 
196  inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
197 
201  inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
202 
206  inline Bundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
207 
208 
212  inline const Aws::String& GetName() const{ return m_name; }
213 
217  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
218 
222  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
223 
227  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
228 
232  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
233 
237  inline Bundle& WithName(const Aws::String& value) { SetName(value); return *this;}
238 
242  inline Bundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
243 
247  inline Bundle& WithName(const char* value) { SetName(value); return *this;}
248 
249 
257  inline int GetPower() const{ return m_power; }
258 
266  inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
267 
275  inline void SetPower(int value) { m_powerHasBeenSet = true; m_power = value; }
276 
284  inline Bundle& WithPower(int value) { SetPower(value); return *this;}
285 
286 
290  inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
291 
295  inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
296 
300  inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
301 
305  inline Bundle& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
306 
307 
311  inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
312 
316  inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
317 
321  inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
322 
326  inline Bundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
327 
328 
335  inline const Aws::Vector<InstancePlatform>& GetSupportedPlatforms() const{ return m_supportedPlatforms; }
336 
343  inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
344 
351  inline void SetSupportedPlatforms(const Aws::Vector<InstancePlatform>& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = value; }
352 
359  inline void SetSupportedPlatforms(Aws::Vector<InstancePlatform>&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = std::move(value); }
360 
367  inline Bundle& WithSupportedPlatforms(const Aws::Vector<InstancePlatform>& value) { SetSupportedPlatforms(value); return *this;}
368 
375  inline Bundle& WithSupportedPlatforms(Aws::Vector<InstancePlatform>&& value) { SetSupportedPlatforms(std::move(value)); return *this;}
376 
383  inline Bundle& AddSupportedPlatforms(const InstancePlatform& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(value); return *this; }
384 
391  inline Bundle& AddSupportedPlatforms(InstancePlatform&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(std::move(value)); return *this; }
392 
393  private:
394 
395  double m_price;
396  bool m_priceHasBeenSet;
397 
398  int m_cpuCount;
399  bool m_cpuCountHasBeenSet;
400 
401  int m_diskSizeInGb;
402  bool m_diskSizeInGbHasBeenSet;
403 
404  Aws::String m_bundleId;
405  bool m_bundleIdHasBeenSet;
406 
407  Aws::String m_instanceType;
408  bool m_instanceTypeHasBeenSet;
409 
410  bool m_isActive;
411  bool m_isActiveHasBeenSet;
412 
413  Aws::String m_name;
414  bool m_nameHasBeenSet;
415 
416  int m_power;
417  bool m_powerHasBeenSet;
418 
419  double m_ramSizeInGb;
420  bool m_ramSizeInGbHasBeenSet;
421 
422  int m_transferPerMonthInGb;
423  bool m_transferPerMonthInGbHasBeenSet;
424 
425  Aws::Vector<InstancePlatform> m_supportedPlatforms;
426  bool m_supportedPlatformsHasBeenSet;
427  };
428 
429 } // namespace Model
430 } // namespace Lightsail
431 } // namespace Aws
Aws::Lightsail::Model::Bundle::PowerHasBeenSet
bool PowerHasBeenSet() const
Definition: Bundle.h:266
Aws::Lightsail::Model::Bundle::GetBundleId
const Aws::String & GetBundleId() const
Definition: Bundle.h:109
Aws::Lightsail::Model::Bundle::WithInstanceType
Bundle & WithInstanceType(const char *value)
Definition: Bundle.h:185
Aws::Lightsail::Model::InstancePlatform
InstancePlatform
Definition: InstancePlatform.h:17
Aws::Lightsail::Model::Bundle::GetSupportedPlatforms
const Aws::Vector< InstancePlatform > & GetSupportedPlatforms() const
Definition: Bundle.h:335
Aws::Lightsail::Model::Bundle::WithInstanceType
Bundle & WithInstanceType(const Aws::String &value)
Definition: Bundle.h:175
Aws::Lightsail::Model::Bundle::GetPrice
double GetPrice() const
Definition: Bundle.h:46
Aws::Lightsail::Model::Bundle::SetBundleId
void SetBundleId(const char *value)
Definition: Bundle.h:129
Aws::Lightsail::Model::Bundle::WithSupportedPlatforms
Bundle & WithSupportedPlatforms(const Aws::Vector< InstancePlatform > &value)
Definition: Bundle.h:367
Aws::Lightsail::Model::Bundle::AddSupportedPlatforms
Bundle & AddSupportedPlatforms(const InstancePlatform &value)
Definition: Bundle.h:383
Aws::Lightsail::Model::Bundle::GetCpuCount
int GetCpuCount() const
Definition: Bundle.h:67
Aws::Lightsail::Model::Bundle::CpuCountHasBeenSet
bool CpuCountHasBeenSet() const
Definition: Bundle.h:72
Aws::Lightsail::Model::Bundle::SetSupportedPlatforms
void SetSupportedPlatforms(const Aws::Vector< InstancePlatform > &value)
Definition: Bundle.h:351
Aws::Lightsail::Model::Bundle::WithPrice
Bundle & WithPrice(double value)
Definition: Bundle.h:61
Aws::Lightsail::Model::Bundle::GetRamSizeInGb
double GetRamSizeInGb() const
Definition: Bundle.h:290
Aws::Lightsail::Model::Bundle::IsActiveHasBeenSet
bool IsActiveHasBeenSet() const
Definition: Bundle.h:196
Aws::Lightsail::Model::Bundle::SetPower
void SetPower(int value)
Definition: Bundle.h:275
Aws::Lightsail::Model::Bundle::WithName
Bundle & WithName(Aws::String &&value)
Definition: Bundle.h:242
Aws::Lightsail::Model::Bundle::SetCpuCount
void SetCpuCount(int value)
Definition: Bundle.h:77
Aws::Lightsail::Model::Bundle::SetDiskSizeInGb
void SetDiskSizeInGb(int value)
Definition: Bundle.h:98
Aws::Lightsail::Model::Bundle::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: Bundle.h:114
Aws::Lightsail::Model::Bundle::DiskSizeInGbHasBeenSet
bool DiskSizeInGbHasBeenSet() const
Definition: Bundle.h:93
Aws::Lightsail::Model::Bundle::SetRamSizeInGb
void SetRamSizeInGb(double value)
Definition: Bundle.h:300
Aws::Lightsail::Model::Bundle::WithRamSizeInGb
Bundle & WithRamSizeInGb(double value)
Definition: Bundle.h:305
Aws::Lightsail::Model::Bundle::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: Bundle.h:150
Aws::Lightsail::Model::Bundle::SetTransferPerMonthInGb
void SetTransferPerMonthInGb(int value)
Definition: Bundle.h:321
Aws::Lightsail::Model::Bundle::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: Bundle.h:165
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::Bundle::WithBundleId
Bundle & WithBundleId(Aws::String &&value)
Definition: Bundle.h:139
AWSVector.h
Aws::Lightsail::Model::Bundle::GetPower
int GetPower() const
Definition: Bundle.h:257
Aws::Lightsail::Model::Bundle::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: Bundle.h:51
Aws::Lightsail::Model::Bundle::SetPrice
void SetPrice(double value)
Definition: Bundle.h:56
InstancePlatform.h
Aws::Lightsail::Model::Bundle::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: Bundle.h:155
Aws::Lightsail::Model::Bundle::Bundle
Bundle(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Bundle::WithIsActive
Bundle & WithIsActive(bool value)
Definition: Bundle.h:206
Aws::Lightsail::Model::Bundle::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Bundle::WithName
Bundle & WithName(const Aws::String &value)
Definition: Bundle.h:237
Aws::Lightsail::Model::Bundle::AddSupportedPlatforms
Bundle & AddSupportedPlatforms(InstancePlatform &&value)
Definition: Bundle.h:391
Aws::Lightsail::Model::Bundle::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: Bundle.h:119
Aws::Lightsail::Model::Bundle::WithSupportedPlatforms
Bundle & WithSupportedPlatforms(Aws::Vector< InstancePlatform > &&value)
Definition: Bundle.h:375
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Lightsail::Model::Bundle::WithName
Bundle & WithName(const char *value)
Definition: Bundle.h:247
Aws::Lightsail::Model::Bundle::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: Bundle.h:124
Aws::Lightsail::Model::Bundle::SetName
void SetName(Aws::String &&value)
Definition: Bundle.h:227
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::Bundle::WithBundleId
Bundle & WithBundleId(const char *value)
Definition: Bundle.h:144
Aws::Lightsail::Model::Bundle::operator=
Bundle & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Bundle::WithPower
Bundle & WithPower(int value)
Definition: Bundle.h:284
Aws::Lightsail::Model::Bundle::GetIsActive
bool GetIsActive() const
Definition: Bundle.h:191
Aws::Lightsail::Model::Bundle::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: Bundle.h:160
Aws::Lightsail::Model::Bundle::SupportedPlatformsHasBeenSet
bool SupportedPlatformsHasBeenSet() const
Definition: Bundle.h:343
Aws::Lightsail::Model::Bundle::SetInstanceType
void SetInstanceType(const char *value)
Definition: Bundle.h:170
Aws::Lightsail::Model::Bundle::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Bundle.h:217
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Bundle::WithInstanceType
Bundle & WithInstanceType(Aws::String &&value)
Definition: Bundle.h:180
Aws::Lightsail::Model::Bundle::SetSupportedPlatforms
void SetSupportedPlatforms(Aws::Vector< InstancePlatform > &&value)
Definition: Bundle.h:359
Aws::Lightsail::Model::Bundle
Definition: Bundle.h:35
Aws::Lightsail::Model::Bundle::RamSizeInGbHasBeenSet
bool RamSizeInGbHasBeenSet() const
Definition: Bundle.h:295
Aws::Lightsail::Model::Bundle::SetName
void SetName(const Aws::String &value)
Definition: Bundle.h:222
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Bundle::Bundle
Bundle()
Aws::Lightsail::Model::Bundle::WithCpuCount
Bundle & WithCpuCount(int value)
Definition: Bundle.h:82
Aws::Lightsail::Model::Bundle::GetDiskSizeInGb
int GetDiskSizeInGb() const
Definition: Bundle.h:88
Aws::Lightsail::Model::Bundle::WithBundleId
Bundle & WithBundleId(const Aws::String &value)
Definition: Bundle.h:134
Aws::Lightsail::Model::Bundle::TransferPerMonthInGbHasBeenSet
bool TransferPerMonthInGbHasBeenSet() const
Definition: Bundle.h:316
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Bundle::GetTransferPerMonthInGb
int GetTransferPerMonthInGb() const
Definition: Bundle.h:311
Aws::Lightsail::Model::Bundle::GetName
const Aws::String & GetName() const
Definition: Bundle.h:212
Aws::Lightsail::Model::Bundle::WithTransferPerMonthInGb
Bundle & WithTransferPerMonthInGb(int value)
Definition: Bundle.h:326
Aws::Lightsail::Model::Bundle::SetName
void SetName(const char *value)
Definition: Bundle.h:232
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Bundle::WithDiskSizeInGb
Bundle & WithDiskSizeInGb(int value)
Definition: Bundle.h:103
Aws::Lightsail::Model::Bundle::SetIsActive
void SetIsActive(bool value)
Definition: Bundle.h:201