AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
ContainerServicePower.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
30 public:
31 AWS_LIGHTSAIL_API ContainerServicePower() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPowerId() const { return m_powerId; }
41 inline bool PowerIdHasBeenSet() const { return m_powerIdHasBeenSet; }
42 template <typename PowerIdT = Aws::String>
43 void SetPowerId(PowerIdT&& value) {
44 m_powerIdHasBeenSet = true;
45 m_powerId = std::forward<PowerIdT>(value);
46 }
47 template <typename PowerIdT = Aws::String>
49 SetPowerId(std::forward<PowerIdT>(value));
50 return *this;
51 }
53
55
58 inline double GetPrice() const { return m_price; }
59 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
60 inline void SetPrice(double value) {
61 m_priceHasBeenSet = true;
62 m_price = value;
63 }
64 inline ContainerServicePower& WithPrice(double value) {
65 SetPrice(value);
66 return *this;
67 }
69
71
74 inline double GetCpuCount() const { return m_cpuCount; }
75 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
76 inline void SetCpuCount(double value) {
77 m_cpuCountHasBeenSet = true;
78 m_cpuCount = value;
79 }
80 inline ContainerServicePower& WithCpuCount(double value) {
81 SetCpuCount(value);
82 return *this;
83 }
85
87
90 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
91 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
92 inline void SetRamSizeInGb(double value) {
93 m_ramSizeInGbHasBeenSet = true;
94 m_ramSizeInGb = value;
95 }
96 inline ContainerServicePower& WithRamSizeInGb(double value) {
97 SetRamSizeInGb(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template <typename NameT = Aws::String>
109 void SetName(NameT&& value) {
110 m_nameHasBeenSet = true;
111 m_name = std::forward<NameT>(value);
112 }
113 template <typename NameT = Aws::String>
115 SetName(std::forward<NameT>(value));
116 return *this;
117 }
119
121
125 inline bool GetIsActive() const { return m_isActive; }
126 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
127 inline void SetIsActive(bool value) {
128 m_isActiveHasBeenSet = true;
129 m_isActive = value;
130 }
132 SetIsActive(value);
133 return *this;
134 }
136 private:
137 Aws::String m_powerId;
138 bool m_powerIdHasBeenSet = false;
139
140 double m_price{0.0};
141 bool m_priceHasBeenSet = false;
142
143 double m_cpuCount{0.0};
144 bool m_cpuCountHasBeenSet = false;
145
146 double m_ramSizeInGb{0.0};
147 bool m_ramSizeInGbHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 bool m_isActive{false};
153 bool m_isActiveHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Lightsail
158} // namespace Aws
ContainerServicePower & WithPowerId(PowerIdT &&value)
ContainerServicePower & WithName(NameT &&value)
ContainerServicePower & WithIsActive(bool value)
ContainerServicePower & WithRamSizeInGb(double value)
AWS_LIGHTSAIL_API ContainerServicePower & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServicePower & WithCpuCount(double value)
AWS_LIGHTSAIL_API ContainerServicePower()=default
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