AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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
50 inline const Aws::String& GetLocationName() const { return m_locationName; }
51 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
52 template<typename LocationNameT = Aws::String>
53 void SetLocationName(LocationNameT&& value) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
54 template<typename LocationNameT = Aws::String>
55 LocationState& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
57
59
73 inline StreamGroupLocationStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(StreamGroupLocationStatus value) { m_statusHasBeenSet = true; m_status = value; }
76 inline LocationState& WithStatus(StreamGroupLocationStatus value) { SetStatus(value); return *this;}
78
80
86 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
87 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
88 inline void SetAlwaysOnCapacity(int value) { m_alwaysOnCapacityHasBeenSet = true; m_alwaysOnCapacity = value; }
89 inline LocationState& WithAlwaysOnCapacity(int value) { SetAlwaysOnCapacity(value); return *this;}
91
93
100 inline int GetOnDemandCapacity() const { return m_onDemandCapacity; }
101 inline bool OnDemandCapacityHasBeenSet() const { return m_onDemandCapacityHasBeenSet; }
102 inline void SetOnDemandCapacity(int value) { m_onDemandCapacityHasBeenSet = true; m_onDemandCapacity = value; }
103 inline LocationState& WithOnDemandCapacity(int value) { SetOnDemandCapacity(value); return *this;}
105
107
113 inline int GetRequestedCapacity() const { return m_requestedCapacity; }
114 inline bool RequestedCapacityHasBeenSet() const { return m_requestedCapacityHasBeenSet; }
115 inline void SetRequestedCapacity(int value) { m_requestedCapacityHasBeenSet = true; m_requestedCapacity = value; }
116 inline LocationState& WithRequestedCapacity(int value) { SetRequestedCapacity(value); return *this;}
118
120
126 inline int GetAllocatedCapacity() const { return m_allocatedCapacity; }
127 inline bool AllocatedCapacityHasBeenSet() const { return m_allocatedCapacityHasBeenSet; }
128 inline void SetAllocatedCapacity(int value) { m_allocatedCapacityHasBeenSet = true; m_allocatedCapacity = value; }
129 inline LocationState& WithAllocatedCapacity(int value) { SetAllocatedCapacity(value); return *this;}
131
133
138 inline int GetIdleCapacity() const { return m_idleCapacity; }
139 inline bool IdleCapacityHasBeenSet() const { return m_idleCapacityHasBeenSet; }
140 inline void SetIdleCapacity(int value) { m_idleCapacityHasBeenSet = true; m_idleCapacity = value; }
141 inline LocationState& WithIdleCapacity(int value) { SetIdleCapacity(value); return *this;}
143 private:
144
145 Aws::String m_locationName;
146 bool m_locationNameHasBeenSet = false;
147
149 bool m_statusHasBeenSet = false;
150
151 int m_alwaysOnCapacity{0};
152 bool m_alwaysOnCapacityHasBeenSet = false;
153
154 int m_onDemandCapacity{0};
155 bool m_onDemandCapacityHasBeenSet = false;
156
157 int m_requestedCapacity{0};
158 bool m_requestedCapacityHasBeenSet = false;
159
160 int m_allocatedCapacity{0};
161 bool m_allocatedCapacityHasBeenSet = false;
162
163 int m_idleCapacity{0};
164 bool m_idleCapacityHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace GameLiftStreams
169} // 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