AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
EC2InstanceLimit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/EC2InstanceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
34 public:
35 AWS_GAMELIFT_API EC2InstanceLimit() = default;
36 AWS_GAMELIFT_API EC2InstanceLimit(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline EC2InstanceType GetEC2InstanceType() const { return m_eC2InstanceType; }
47 inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; }
49 m_eC2InstanceTypeHasBeenSet = true;
50 m_eC2InstanceType = value;
51 }
53 SetEC2InstanceType(value);
54 return *this;
55 }
57
59
63 inline int GetCurrentInstances() const { return m_currentInstances; }
64 inline bool CurrentInstancesHasBeenSet() const { return m_currentInstancesHasBeenSet; }
65 inline void SetCurrentInstances(int value) {
66 m_currentInstancesHasBeenSet = true;
67 m_currentInstances = value;
68 }
71 return *this;
72 }
74
76
80 inline int GetInstanceLimit() const { return m_instanceLimit; }
81 inline bool InstanceLimitHasBeenSet() const { return m_instanceLimitHasBeenSet; }
82 inline void SetInstanceLimit(int value) {
83 m_instanceLimitHasBeenSet = true;
84 m_instanceLimit = value;
85 }
87 SetInstanceLimit(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetLocation() const { return m_location; }
97 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
98 template <typename LocationT = Aws::String>
99 void SetLocation(LocationT&& value) {
100 m_locationHasBeenSet = true;
101 m_location = std::forward<LocationT>(value);
102 }
103 template <typename LocationT = Aws::String>
104 EC2InstanceLimit& WithLocation(LocationT&& value) {
105 SetLocation(std::forward<LocationT>(value));
106 return *this;
107 }
109 private:
110 EC2InstanceType m_eC2InstanceType{EC2InstanceType::NOT_SET};
111 bool m_eC2InstanceTypeHasBeenSet = false;
112
113 int m_currentInstances{0};
114 bool m_currentInstancesHasBeenSet = false;
115
116 int m_instanceLimit{0};
117 bool m_instanceLimitHasBeenSet = false;
118
119 Aws::String m_location;
120 bool m_locationHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace GameLift
125} // namespace Aws
const Aws::String & GetLocation() const
AWS_GAMELIFT_API EC2InstanceLimit()=default
EC2InstanceLimit & WithEC2InstanceType(EC2InstanceType value)
AWS_GAMELIFT_API EC2InstanceLimit(Aws::Utils::Json::JsonView jsonValue)
EC2InstanceType GetEC2InstanceType() const
EC2InstanceLimit & WithLocation(LocationT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API EC2InstanceLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEC2InstanceType(EC2InstanceType value)
EC2InstanceLimit & WithCurrentInstances(int value)
EC2InstanceLimit & WithInstanceLimit(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue