AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerServicePower.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_LIGHTSAIL_API ContainerServicePower();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPowerId() const{ return m_powerId; }
47 inline bool PowerIdHasBeenSet() const { return m_powerIdHasBeenSet; }
48 inline void SetPowerId(const Aws::String& value) { m_powerIdHasBeenSet = true; m_powerId = value; }
49 inline void SetPowerId(Aws::String&& value) { m_powerIdHasBeenSet = true; m_powerId = std::move(value); }
50 inline void SetPowerId(const char* value) { m_powerIdHasBeenSet = true; m_powerId.assign(value); }
51 inline ContainerServicePower& WithPowerId(const Aws::String& value) { SetPowerId(value); return *this;}
52 inline ContainerServicePower& WithPowerId(Aws::String&& value) { SetPowerId(std::move(value)); return *this;}
53 inline ContainerServicePower& WithPowerId(const char* value) { SetPowerId(value); return *this;}
55
57
60 inline double GetPrice() const{ return m_price; }
61 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
62 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
63 inline ContainerServicePower& WithPrice(double value) { SetPrice(value); return *this;}
65
67
70 inline double GetCpuCount() const{ return m_cpuCount; }
71 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
72 inline void SetCpuCount(double value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
73 inline ContainerServicePower& WithCpuCount(double value) { SetCpuCount(value); return *this;}
75
77
80 inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
81 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
82 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
83 inline ContainerServicePower& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
85
87
90 inline const Aws::String& GetName() const{ return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
94 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
95 inline ContainerServicePower& WithName(const Aws::String& value) { SetName(value); return *this;}
96 inline ContainerServicePower& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
97 inline ContainerServicePower& WithName(const char* value) { SetName(value); return *this;}
99
101
105 inline bool GetIsActive() const{ return m_isActive; }
106 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
107 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
108 inline ContainerServicePower& WithIsActive(bool value) { SetIsActive(value); return *this;}
110 private:
111
112 Aws::String m_powerId;
113 bool m_powerIdHasBeenSet = false;
114
115 double m_price;
116 bool m_priceHasBeenSet = false;
117
118 double m_cpuCount;
119 bool m_cpuCountHasBeenSet = false;
120
121 double m_ramSizeInGb;
122 bool m_ramSizeInGbHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 bool m_isActive;
128 bool m_isActiveHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Lightsail
133} // namespace Aws
ContainerServicePower & WithPowerId(Aws::String &&value)
ContainerServicePower & WithPowerId(const Aws::String &value)
ContainerServicePower & WithName(const Aws::String &value)
ContainerServicePower & WithPowerId(const char *value)
ContainerServicePower & WithIsActive(bool value)
ContainerServicePower & WithRamSizeInGb(double value)
AWS_LIGHTSAIL_API ContainerServicePower & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServicePower & WithName(const char *value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServicePower & WithName(Aws::String &&value)
ContainerServicePower & WithCpuCount(double value)
AWS_LIGHTSAIL_API ContainerServicePower(Aws::Utils::Json::JsonView jsonValue)
ContainerServicePower & WithPrice(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue