AWS SDK for C++  1.8.73
AWS SDK for C++
EC2InstanceLimit.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
34  {
35  public:
38  EC2InstanceLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
50  inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; }
51 
60  inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; }
61 
70  inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
71 
80  inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = std::move(value); }
81 
90  inline EC2InstanceLimit& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;}
91 
100  inline EC2InstanceLimit& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(std::move(value)); return *this;}
101 
102 
107  inline int GetCurrentInstances() const{ return m_currentInstances; }
108 
113  inline bool CurrentInstancesHasBeenSet() const { return m_currentInstancesHasBeenSet; }
114 
119  inline void SetCurrentInstances(int value) { m_currentInstancesHasBeenSet = true; m_currentInstances = value; }
120 
125  inline EC2InstanceLimit& WithCurrentInstances(int value) { SetCurrentInstances(value); return *this;}
126 
127 
131  inline int GetInstanceLimit() const{ return m_instanceLimit; }
132 
136  inline bool InstanceLimitHasBeenSet() const { return m_instanceLimitHasBeenSet; }
137 
141  inline void SetInstanceLimit(int value) { m_instanceLimitHasBeenSet = true; m_instanceLimit = value; }
142 
146  inline EC2InstanceLimit& WithInstanceLimit(int value) { SetInstanceLimit(value); return *this;}
147 
148  private:
149 
150  EC2InstanceType m_eC2InstanceType;
151  bool m_eC2InstanceTypeHasBeenSet;
152 
153  int m_currentInstances;
154  bool m_currentInstancesHasBeenSet;
155 
156  int m_instanceLimit;
157  bool m_instanceLimitHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace GameLift
162 } // 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