AWS SDK for C++  0.14.3
AWS SDK for C++
EC2InstanceCounts.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 GameLift
28 {
29 namespace Model
30 {
31 
40  {
41  public:
44  EC2InstanceCounts& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline int GetDESIRED() const{ return m_dESIRED; }
51 
55  inline void SetDESIRED(int value) { m_dESIREDHasBeenSet = true; m_dESIRED = value; }
56 
60  inline EC2InstanceCounts& WithDESIRED(int value) { SetDESIRED(value); return *this;}
61 
65  inline int GetMINIMUM() const{ return m_mINIMUM; }
66 
70  inline void SetMINIMUM(int value) { m_mINIMUMHasBeenSet = true; m_mINIMUM = value; }
71 
75  inline EC2InstanceCounts& WithMINIMUM(int value) { SetMINIMUM(value); return *this;}
76 
80  inline int GetMAXIMUM() const{ return m_mAXIMUM; }
81 
85  inline void SetMAXIMUM(int value) { m_mAXIMUMHasBeenSet = true; m_mAXIMUM = value; }
86 
90  inline EC2InstanceCounts& WithMAXIMUM(int value) { SetMAXIMUM(value); return *this;}
91 
95  inline int GetPENDING() const{ return m_pENDING; }
96 
100  inline void SetPENDING(int value) { m_pENDINGHasBeenSet = true; m_pENDING = value; }
101 
105  inline EC2InstanceCounts& WithPENDING(int value) { SetPENDING(value); return *this;}
106 
110  inline int GetACTIVE() const{ return m_aCTIVE; }
111 
115  inline void SetACTIVE(int value) { m_aCTIVEHasBeenSet = true; m_aCTIVE = value; }
116 
120  inline EC2InstanceCounts& WithACTIVE(int value) { SetACTIVE(value); return *this;}
121 
126  inline int GetIDLE() const{ return m_iDLE; }
127 
132  inline void SetIDLE(int value) { m_iDLEHasBeenSet = true; m_iDLE = value; }
133 
138  inline EC2InstanceCounts& WithIDLE(int value) { SetIDLE(value); return *this;}
139 
144  inline int GetTERMINATING() const{ return m_tERMINATING; }
145 
150  inline void SetTERMINATING(int value) { m_tERMINATINGHasBeenSet = true; m_tERMINATING = value; }
151 
156  inline EC2InstanceCounts& WithTERMINATING(int value) { SetTERMINATING(value); return *this;}
157 
158  private:
159  int m_dESIRED;
160  bool m_dESIREDHasBeenSet;
161  int m_mINIMUM;
162  bool m_mINIMUMHasBeenSet;
163  int m_mAXIMUM;
164  bool m_mAXIMUMHasBeenSet;
165  int m_pENDING;
166  bool m_pENDINGHasBeenSet;
167  int m_aCTIVE;
168  bool m_aCTIVEHasBeenSet;
169  int m_iDLE;
170  bool m_iDLEHasBeenSet;
171  int m_tERMINATING;
172  bool m_tERMINATINGHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace GameLift
177 } // namespace Aws
#define AWS_GAMELIFT_API
EC2InstanceCounts & WithTERMINATING(int value)
EC2InstanceCounts & WithACTIVE(int value)
EC2InstanceCounts & WithPENDING(int value)
EC2InstanceCounts & WithMINIMUM(int value)
EC2InstanceCounts & WithMAXIMUM(int value)
EC2InstanceCounts & WithIDLE(int value)
EC2InstanceCounts & WithDESIRED(int value)
JSON (JavaScript Object Notation).