AWS SDK for C++  1.9.16
AWS SDK for C++
InstanceHardware.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline int GetCpuCount() const{ return m_cpuCount; }
45 
49  inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
50 
54  inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
55 
59  inline InstanceHardware& WithCpuCount(int value) { SetCpuCount(value); return *this;}
60 
61 
65  inline const Aws::Vector<Disk>& GetDisks() const{ return m_disks; }
66 
70  inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
71 
75  inline void SetDisks(const Aws::Vector<Disk>& value) { m_disksHasBeenSet = true; m_disks = value; }
76 
80  inline void SetDisks(Aws::Vector<Disk>&& value) { m_disksHasBeenSet = true; m_disks = std::move(value); }
81 
85  inline InstanceHardware& WithDisks(const Aws::Vector<Disk>& value) { SetDisks(value); return *this;}
86 
90  inline InstanceHardware& WithDisks(Aws::Vector<Disk>&& value) { SetDisks(std::move(value)); return *this;}
91 
95  inline InstanceHardware& AddDisks(const Disk& value) { m_disksHasBeenSet = true; m_disks.push_back(value); return *this; }
96 
100  inline InstanceHardware& AddDisks(Disk&& value) { m_disksHasBeenSet = true; m_disks.push_back(std::move(value)); return *this; }
101 
102 
106  inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
107 
111  inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
112 
116  inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
117 
121  inline InstanceHardware& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
122 
123  private:
124 
125  int m_cpuCount;
126  bool m_cpuCountHasBeenSet;
127 
128  Aws::Vector<Disk> m_disks;
129  bool m_disksHasBeenSet;
130 
131  double m_ramSizeInGb;
132  bool m_ramSizeInGbHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Lightsail
137 } // namespace Aws
Aws::Lightsail::Model::InstanceHardware::SetCpuCount
void SetCpuCount(int value)
Definition: InstanceHardware.h:54
Aws::Lightsail::Model::InstanceHardware
Definition: InstanceHardware.h:33
Aws::Lightsail::Model::InstanceHardware::SetRamSizeInGb
void SetRamSizeInGb(double value)
Definition: InstanceHardware.h:116
Aws::Lightsail::Model::InstanceHardware::WithDisks
InstanceHardware & WithDisks(Aws::Vector< Disk > &&value)
Definition: InstanceHardware.h:90
Aws::Lightsail::Model::InstanceHardware::DisksHasBeenSet
bool DisksHasBeenSet() const
Definition: InstanceHardware.h:70
Aws::Lightsail::Model::InstanceHardware::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::InstanceHardware::WithDisks
InstanceHardware & WithDisks(const Aws::Vector< Disk > &value)
Definition: InstanceHardware.h:85
Aws::Lightsail::Model::InstanceHardware::SetDisks
void SetDisks(const Aws::Vector< Disk > &value)
Definition: InstanceHardware.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Disk.h
Aws::Lightsail::Model::InstanceHardware::InstanceHardware
InstanceHardware()
AWSVector.h
Aws::Lightsail::Model::Disk
Definition: Disk.h:39
Aws::Lightsail::Model::InstanceHardware::RamSizeInGbHasBeenSet
bool RamSizeInGbHasBeenSet() const
Definition: InstanceHardware.h:111
Aws::Lightsail::Model::InstanceHardware::GetRamSizeInGb
double GetRamSizeInGb() const
Definition: InstanceHardware.h:106
Aws::Lightsail::Model::InstanceHardware::AddDisks
InstanceHardware & AddDisks(const Disk &value)
Definition: InstanceHardware.h:95
Aws::Lightsail::Model::InstanceHardware::operator=
InstanceHardware & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lightsail::Model::InstanceHardware::WithCpuCount
InstanceHardware & WithCpuCount(int value)
Definition: InstanceHardware.h:59
Aws::Lightsail::Model::InstanceHardware::WithRamSizeInGb
InstanceHardware & WithRamSizeInGb(double value)
Definition: InstanceHardware.h:121
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::InstanceHardware::SetDisks
void SetDisks(Aws::Vector< Disk > &&value)
Definition: InstanceHardware.h:80
Lightsail_EXPORTS.h
Aws::Lightsail::Model::InstanceHardware::GetDisks
const Aws::Vector< Disk > & GetDisks() const
Definition: InstanceHardware.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InstanceHardware::AddDisks
InstanceHardware & AddDisks(Disk &&value)
Definition: InstanceHardware.h:100
Aws::Lightsail::Model::InstanceHardware::GetCpuCount
int GetCpuCount() const
Definition: InstanceHardware.h:44
Aws::Lightsail::Model::InstanceHardware::CpuCountHasBeenSet
bool CpuCountHasBeenSet() const
Definition: InstanceHardware.h:49
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceHardware::InstanceHardware
InstanceHardware(Aws::Utils::Json::JsonView jsonValue)