AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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#include <aws/gameliftstreams/model/VpcTransitConfigurationResponse.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLiftStreams {
22namespace Model {
23
31 public:
32 AWS_GAMELIFTSTREAMS_API LocationState() = default;
33 AWS_GAMELIFTSTREAMS_API LocationState(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GAMELIFTSTREAMS_API LocationState& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetLocationName() const { return m_locationName; }
46 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
47 template <typename LocationNameT = Aws::String>
48 void SetLocationName(LocationNameT&& value) {
49 m_locationNameHasBeenSet = true;
50 m_locationName = std::forward<LocationNameT>(value);
51 }
52 template <typename LocationNameT = Aws::String>
53 LocationState& WithLocationName(LocationNameT&& value) {
54 SetLocationName(std::forward<LocationNameT>(value));
55 return *this;
56 }
58
60
74 inline StreamGroupLocationStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 m_statusHasBeenSet = true;
78 m_status = value;
79 }
81 SetStatus(value);
82 return *this;
83 }
85
87
92 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
93 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
94 inline void SetAlwaysOnCapacity(int value) {
95 m_alwaysOnCapacityHasBeenSet = true;
96 m_alwaysOnCapacity = value;
97 }
100 return *this;
101 }
103
105
112 inline int GetOnDemandCapacity() const { return m_onDemandCapacity; }
113 inline bool OnDemandCapacityHasBeenSet() const { return m_onDemandCapacityHasBeenSet; }
114 inline void SetOnDemandCapacity(int value) {
115 m_onDemandCapacityHasBeenSet = true;
116 m_onDemandCapacity = value;
117 }
119 SetOnDemandCapacity(value);
120 return *this;
121 }
123
125
131 inline int GetTargetIdleCapacity() const { return m_targetIdleCapacity; }
132 inline bool TargetIdleCapacityHasBeenSet() const { return m_targetIdleCapacityHasBeenSet; }
133 inline void SetTargetIdleCapacity(int value) {
134 m_targetIdleCapacityHasBeenSet = true;
135 m_targetIdleCapacity = value;
136 }
139 return *this;
140 }
142
144
150 inline int GetMaximumCapacity() const { return m_maximumCapacity; }
151 inline bool MaximumCapacityHasBeenSet() const { return m_maximumCapacityHasBeenSet; }
152 inline void SetMaximumCapacity(int value) {
153 m_maximumCapacityHasBeenSet = true;
154 m_maximumCapacity = value;
155 }
157 SetMaximumCapacity(value);
158 return *this;
159 }
161
163
172 inline int GetRequestedCapacity() const { return m_requestedCapacity; }
173 inline bool RequestedCapacityHasBeenSet() const { return m_requestedCapacityHasBeenSet; }
174 inline void SetRequestedCapacity(int value) {
175 m_requestedCapacityHasBeenSet = true;
176 m_requestedCapacity = value;
177 }
180 return *this;
181 }
183
185
198 inline int GetAllocatedCapacity() const { return m_allocatedCapacity; }
199 inline bool AllocatedCapacityHasBeenSet() const { return m_allocatedCapacityHasBeenSet; }
200 inline void SetAllocatedCapacity(int value) {
201 m_allocatedCapacityHasBeenSet = true;
202 m_allocatedCapacity = value;
203 }
206 return *this;
207 }
209
211
216 inline int GetIdleCapacity() const { return m_idleCapacity; }
217 inline bool IdleCapacityHasBeenSet() const { return m_idleCapacityHasBeenSet; }
218 inline void SetIdleCapacity(int value) {
219 m_idleCapacityHasBeenSet = true;
220 m_idleCapacity = value;
221 }
222 inline LocationState& WithIdleCapacity(int value) {
223 SetIdleCapacity(value);
224 return *this;
225 }
227
229
233 inline const Aws::String& GetInternalVpcIpv4CidrBlock() const { return m_internalVpcIpv4CidrBlock; }
234 inline bool InternalVpcIpv4CidrBlockHasBeenSet() const { return m_internalVpcIpv4CidrBlockHasBeenSet; }
235 template <typename InternalVpcIpv4CidrBlockT = Aws::String>
236 void SetInternalVpcIpv4CidrBlock(InternalVpcIpv4CidrBlockT&& value) {
237 m_internalVpcIpv4CidrBlockHasBeenSet = true;
238 m_internalVpcIpv4CidrBlock = std::forward<InternalVpcIpv4CidrBlockT>(value);
239 }
240 template <typename InternalVpcIpv4CidrBlockT = Aws::String>
241 LocationState& WithInternalVpcIpv4CidrBlock(InternalVpcIpv4CidrBlockT&& value) {
242 SetInternalVpcIpv4CidrBlock(std::forward<InternalVpcIpv4CidrBlockT>(value));
243 return *this;
244 }
246
248
252 inline const VpcTransitConfigurationResponse& GetVpcTransitConfiguration() const { return m_vpcTransitConfiguration; }
253 inline bool VpcTransitConfigurationHasBeenSet() const { return m_vpcTransitConfigurationHasBeenSet; }
254 template <typename VpcTransitConfigurationT = VpcTransitConfigurationResponse>
255 void SetVpcTransitConfiguration(VpcTransitConfigurationT&& value) {
256 m_vpcTransitConfigurationHasBeenSet = true;
257 m_vpcTransitConfiguration = std::forward<VpcTransitConfigurationT>(value);
258 }
259 template <typename VpcTransitConfigurationT = VpcTransitConfigurationResponse>
260 LocationState& WithVpcTransitConfiguration(VpcTransitConfigurationT&& value) {
261 SetVpcTransitConfiguration(std::forward<VpcTransitConfigurationT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_locationName;
267
269
270 int m_alwaysOnCapacity{0};
271
272 int m_onDemandCapacity{0};
273
274 int m_targetIdleCapacity{0};
275
276 int m_maximumCapacity{0};
277
278 int m_requestedCapacity{0};
279
280 int m_allocatedCapacity{0};
281
282 int m_idleCapacity{0};
283
284 Aws::String m_internalVpcIpv4CidrBlock;
285
286 VpcTransitConfigurationResponse m_vpcTransitConfiguration;
287 bool m_locationNameHasBeenSet = false;
288 bool m_statusHasBeenSet = false;
289 bool m_alwaysOnCapacityHasBeenSet = false;
290 bool m_onDemandCapacityHasBeenSet = false;
291 bool m_targetIdleCapacityHasBeenSet = false;
292 bool m_maximumCapacityHasBeenSet = false;
293 bool m_requestedCapacityHasBeenSet = false;
294 bool m_allocatedCapacityHasBeenSet = false;
295 bool m_idleCapacityHasBeenSet = false;
296 bool m_internalVpcIpv4CidrBlockHasBeenSet = false;
297 bool m_vpcTransitConfigurationHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace GameLiftStreams
302} // 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)
const VpcTransitConfigurationResponse & GetVpcTransitConfiguration() const
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
LocationState & WithOnDemandCapacity(int value)
LocationState & WithRequestedCapacity(int value)
const Aws::String & GetInternalVpcIpv4CidrBlock() const
void SetStatus(StreamGroupLocationStatus value)
LocationState & WithInternalVpcIpv4CidrBlock(InternalVpcIpv4CidrBlockT &&value)
LocationState & WithMaximumCapacity(int value)
LocationState & WithAllocatedCapacity(int value)
LocationState & WithTargetIdleCapacity(int value)
void SetVpcTransitConfiguration(VpcTransitConfigurationT &&value)
LocationState & WithStatus(StreamGroupLocationStatus value)
void SetInternalVpcIpv4CidrBlock(InternalVpcIpv4CidrBlockT &&value)
LocationState & WithVpcTransitConfiguration(VpcTransitConfigurationT &&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