AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LocationState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
9#include <aws/gameliftstreams/model/StreamGroupLocationStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLiftStreams {
21namespace Model {
22
30 public:
31 AWS_GAMELIFTSTREAMS_API LocationState() = default;
32 AWS_GAMELIFTSTREAMS_API LocationState(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GAMELIFTSTREAMS_API LocationState& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetLocationName() const { return m_locationName; }
45 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
46 template <typename LocationNameT = Aws::String>
47 void SetLocationName(LocationNameT&& value) {
48 m_locationNameHasBeenSet = true;
49 m_locationName = std::forward<LocationNameT>(value);
50 }
51 template <typename LocationNameT = Aws::String>
52 LocationState& WithLocationName(LocationNameT&& value) {
53 SetLocationName(std::forward<LocationNameT>(value));
54 return *this;
55 }
57
59
73 inline StreamGroupLocationStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 m_statusHasBeenSet = true;
77 m_status = value;
78 }
80 SetStatus(value);
81 return *this;
82 }
84
86
91 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
92 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
93 inline void SetAlwaysOnCapacity(int value) {
94 m_alwaysOnCapacityHasBeenSet = true;
95 m_alwaysOnCapacity = value;
96 }
99 return *this;
100 }
102
104
111 inline int GetOnDemandCapacity() const { return m_onDemandCapacity; }
112 inline bool OnDemandCapacityHasBeenSet() const { return m_onDemandCapacityHasBeenSet; }
113 inline void SetOnDemandCapacity(int value) {
114 m_onDemandCapacityHasBeenSet = true;
115 m_onDemandCapacity = value;
116 }
118 SetOnDemandCapacity(value);
119 return *this;
120 }
122
124
130 inline int GetTargetIdleCapacity() const { return m_targetIdleCapacity; }
131 inline bool TargetIdleCapacityHasBeenSet() const { return m_targetIdleCapacityHasBeenSet; }
132 inline void SetTargetIdleCapacity(int value) {
133 m_targetIdleCapacityHasBeenSet = true;
134 m_targetIdleCapacity = value;
135 }
138 return *this;
139 }
141
143
149 inline int GetMaximumCapacity() const { return m_maximumCapacity; }
150 inline bool MaximumCapacityHasBeenSet() const { return m_maximumCapacityHasBeenSet; }
151 inline void SetMaximumCapacity(int value) {
152 m_maximumCapacityHasBeenSet = true;
153 m_maximumCapacity = value;
154 }
156 SetMaximumCapacity(value);
157 return *this;
158 }
160
162
171 inline int GetRequestedCapacity() const { return m_requestedCapacity; }
172 inline bool RequestedCapacityHasBeenSet() const { return m_requestedCapacityHasBeenSet; }
173 inline void SetRequestedCapacity(int value) {
174 m_requestedCapacityHasBeenSet = true;
175 m_requestedCapacity = value;
176 }
179 return *this;
180 }
182
184
197 inline int GetAllocatedCapacity() const { return m_allocatedCapacity; }
198 inline bool AllocatedCapacityHasBeenSet() const { return m_allocatedCapacityHasBeenSet; }
199 inline void SetAllocatedCapacity(int value) {
200 m_allocatedCapacityHasBeenSet = true;
201 m_allocatedCapacity = value;
202 }
205 return *this;
206 }
208
210
215 inline int GetIdleCapacity() const { return m_idleCapacity; }
216 inline bool IdleCapacityHasBeenSet() const { return m_idleCapacityHasBeenSet; }
217 inline void SetIdleCapacity(int value) {
218 m_idleCapacityHasBeenSet = true;
219 m_idleCapacity = value;
220 }
221 inline LocationState& WithIdleCapacity(int value) {
222 SetIdleCapacity(value);
223 return *this;
224 }
226 private:
227 Aws::String m_locationName;
228
230
231 int m_alwaysOnCapacity{0};
232
233 int m_onDemandCapacity{0};
234
235 int m_targetIdleCapacity{0};
236
237 int m_maximumCapacity{0};
238
239 int m_requestedCapacity{0};
240
241 int m_allocatedCapacity{0};
242
243 int m_idleCapacity{0};
244 bool m_locationNameHasBeenSet = false;
245 bool m_statusHasBeenSet = false;
246 bool m_alwaysOnCapacityHasBeenSet = false;
247 bool m_onDemandCapacityHasBeenSet = false;
248 bool m_targetIdleCapacityHasBeenSet = false;
249 bool m_maximumCapacityHasBeenSet = false;
250 bool m_requestedCapacityHasBeenSet = false;
251 bool m_allocatedCapacityHasBeenSet = false;
252 bool m_idleCapacityHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace GameLiftStreams
257} // namespace Aws
const Aws::String & GetLocationName() const
LocationState & WithAlwaysOnCapacity(int value)
void SetLocationName(LocationNameT &&value)
AWS_GAMELIFTSTREAMS_API LocationState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFTSTREAMS_API LocationState()=default
LocationState & WithLocationName(LocationNameT &&value)
AWS_GAMELIFTSTREAMS_API LocationState(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
LocationState & WithOnDemandCapacity(int value)
LocationState & WithRequestedCapacity(int value)
void SetStatus(StreamGroupLocationStatus value)
LocationState & WithMaximumCapacity(int value)
LocationState & WithAllocatedCapacity(int value)
LocationState & WithTargetIdleCapacity(int value)
LocationState & WithStatus(StreamGroupLocationStatus value)
LocationState & WithIdleCapacity(int value)
StreamGroupLocationStatus GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue