AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ComputeCapacityStatus.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AppStream {
17namespace Model {
18
25 public:
26 AWS_APPSTREAM_API ComputeCapacityStatus() = default;
29 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetDesired() const { return m_desired; }
36 inline bool DesiredHasBeenSet() const { return m_desiredHasBeenSet; }
37 inline void SetDesired(int value) {
38 m_desiredHasBeenSet = true;
39 m_desired = value;
40 }
42 SetDesired(value);
43 return *this;
44 }
46
48
51 inline int GetRunning() const { return m_running; }
52 inline bool RunningHasBeenSet() const { return m_runningHasBeenSet; }
53 inline void SetRunning(int value) {
54 m_runningHasBeenSet = true;
55 m_running = value;
56 }
58 SetRunning(value);
59 return *this;
60 }
62
64
67 inline int GetInUse() const { return m_inUse; }
68 inline bool InUseHasBeenSet() const { return m_inUseHasBeenSet; }
69 inline void SetInUse(int value) {
70 m_inUseHasBeenSet = true;
71 m_inUse = value;
72 }
73 inline ComputeCapacityStatus& WithInUse(int value) {
74 SetInUse(value);
75 return *this;
76 }
78
80
84 inline int GetAvailable() const { return m_available; }
85 inline bool AvailableHasBeenSet() const { return m_availableHasBeenSet; }
86 inline void SetAvailable(int value) {
87 m_availableHasBeenSet = true;
88 m_available = value;
89 }
91 SetAvailable(value);
92 return *this;
93 }
95
97
104 inline int GetDesiredUserSessions() const { return m_desiredUserSessions; }
105 inline bool DesiredUserSessionsHasBeenSet() const { return m_desiredUserSessionsHasBeenSet; }
106 inline void SetDesiredUserSessions(int value) {
107 m_desiredUserSessionsHasBeenSet = true;
108 m_desiredUserSessions = value;
109 }
112 return *this;
113 }
115
117
122 inline int GetAvailableUserSessions() const { return m_availableUserSessions; }
123 inline bool AvailableUserSessionsHasBeenSet() const { return m_availableUserSessionsHasBeenSet; }
124 inline void SetAvailableUserSessions(int value) {
125 m_availableUserSessionsHasBeenSet = true;
126 m_availableUserSessions = value;
127 }
130 return *this;
131 }
133
135
139 inline int GetActiveUserSessions() const { return m_activeUserSessions; }
140 inline bool ActiveUserSessionsHasBeenSet() const { return m_activeUserSessionsHasBeenSet; }
141 inline void SetActiveUserSessions(int value) {
142 m_activeUserSessionsHasBeenSet = true;
143 m_activeUserSessions = value;
144 }
147 return *this;
148 }
150
152
158 inline int GetActualUserSessions() const { return m_actualUserSessions; }
159 inline bool ActualUserSessionsHasBeenSet() const { return m_actualUserSessionsHasBeenSet; }
160 inline void SetActualUserSessions(int value) {
161 m_actualUserSessionsHasBeenSet = true;
162 m_actualUserSessions = value;
163 }
166 return *this;
167 }
169 private:
170 int m_desired{0};
171
172 int m_running{0};
173
174 int m_inUse{0};
175
176 int m_available{0};
177
178 int m_desiredUserSessions{0};
179
180 int m_availableUserSessions{0};
181
182 int m_activeUserSessions{0};
183
184 int m_actualUserSessions{0};
185 bool m_desiredHasBeenSet = false;
186 bool m_runningHasBeenSet = false;
187 bool m_inUseHasBeenSet = false;
188 bool m_availableHasBeenSet = false;
189 bool m_desiredUserSessionsHasBeenSet = false;
190 bool m_availableUserSessionsHasBeenSet = false;
191 bool m_activeUserSessionsHasBeenSet = false;
192 bool m_actualUserSessionsHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace AppStream
197} // namespace Aws
ComputeCapacityStatus & WithAvailable(int value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeCapacityStatus & WithActiveUserSessions(int value)
ComputeCapacityStatus & WithRunning(int value)
ComputeCapacityStatus & WithInUse(int value)
ComputeCapacityStatus & WithDesiredUserSessions(int value)
AWS_APPSTREAM_API ComputeCapacityStatus(Aws::Utils::Json::JsonView jsonValue)
ComputeCapacityStatus & WithDesired(int value)
AWS_APPSTREAM_API ComputeCapacityStatus()=default
ComputeCapacityStatus & WithAvailableUserSessions(int value)
ComputeCapacityStatus & WithActualUserSessions(int value)
AWS_APPSTREAM_API ComputeCapacityStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue