AWS SDK for C++  1.7.224
AWS SDK for C++
EC2InstanceLimit.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 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 
16 #pragma once
19 #include <utility>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28  class JsonView;
29 } // namespace Json
30 } // namespace Utils
31 namespace GameLift
32 {
33 namespace Model
34 {
35 
44  {
45  public:
48  EC2InstanceLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
49  Aws::Utils::Json::JsonValue Jsonize() const;
50 
51 
60  inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; }
61 
70  inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; }
71 
80  inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
81 
90  inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = std::move(value); }
91 
100  inline EC2InstanceLimit& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;}
101 
110  inline EC2InstanceLimit& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(std::move(value)); return *this;}
111 
112 
117  inline int GetCurrentInstances() const{ return m_currentInstances; }
118 
123  inline bool CurrentInstancesHasBeenSet() const { return m_currentInstancesHasBeenSet; }
124 
129  inline void SetCurrentInstances(int value) { m_currentInstancesHasBeenSet = true; m_currentInstances = value; }
130 
135  inline EC2InstanceLimit& WithCurrentInstances(int value) { SetCurrentInstances(value); return *this;}
136 
137 
141  inline int GetInstanceLimit() const{ return m_instanceLimit; }
142 
146  inline bool InstanceLimitHasBeenSet() const { return m_instanceLimitHasBeenSet; }
147 
151  inline void SetInstanceLimit(int value) { m_instanceLimitHasBeenSet = true; m_instanceLimit = value; }
152 
156  inline EC2InstanceLimit& WithInstanceLimit(int value) { SetInstanceLimit(value); return *this;}
157 
158  private:
159 
160  EC2InstanceType m_eC2InstanceType;
161  bool m_eC2InstanceTypeHasBeenSet;
162 
163  int m_currentInstances;
164  bool m_currentInstancesHasBeenSet;
165 
166  int m_instanceLimit;
167  bool m_instanceLimitHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace GameLift
172 } // namespace Aws
#define AWS_GAMELIFT_API
void SetEC2InstanceType(const EC2InstanceType &value)
EC2InstanceLimit & WithInstanceLimit(int value)
EC2InstanceLimit & WithCurrentInstances(int value)
EC2InstanceLimit & WithEC2InstanceType(const EC2InstanceType &value)
EC2InstanceLimit & WithEC2InstanceType(EC2InstanceType &&value)
void SetEC2InstanceType(EC2InstanceType &&value)
const EC2InstanceType & GetEC2InstanceType() const