AWS SDK for C++  1.9.15
AWS SDK for C++
ContainerServicePower.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetPowerId() const{ return m_powerId; }
46 
50  inline bool PowerIdHasBeenSet() const { return m_powerIdHasBeenSet; }
51 
55  inline void SetPowerId(const Aws::String& value) { m_powerIdHasBeenSet = true; m_powerId = value; }
56 
60  inline void SetPowerId(Aws::String&& value) { m_powerIdHasBeenSet = true; m_powerId = std::move(value); }
61 
65  inline void SetPowerId(const char* value) { m_powerIdHasBeenSet = true; m_powerId.assign(value); }
66 
70  inline ContainerServicePower& WithPowerId(const Aws::String& value) { SetPowerId(value); return *this;}
71 
75  inline ContainerServicePower& WithPowerId(Aws::String&& value) { SetPowerId(std::move(value)); return *this;}
76 
80  inline ContainerServicePower& WithPowerId(const char* value) { SetPowerId(value); return *this;}
81 
82 
86  inline double GetPrice() const{ return m_price; }
87 
91  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
92 
96  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
97 
101  inline ContainerServicePower& WithPrice(double value) { SetPrice(value); return *this;}
102 
103 
107  inline double GetCpuCount() const{ return m_cpuCount; }
108 
112  inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
113 
117  inline void SetCpuCount(double value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
118 
122  inline ContainerServicePower& WithCpuCount(double value) { SetCpuCount(value); return *this;}
123 
124 
128  inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
129 
133  inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
134 
138  inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
139 
143  inline ContainerServicePower& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
144 
145 
149  inline const Aws::String& GetName() const{ return m_name; }
150 
154  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
155 
159  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
160 
164  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
165 
169  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
170 
174  inline ContainerServicePower& WithName(const Aws::String& value) { SetName(value); return *this;}
175 
179  inline ContainerServicePower& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
180 
184  inline ContainerServicePower& WithName(const char* value) { SetName(value); return *this;}
185 
186 
191  inline bool GetIsActive() const{ return m_isActive; }
192 
197  inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
198 
203  inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
204 
209  inline ContainerServicePower& WithIsActive(bool value) { SetIsActive(value); return *this;}
210 
211  private:
212 
213  Aws::String m_powerId;
214  bool m_powerIdHasBeenSet;
215 
216  double m_price;
217  bool m_priceHasBeenSet;
218 
219  double m_cpuCount;
220  bool m_cpuCountHasBeenSet;
221 
222  double m_ramSizeInGb;
223  bool m_ramSizeInGbHasBeenSet;
224 
225  Aws::String m_name;
226  bool m_nameHasBeenSet;
227 
228  bool m_isActive;
229  bool m_isActiveHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace Lightsail
234 } // namespace Aws
Aws::Lightsail::Model::ContainerServicePower::SetName
void SetName(Aws::String &&value)
Definition: ContainerServicePower.h:164
Aws::Lightsail::Model::ContainerServicePower::WithName
ContainerServicePower & WithName(Aws::String &&value)
Definition: ContainerServicePower.h:179
Aws::Lightsail::Model::ContainerServicePower::SetPowerId
void SetPowerId(Aws::String &&value)
Definition: ContainerServicePower.h:60
Aws::Lightsail::Model::ContainerServicePower::IsActiveHasBeenSet
bool IsActiveHasBeenSet() const
Definition: ContainerServicePower.h:197
Aws::Lightsail::Model::ContainerServicePower::WithPowerId
ContainerServicePower & WithPowerId(Aws::String &&value)
Definition: ContainerServicePower.h:75
Aws::Lightsail::Model::ContainerServicePower::WithName
ContainerServicePower & WithName(const char *value)
Definition: ContainerServicePower.h:184
Aws::Lightsail::Model::ContainerServicePower::SetPowerId
void SetPowerId(const char *value)
Definition: ContainerServicePower.h:65
Aws::Lightsail::Model::ContainerServicePower::SetRamSizeInGb
void SetRamSizeInGb(double value)
Definition: ContainerServicePower.h:138
Aws::Lightsail::Model::ContainerServicePower::GetIsActive
bool GetIsActive() const
Definition: ContainerServicePower.h:191
Aws::Lightsail::Model::ContainerServicePower::GetPrice
double GetPrice() const
Definition: ContainerServicePower.h:86
Aws::Lightsail::Model::ContainerServicePower::WithIsActive
ContainerServicePower & WithIsActive(bool value)
Definition: ContainerServicePower.h:209
Aws::Lightsail::Model::ContainerServicePower::SetName
void SetName(const char *value)
Definition: ContainerServicePower.h:169
Aws::Lightsail::Model::ContainerServicePower::SetPrice
void SetPrice(double value)
Definition: ContainerServicePower.h:96
Aws::Lightsail::Model::ContainerServicePower::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ContainerServicePower.h:154
Aws::Lightsail::Model::ContainerServicePower::CpuCountHasBeenSet
bool CpuCountHasBeenSet() const
Definition: ContainerServicePower.h:112
Aws::Lightsail::Model::ContainerServicePower::SetCpuCount
void SetCpuCount(double value)
Definition: ContainerServicePower.h:117
Aws::Lightsail::Model::ContainerServicePower::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: ContainerServicePower.h:91
Aws::Lightsail::Model::ContainerServicePower::WithPowerId
ContainerServicePower & WithPowerId(const Aws::String &value)
Definition: ContainerServicePower.h:70
Aws::Lightsail::Model::ContainerServicePower::SetIsActive
void SetIsActive(bool value)
Definition: ContainerServicePower.h:203
Aws::Lightsail::Model::ContainerServicePower::PowerIdHasBeenSet
bool PowerIdHasBeenSet() const
Definition: ContainerServicePower.h:50
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::ContainerServicePower::ContainerServicePower
ContainerServicePower()
Aws::Lightsail::Model::ContainerServicePower::WithCpuCount
ContainerServicePower & WithCpuCount(double value)
Definition: ContainerServicePower.h:122
Aws::Lightsail::Model::ContainerServicePower
Definition: ContainerServicePower.h:34
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContainerServicePower::operator=
ContainerServicePower & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServicePower::WithPrice
ContainerServicePower & WithPrice(double value)
Definition: ContainerServicePower.h:101
Aws::Lightsail::Model::ContainerServicePower::WithRamSizeInGb
ContainerServicePower & WithRamSizeInGb(double value)
Definition: ContainerServicePower.h:143
Aws::Lightsail::Model::ContainerServicePower::SetPowerId
void SetPowerId(const Aws::String &value)
Definition: ContainerServicePower.h:55
Aws::Lightsail::Model::ContainerServicePower::GetCpuCount
double GetCpuCount() const
Definition: ContainerServicePower.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerServicePower::WithName
ContainerServicePower & WithName(const Aws::String &value)
Definition: ContainerServicePower.h:174
Aws::Lightsail::Model::ContainerServicePower::GetRamSizeInGb
double GetRamSizeInGb() const
Definition: ContainerServicePower.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServicePower::GetName
const Aws::String & GetName() const
Definition: ContainerServicePower.h:149
Aws::Lightsail::Model::ContainerServicePower::WithPowerId
ContainerServicePower & WithPowerId(const char *value)
Definition: ContainerServicePower.h:80
Aws::Lightsail::Model::ContainerServicePower::GetPowerId
const Aws::String & GetPowerId() const
Definition: ContainerServicePower.h:45
Aws::Lightsail::Model::ContainerServicePower::SetName
void SetName(const Aws::String &value)
Definition: ContainerServicePower.h:159
Aws::Lightsail::Model::ContainerServicePower::ContainerServicePower
ContainerServicePower(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServicePower::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServicePower::RamSizeInGbHasBeenSet
bool RamSizeInGbHasBeenSet() const
Definition: ContainerServicePower.h:133