AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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