AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComputeCapacityStatus.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppStream
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_APPSTREAM_API ComputeCapacityStatus();
35 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline int GetDesired() const{ return m_desired; }
43 inline bool DesiredHasBeenSet() const { return m_desiredHasBeenSet; }
44 inline void SetDesired(int value) { m_desiredHasBeenSet = true; m_desired = value; }
45 inline ComputeCapacityStatus& WithDesired(int value) { SetDesired(value); return *this;}
47
49
52 inline int GetRunning() const{ return m_running; }
53 inline bool RunningHasBeenSet() const { return m_runningHasBeenSet; }
54 inline void SetRunning(int value) { m_runningHasBeenSet = true; m_running = value; }
55 inline ComputeCapacityStatus& WithRunning(int value) { SetRunning(value); return *this;}
57
59
62 inline int GetInUse() const{ return m_inUse; }
63 inline bool InUseHasBeenSet() const { return m_inUseHasBeenSet; }
64 inline void SetInUse(int value) { m_inUseHasBeenSet = true; m_inUse = value; }
65 inline ComputeCapacityStatus& WithInUse(int value) { SetInUse(value); return *this;}
67
69
73 inline int GetAvailable() const{ return m_available; }
74 inline bool AvailableHasBeenSet() const { return m_availableHasBeenSet; }
75 inline void SetAvailable(int value) { m_availableHasBeenSet = true; m_available = value; }
76 inline ComputeCapacityStatus& WithAvailable(int value) { SetAvailable(value); return *this;}
78
80
87 inline int GetDesiredUserSessions() const{ return m_desiredUserSessions; }
88 inline bool DesiredUserSessionsHasBeenSet() const { return m_desiredUserSessionsHasBeenSet; }
89 inline void SetDesiredUserSessions(int value) { m_desiredUserSessionsHasBeenSet = true; m_desiredUserSessions = value; }
90 inline ComputeCapacityStatus& WithDesiredUserSessions(int value) { SetDesiredUserSessions(value); return *this;}
92
94
99 inline int GetAvailableUserSessions() const{ return m_availableUserSessions; }
100 inline bool AvailableUserSessionsHasBeenSet() const { return m_availableUserSessionsHasBeenSet; }
101 inline void SetAvailableUserSessions(int value) { m_availableUserSessionsHasBeenSet = true; m_availableUserSessions = value; }
104
106
110 inline int GetActiveUserSessions() const{ return m_activeUserSessions; }
111 inline bool ActiveUserSessionsHasBeenSet() const { return m_activeUserSessionsHasBeenSet; }
112 inline void SetActiveUserSessions(int value) { m_activeUserSessionsHasBeenSet = true; m_activeUserSessions = value; }
113 inline ComputeCapacityStatus& WithActiveUserSessions(int value) { SetActiveUserSessions(value); return *this;}
115
117
123 inline int GetActualUserSessions() const{ return m_actualUserSessions; }
124 inline bool ActualUserSessionsHasBeenSet() const { return m_actualUserSessionsHasBeenSet; }
125 inline void SetActualUserSessions(int value) { m_actualUserSessionsHasBeenSet = true; m_actualUserSessions = value; }
126 inline ComputeCapacityStatus& WithActualUserSessions(int value) { SetActualUserSessions(value); return *this;}
128 private:
129
130 int m_desired;
131 bool m_desiredHasBeenSet = false;
132
133 int m_running;
134 bool m_runningHasBeenSet = false;
135
136 int m_inUse;
137 bool m_inUseHasBeenSet = false;
138
139 int m_available;
140 bool m_availableHasBeenSet = false;
141
142 int m_desiredUserSessions;
143 bool m_desiredUserSessionsHasBeenSet = false;
144
145 int m_availableUserSessions;
146 bool m_availableUserSessionsHasBeenSet = false;
147
148 int m_activeUserSessions;
149 bool m_activeUserSessionsHasBeenSet = false;
150
151 int m_actualUserSessions;
152 bool m_actualUserSessionsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace AppStream
157} // 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)
ComputeCapacityStatus & WithAvailableUserSessions(int value)
ComputeCapacityStatus & WithActualUserSessions(int value)
AWS_APPSTREAM_API ComputeCapacityStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue