AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceHardware.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/model/Disk.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LIGHTSAIL_API InstanceHardware();
36 AWS_LIGHTSAIL_API InstanceHardware(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetCpuCount() const{ return m_cpuCount; }
46 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
47 inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
48 inline InstanceHardware& WithCpuCount(int value) { SetCpuCount(value); return *this;}
50
52
55 inline const Aws::Vector<Disk>& GetDisks() const{ return m_disks; }
56 inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
57 inline void SetDisks(const Aws::Vector<Disk>& value) { m_disksHasBeenSet = true; m_disks = value; }
58 inline void SetDisks(Aws::Vector<Disk>&& value) { m_disksHasBeenSet = true; m_disks = std::move(value); }
59 inline InstanceHardware& WithDisks(const Aws::Vector<Disk>& value) { SetDisks(value); return *this;}
60 inline InstanceHardware& WithDisks(Aws::Vector<Disk>&& value) { SetDisks(std::move(value)); return *this;}
61 inline InstanceHardware& AddDisks(const Disk& value) { m_disksHasBeenSet = true; m_disks.push_back(value); return *this; }
62 inline InstanceHardware& AddDisks(Disk&& value) { m_disksHasBeenSet = true; m_disks.push_back(std::move(value)); return *this; }
64
66
69 inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
70 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
71 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
72 inline InstanceHardware& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
74 private:
75
76 int m_cpuCount;
77 bool m_cpuCountHasBeenSet = false;
78
79 Aws::Vector<Disk> m_disks;
80 bool m_disksHasBeenSet = false;
81
82 double m_ramSizeInGb;
83 bool m_ramSizeInGbHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Lightsail
88} // namespace Aws
void SetDisks(Aws::Vector< Disk > &&value)
AWS_LIGHTSAIL_API InstanceHardware & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceHardware & WithRamSizeInGb(double value)
AWS_LIGHTSAIL_API InstanceHardware(Aws::Utils::Json::JsonView jsonValue)
InstanceHardware & AddDisks(Disk &&value)
InstanceHardware & WithCpuCount(int value)
InstanceHardware & AddDisks(const Disk &value)
const Aws::Vector< Disk > & GetDisks() const
void SetDisks(const Aws::Vector< Disk > &value)
InstanceHardware & WithDisks(Aws::Vector< Disk > &&value)
InstanceHardware & WithDisks(const Aws::Vector< Disk > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue