AWS SDK for C++  0.14.3
AWS SDK for C++
InstancesCount.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace OpsWorks
28 {
29 namespace Model
30 {
31 
36  {
37  public:
40  InstancesCount& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
46  inline int GetAssigning() const{ return m_assigning; }
47 
51  inline void SetAssigning(int value) { m_assigningHasBeenSet = true; m_assigning = value; }
52 
56  inline InstancesCount& WithAssigning(int value) { SetAssigning(value); return *this;}
57 
61  inline int GetBooting() const{ return m_booting; }
62 
66  inline void SetBooting(int value) { m_bootingHasBeenSet = true; m_booting = value; }
67 
71  inline InstancesCount& WithBooting(int value) { SetBooting(value); return *this;}
72 
76  inline int GetConnectionLost() const{ return m_connectionLost; }
77 
81  inline void SetConnectionLost(int value) { m_connectionLostHasBeenSet = true; m_connectionLost = value; }
82 
86  inline InstancesCount& WithConnectionLost(int value) { SetConnectionLost(value); return *this;}
87 
91  inline int GetDeregistering() const{ return m_deregistering; }
92 
96  inline void SetDeregistering(int value) { m_deregisteringHasBeenSet = true; m_deregistering = value; }
97 
101  inline InstancesCount& WithDeregistering(int value) { SetDeregistering(value); return *this;}
102 
106  inline int GetOnline() const{ return m_online; }
107 
111  inline void SetOnline(int value) { m_onlineHasBeenSet = true; m_online = value; }
112 
116  inline InstancesCount& WithOnline(int value) { SetOnline(value); return *this;}
117 
121  inline int GetPending() const{ return m_pending; }
122 
126  inline void SetPending(int value) { m_pendingHasBeenSet = true; m_pending = value; }
127 
131  inline InstancesCount& WithPending(int value) { SetPending(value); return *this;}
132 
136  inline int GetRebooting() const{ return m_rebooting; }
137 
141  inline void SetRebooting(int value) { m_rebootingHasBeenSet = true; m_rebooting = value; }
142 
146  inline InstancesCount& WithRebooting(int value) { SetRebooting(value); return *this;}
147 
151  inline int GetRegistered() const{ return m_registered; }
152 
156  inline void SetRegistered(int value) { m_registeredHasBeenSet = true; m_registered = value; }
157 
161  inline InstancesCount& WithRegistered(int value) { SetRegistered(value); return *this;}
162 
166  inline int GetRegistering() const{ return m_registering; }
167 
171  inline void SetRegistering(int value) { m_registeringHasBeenSet = true; m_registering = value; }
172 
176  inline InstancesCount& WithRegistering(int value) { SetRegistering(value); return *this;}
177 
181  inline int GetRequested() const{ return m_requested; }
182 
186  inline void SetRequested(int value) { m_requestedHasBeenSet = true; m_requested = value; }
187 
191  inline InstancesCount& WithRequested(int value) { SetRequested(value); return *this;}
192 
196  inline int GetRunningSetup() const{ return m_runningSetup; }
197 
201  inline void SetRunningSetup(int value) { m_runningSetupHasBeenSet = true; m_runningSetup = value; }
202 
206  inline InstancesCount& WithRunningSetup(int value) { SetRunningSetup(value); return *this;}
207 
211  inline int GetSetupFailed() const{ return m_setupFailed; }
212 
216  inline void SetSetupFailed(int value) { m_setupFailedHasBeenSet = true; m_setupFailed = value; }
217 
221  inline InstancesCount& WithSetupFailed(int value) { SetSetupFailed(value); return *this;}
222 
226  inline int GetShuttingDown() const{ return m_shuttingDown; }
227 
231  inline void SetShuttingDown(int value) { m_shuttingDownHasBeenSet = true; m_shuttingDown = value; }
232 
236  inline InstancesCount& WithShuttingDown(int value) { SetShuttingDown(value); return *this;}
237 
241  inline int GetStartFailed() const{ return m_startFailed; }
242 
246  inline void SetStartFailed(int value) { m_startFailedHasBeenSet = true; m_startFailed = value; }
247 
251  inline InstancesCount& WithStartFailed(int value) { SetStartFailed(value); return *this;}
252 
256  inline int GetStopped() const{ return m_stopped; }
257 
261  inline void SetStopped(int value) { m_stoppedHasBeenSet = true; m_stopped = value; }
262 
266  inline InstancesCount& WithStopped(int value) { SetStopped(value); return *this;}
267 
271  inline int GetStopping() const{ return m_stopping; }
272 
276  inline void SetStopping(int value) { m_stoppingHasBeenSet = true; m_stopping = value; }
277 
281  inline InstancesCount& WithStopping(int value) { SetStopping(value); return *this;}
282 
286  inline int GetTerminated() const{ return m_terminated; }
287 
291  inline void SetTerminated(int value) { m_terminatedHasBeenSet = true; m_terminated = value; }
292 
296  inline InstancesCount& WithTerminated(int value) { SetTerminated(value); return *this;}
297 
301  inline int GetTerminating() const{ return m_terminating; }
302 
306  inline void SetTerminating(int value) { m_terminatingHasBeenSet = true; m_terminating = value; }
307 
311  inline InstancesCount& WithTerminating(int value) { SetTerminating(value); return *this;}
312 
316  inline int GetUnassigning() const{ return m_unassigning; }
317 
321  inline void SetUnassigning(int value) { m_unassigningHasBeenSet = true; m_unassigning = value; }
322 
326  inline InstancesCount& WithUnassigning(int value) { SetUnassigning(value); return *this;}
327 
328  private:
329  int m_assigning;
330  bool m_assigningHasBeenSet;
331  int m_booting;
332  bool m_bootingHasBeenSet;
333  int m_connectionLost;
334  bool m_connectionLostHasBeenSet;
335  int m_deregistering;
336  bool m_deregisteringHasBeenSet;
337  int m_online;
338  bool m_onlineHasBeenSet;
339  int m_pending;
340  bool m_pendingHasBeenSet;
341  int m_rebooting;
342  bool m_rebootingHasBeenSet;
343  int m_registered;
344  bool m_registeredHasBeenSet;
345  int m_registering;
346  bool m_registeringHasBeenSet;
347  int m_requested;
348  bool m_requestedHasBeenSet;
349  int m_runningSetup;
350  bool m_runningSetupHasBeenSet;
351  int m_setupFailed;
352  bool m_setupFailedHasBeenSet;
353  int m_shuttingDown;
354  bool m_shuttingDownHasBeenSet;
355  int m_startFailed;
356  bool m_startFailedHasBeenSet;
357  int m_stopped;
358  bool m_stoppedHasBeenSet;
359  int m_stopping;
360  bool m_stoppingHasBeenSet;
361  int m_terminated;
362  bool m_terminatedHasBeenSet;
363  int m_terminating;
364  bool m_terminatingHasBeenSet;
365  int m_unassigning;
366  bool m_unassigningHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace OpsWorks
371 } // namespace Aws
InstancesCount & WithSetupFailed(int value)
InstancesCount & WithStopping(int value)
InstancesCount & WithTerminated(int value)
InstancesCount & WithShuttingDown(int value)
InstancesCount & WithUnassigning(int value)
InstancesCount & WithRunningSetup(int value)
InstancesCount & WithConnectionLost(int value)
InstancesCount & WithOnline(int value)
InstancesCount & WithRegistering(int value)
InstancesCount & WithPending(int value)
InstancesCount & WithRequested(int value)
InstancesCount & WithRegistered(int value)
InstancesCount & WithTerminating(int value)
InstancesCount & WithBooting(int value)
#define AWS_OPSWORKS_API
InstancesCount & WithAssigning(int value)
InstancesCount & WithDeregistering(int value)
InstancesCount & WithStartFailed(int value)
InstancesCount & WithStopped(int value)
JSON (JavaScript Object Notation).
InstancesCount & WithRebooting(int value)