7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/crt/cbor/Cbor.h>
29 AWS_APPSTREAM_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
38 m_desiredHasBeenSet =
true;
54 m_runningHasBeenSet =
true;
67 inline int64_t
GetInUse()
const {
return m_inUse; }
70 m_inUseHasBeenSet =
true;
87 m_availableHasBeenSet =
true;
107 m_desiredUserSessionsHasBeenSet =
true;
108 m_desiredUserSessions = value;
125 m_availableUserSessionsHasBeenSet =
true;
126 m_availableUserSessions = value;
142 m_activeUserSessionsHasBeenSet =
true;
143 m_activeUserSessions = value;
161 m_actualUserSessionsHasBeenSet =
true;
162 m_actualUserSessions = value;
178 m_drainingHasBeenSet =
true;
195 m_drainModeActiveUserSessionsHasBeenSet =
true;
196 m_drainModeActiveUserSessions = value;
213 m_drainModeUnusedUserSessionsHasBeenSet =
true;
214 m_drainModeUnusedUserSessions = value;
222 int64_t m_desired{0};
224 int64_t m_running{0};
228 int64_t m_available{0};
230 int64_t m_desiredUserSessions{0};
232 int64_t m_availableUserSessions{0};
234 int64_t m_activeUserSessions{0};
236 int64_t m_actualUserSessions{0};
238 int64_t m_draining{0};
240 int64_t m_drainModeActiveUserSessions{0};
242 int64_t m_drainModeUnusedUserSessions{0};
243 bool m_desiredHasBeenSet =
false;
244 bool m_runningHasBeenSet =
false;
245 bool m_inUseHasBeenSet =
false;
246 bool m_availableHasBeenSet =
false;
247 bool m_desiredUserSessionsHasBeenSet =
false;
248 bool m_availableUserSessionsHasBeenSet =
false;
249 bool m_activeUserSessionsHasBeenSet =
false;
250 bool m_actualUserSessionsHasBeenSet =
false;
251 bool m_drainingHasBeenSet =
false;
252 bool m_drainModeActiveUserSessionsHasBeenSet =
false;
253 bool m_drainModeUnusedUserSessionsHasBeenSet =
false;
void SetDesiredUserSessions(int64_t value)
bool ActiveUserSessionsHasBeenSet() const
void SetDrainModeActiveUserSessions(int64_t value)
bool RunningHasBeenSet() const
int64_t GetDesired() const
void SetActualUserSessions(int64_t value)
ComputeCapacityStatus & WithActualUserSessions(int64_t value)
bool InUseHasBeenSet() const
int64_t GetDrainModeActiveUserSessions() const
ComputeCapacityStatus & WithDesired(int64_t value)
ComputeCapacityStatus & WithDrainModeActiveUserSessions(int64_t value)
void SetDrainModeUnusedUserSessions(int64_t value)
ComputeCapacityStatus & WithDraining(int64_t value)
int64_t GetAvailableUserSessions() const
ComputeCapacityStatus & WithAvailable(int64_t value)
AWS_APPSTREAM_API ComputeCapacityStatus & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRunning(int64_t value)
bool AvailableUserSessionsHasBeenSet() const
bool AvailableHasBeenSet() const
int64_t GetAvailable() const
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool DrainModeUnusedUserSessionsHasBeenSet() const
ComputeCapacityStatus & WithDrainModeUnusedUserSessions(int64_t value)
ComputeCapacityStatus & WithAvailableUserSessions(int64_t value)
bool DesiredUserSessionsHasBeenSet() const
ComputeCapacityStatus & WithDesiredUserSessions(int64_t value)
void SetDraining(int64_t value)
void SetAvailableUserSessions(int64_t value)
int64_t GetActiveUserSessions() const
ComputeCapacityStatus & WithRunning(int64_t value)
bool DrainModeActiveUserSessionsHasBeenSet() const
AWS_APPSTREAM_API ComputeCapacityStatus(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
int64_t GetDrainModeUnusedUserSessions() const
AWS_APPSTREAM_API ComputeCapacityStatus()=default
bool DesiredHasBeenSet() const
void SetAvailable(int64_t value)
ComputeCapacityStatus & WithInUse(int64_t value)
int64_t GetRunning() const
void SetInUse(int64_t value)
int64_t GetActualUserSessions() const
bool DrainingHasBeenSet() const
ComputeCapacityStatus & WithActiveUserSessions(int64_t value)
bool ActualUserSessionsHasBeenSet() const
int64_t GetDraining() const
void SetDesired(int64_t value)
int64_t GetDesiredUserSessions() const
void SetActiveUserSessions(int64_t value)