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