AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
EC2InstanceCounts.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
28 public:
29 AWS_GAMELIFT_API EC2InstanceCounts() = default;
30 AWS_GAMELIFT_API EC2InstanceCounts(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_GAMELIFT_API EC2InstanceCounts& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
42 inline int64_t GetDESIRED() const { return m_dESIRED; }
43 inline bool DESIREDHasBeenSet() const { return m_dESIREDHasBeenSet; }
44 inline void SetDESIRED(int64_t value) {
45 m_dESIREDHasBeenSet = true;
46 m_dESIRED = value;
47 }
48 inline EC2InstanceCounts& WithDESIRED(int64_t value) {
49 SetDESIRED(value);
50 return *this;
51 }
53
55
58 inline int64_t GetMINIMUM() const { return m_mINIMUM; }
59 inline bool MINIMUMHasBeenSet() const { return m_mINIMUMHasBeenSet; }
60 inline void SetMINIMUM(int64_t value) {
61 m_mINIMUMHasBeenSet = true;
62 m_mINIMUM = value;
63 }
64 inline EC2InstanceCounts& WithMINIMUM(int64_t value) {
65 SetMINIMUM(value);
66 return *this;
67 }
69
71
74 inline int64_t GetMAXIMUM() const { return m_mAXIMUM; }
75 inline bool MAXIMUMHasBeenSet() const { return m_mAXIMUMHasBeenSet; }
76 inline void SetMAXIMUM(int64_t value) {
77 m_mAXIMUMHasBeenSet = true;
78 m_mAXIMUM = value;
79 }
80 inline EC2InstanceCounts& WithMAXIMUM(int64_t value) {
81 SetMAXIMUM(value);
82 return *this;
83 }
85
87
90 inline int64_t GetPENDING() const { return m_pENDING; }
91 inline bool PENDINGHasBeenSet() const { return m_pENDINGHasBeenSet; }
92 inline void SetPENDING(int64_t value) {
93 m_pENDINGHasBeenSet = true;
94 m_pENDING = value;
95 }
96 inline EC2InstanceCounts& WithPENDING(int64_t value) {
97 SetPENDING(value);
98 return *this;
99 }
101
103
106 inline int64_t GetACTIVE() const { return m_aCTIVE; }
107 inline bool ACTIVEHasBeenSet() const { return m_aCTIVEHasBeenSet; }
108 inline void SetACTIVE(int64_t value) {
109 m_aCTIVEHasBeenSet = true;
110 m_aCTIVE = value;
111 }
112 inline EC2InstanceCounts& WithACTIVE(int64_t value) {
113 SetACTIVE(value);
114 return *this;
115 }
117
119
122 inline int64_t GetIDLE() const { return m_iDLE; }
123 inline bool IDLEHasBeenSet() const { return m_iDLEHasBeenSet; }
124 inline void SetIDLE(int64_t value) {
125 m_iDLEHasBeenSet = true;
126 m_iDLE = value;
127 }
128 inline EC2InstanceCounts& WithIDLE(int64_t value) {
129 SetIDLE(value);
130 return *this;
131 }
133
135
139 inline int64_t GetTERMINATING() const { return m_tERMINATING; }
140 inline bool TERMINATINGHasBeenSet() const { return m_tERMINATINGHasBeenSet; }
141 inline void SetTERMINATING(int64_t value) {
142 m_tERMINATINGHasBeenSet = true;
143 m_tERMINATING = value;
144 }
145 inline EC2InstanceCounts& WithTERMINATING(int64_t value) {
146 SetTERMINATING(value);
147 return *this;
148 }
150 private:
151 int64_t m_dESIRED{0};
152
153 int64_t m_mINIMUM{0};
154
155 int64_t m_mAXIMUM{0};
156
157 int64_t m_pENDING{0};
158
159 int64_t m_aCTIVE{0};
160
161 int64_t m_iDLE{0};
162
163 int64_t m_tERMINATING{0};
164 bool m_dESIREDHasBeenSet = false;
165 bool m_mINIMUMHasBeenSet = false;
166 bool m_mAXIMUMHasBeenSet = false;
167 bool m_pENDINGHasBeenSet = false;
168 bool m_aCTIVEHasBeenSet = false;
169 bool m_iDLEHasBeenSet = false;
170 bool m_tERMINATINGHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace GameLift
175} // namespace Aws
EC2InstanceCounts & WithDESIRED(int64_t value)
EC2InstanceCounts & WithMINIMUM(int64_t value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EC2InstanceCounts & WithIDLE(int64_t value)
AWS_GAMELIFT_API EC2InstanceCounts(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EC2InstanceCounts & WithTERMINATING(int64_t value)
AWS_GAMELIFT_API EC2InstanceCounts()=default
EC2InstanceCounts & WithACTIVE(int64_t value)
EC2InstanceCounts & WithMAXIMUM(int64_t value)
EC2InstanceCounts & WithPENDING(int64_t value)
AWS_GAMELIFT_API EC2InstanceCounts & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)