AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LocationState.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gameliftstreams/model/StreamGroupLocationStatus.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 GameLiftStreams
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GAMELIFTSTREAMS_API LocationState() = default;
37 AWS_GAMELIFTSTREAMS_API LocationState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFTSTREAMS_API LocationState& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline int GetAllocatedCapacity() const { return m_allocatedCapacity; }
50 inline bool AllocatedCapacityHasBeenSet() const { return m_allocatedCapacityHasBeenSet; }
51 inline void SetAllocatedCapacity(int value) { m_allocatedCapacityHasBeenSet = true; m_allocatedCapacity = value; }
52 inline LocationState& WithAllocatedCapacity(int value) { SetAllocatedCapacity(value); return *this;}
54
56
61 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
62 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
63 inline void SetAlwaysOnCapacity(int value) { m_alwaysOnCapacityHasBeenSet = true; m_alwaysOnCapacity = value; }
64 inline LocationState& WithAlwaysOnCapacity(int value) { SetAlwaysOnCapacity(value); return *this;}
66
68
73 inline int GetIdleCapacity() const { return m_idleCapacity; }
74 inline bool IdleCapacityHasBeenSet() const { return m_idleCapacityHasBeenSet; }
75 inline void SetIdleCapacity(int value) { m_idleCapacityHasBeenSet = true; m_idleCapacity = value; }
76 inline LocationState& WithIdleCapacity(int value) { SetIdleCapacity(value); return *this;}
78
80
87 inline const Aws::String& GetLocationName() const { return m_locationName; }
88 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
89 template<typename LocationNameT = Aws::String>
90 void SetLocationName(LocationNameT&& value) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
91 template<typename LocationNameT = Aws::String>
92 LocationState& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
94
96
102 inline int GetOnDemandCapacity() const { return m_onDemandCapacity; }
103 inline bool OnDemandCapacityHasBeenSet() const { return m_onDemandCapacityHasBeenSet; }
104 inline void SetOnDemandCapacity(int value) { m_onDemandCapacityHasBeenSet = true; m_onDemandCapacity = value; }
105 inline LocationState& WithOnDemandCapacity(int value) { SetOnDemandCapacity(value); return *this;}
107
109
115 inline int GetRequestedCapacity() const { return m_requestedCapacity; }
116 inline bool RequestedCapacityHasBeenSet() const { return m_requestedCapacityHasBeenSet; }
117 inline void SetRequestedCapacity(int value) { m_requestedCapacityHasBeenSet = true; m_requestedCapacity = value; }
118 inline LocationState& WithRequestedCapacity(int value) { SetRequestedCapacity(value); return *this;}
120
122
135 inline StreamGroupLocationStatus GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 inline void SetStatus(StreamGroupLocationStatus value) { m_statusHasBeenSet = true; m_status = value; }
138 inline LocationState& WithStatus(StreamGroupLocationStatus value) { SetStatus(value); return *this;}
140 private:
141
142 int m_allocatedCapacity{0};
143 bool m_allocatedCapacityHasBeenSet = false;
144
145 int m_alwaysOnCapacity{0};
146 bool m_alwaysOnCapacityHasBeenSet = false;
147
148 int m_idleCapacity{0};
149 bool m_idleCapacityHasBeenSet = false;
150
151 Aws::String m_locationName;
152 bool m_locationNameHasBeenSet = false;
153
154 int m_onDemandCapacity{0};
155 bool m_onDemandCapacityHasBeenSet = false;
156
157 int m_requestedCapacity{0};
158 bool m_requestedCapacityHasBeenSet = false;
159
161 bool m_statusHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace GameLiftStreams
166} // 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 & WithAllocatedCapacity(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