AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PowerIdT = Aws::String>
49 void SetPowerId(PowerIdT&& value) { m_powerIdHasBeenSet = true; m_powerId = std::forward<PowerIdT>(value); }
50 template<typename PowerIdT = Aws::String>
51 ContainerServicePower& WithPowerId(PowerIdT&& value) { SetPowerId(std::forward<PowerIdT>(value)); return *this;}
53
55
58 inline double GetPrice() const { return m_price; }
59 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
60 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
61 inline ContainerServicePower& WithPrice(double value) { SetPrice(value); return *this;}
63
65
68 inline double GetCpuCount() const { return m_cpuCount; }
69 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
70 inline void SetCpuCount(double value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
71 inline ContainerServicePower& WithCpuCount(double value) { SetCpuCount(value); return *this;}
73
75
78 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
79 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
80 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
81 inline ContainerServicePower& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
83
85
88 inline const Aws::String& GetName() const { return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 template<typename NameT = Aws::String>
91 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
92 template<typename NameT = Aws::String>
93 ContainerServicePower& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
95
97
101 inline bool GetIsActive() const { return m_isActive; }
102 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
103 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
104 inline ContainerServicePower& WithIsActive(bool value) { SetIsActive(value); return *this;}
106 private:
107
108 Aws::String m_powerId;
109 bool m_powerIdHasBeenSet = false;
110
111 double m_price{0.0};
112 bool m_priceHasBeenSet = false;
113
114 double m_cpuCount{0.0};
115 bool m_cpuCountHasBeenSet = false;
116
117 double m_ramSizeInGb{0.0};
118 bool m_ramSizeInGbHasBeenSet = false;
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 bool m_isActive{false};
124 bool m_isActiveHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Lightsail
129} // 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