AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EC2InstanceLimit.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/EC2InstanceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_GAMELIFT_API EC2InstanceLimit();
41 AWS_GAMELIFT_API EC2InstanceLimit(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; }
53 inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; }
54 inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
55 inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = std::move(value); }
56 inline EC2InstanceLimit& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;}
57 inline EC2InstanceLimit& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(std::move(value)); return *this;}
59
61
65 inline int GetCurrentInstances() const{ return m_currentInstances; }
66 inline bool CurrentInstancesHasBeenSet() const { return m_currentInstancesHasBeenSet; }
67 inline void SetCurrentInstances(int value) { m_currentInstancesHasBeenSet = true; m_currentInstances = value; }
68 inline EC2InstanceLimit& WithCurrentInstances(int value) { SetCurrentInstances(value); return *this;}
70
72
76 inline int GetInstanceLimit() const{ return m_instanceLimit; }
77 inline bool InstanceLimitHasBeenSet() const { return m_instanceLimitHasBeenSet; }
78 inline void SetInstanceLimit(int value) { m_instanceLimitHasBeenSet = true; m_instanceLimit = value; }
79 inline EC2InstanceLimit& WithInstanceLimit(int value) { SetInstanceLimit(value); return *this;}
81
83
86 inline const Aws::String& GetLocation() const{ return m_location; }
87 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
88 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
89 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
90 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
91 inline EC2InstanceLimit& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
92 inline EC2InstanceLimit& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
93 inline EC2InstanceLimit& WithLocation(const char* value) { SetLocation(value); return *this;}
95 private:
96
97 EC2InstanceType m_eC2InstanceType;
98 bool m_eC2InstanceTypeHasBeenSet = false;
99
100 int m_currentInstances;
101 bool m_currentInstancesHasBeenSet = false;
102
103 int m_instanceLimit;
104 bool m_instanceLimitHasBeenSet = false;
105
106 Aws::String m_location;
107 bool m_locationHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace GameLift
112} // namespace Aws
const Aws::String & GetLocation() const
void SetLocation(const Aws::String &value)
EC2InstanceLimit & WithLocation(const char *value)
const EC2InstanceType & GetEC2InstanceType() const
AWS_GAMELIFT_API EC2InstanceLimit(Aws::Utils::Json::JsonView jsonValue)
EC2InstanceLimit & WithLocation(Aws::String &&value)
void SetEC2InstanceType(const EC2InstanceType &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API EC2InstanceLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLocation(Aws::String &&value)
EC2InstanceLimit & WithEC2InstanceType(EC2InstanceType &&value)
EC2InstanceLimit & WithLocation(const Aws::String &value)
EC2InstanceLimit & WithEC2InstanceType(const EC2InstanceType &value)
EC2InstanceLimit & WithCurrentInstances(int value)
void SetEC2InstanceType(EC2InstanceType &&value)
EC2InstanceLimit & WithInstanceLimit(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue