AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityStatus.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_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 WorkSpaces
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_WORKSPACES_API CapacityStatus();
34 AWS_WORKSPACES_API CapacityStatus(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKSPACES_API CapacityStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline int GetAvailableUserSessions() const{ return m_availableUserSessions; }
45 inline bool AvailableUserSessionsHasBeenSet() const { return m_availableUserSessionsHasBeenSet; }
46 inline void SetAvailableUserSessions(int value) { m_availableUserSessionsHasBeenSet = true; m_availableUserSessions = value; }
47 inline CapacityStatus& WithAvailableUserSessions(int value) { SetAvailableUserSessions(value); return *this;}
49
51
56 inline int GetDesiredUserSessions() const{ return m_desiredUserSessions; }
57 inline bool DesiredUserSessionsHasBeenSet() const { return m_desiredUserSessionsHasBeenSet; }
58 inline void SetDesiredUserSessions(int value) { m_desiredUserSessionsHasBeenSet = true; m_desiredUserSessions = value; }
59 inline CapacityStatus& WithDesiredUserSessions(int value) { SetDesiredUserSessions(value); return *this;}
61
63
68 inline int GetActualUserSessions() const{ return m_actualUserSessions; }
69 inline bool ActualUserSessionsHasBeenSet() const { return m_actualUserSessionsHasBeenSet; }
70 inline void SetActualUserSessions(int value) { m_actualUserSessionsHasBeenSet = true; m_actualUserSessions = value; }
71 inline CapacityStatus& WithActualUserSessions(int value) { SetActualUserSessions(value); return *this;}
73
75
78 inline int GetActiveUserSessions() const{ return m_activeUserSessions; }
79 inline bool ActiveUserSessionsHasBeenSet() const { return m_activeUserSessionsHasBeenSet; }
80 inline void SetActiveUserSessions(int value) { m_activeUserSessionsHasBeenSet = true; m_activeUserSessions = value; }
81 inline CapacityStatus& WithActiveUserSessions(int value) { SetActiveUserSessions(value); return *this;}
83 private:
84
85 int m_availableUserSessions;
86 bool m_availableUserSessionsHasBeenSet = false;
87
88 int m_desiredUserSessions;
89 bool m_desiredUserSessionsHasBeenSet = false;
90
91 int m_actualUserSessions;
92 bool m_actualUserSessionsHasBeenSet = false;
93
94 int m_activeUserSessions;
95 bool m_activeUserSessionsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace WorkSpaces
100} // namespace Aws
CapacityStatus & WithAvailableUserSessions(int value)
CapacityStatus & WithDesiredUserSessions(int value)
CapacityStatus & WithActualUserSessions(int value)
AWS_WORKSPACES_API CapacityStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API CapacityStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityStatus & WithActiveUserSessions(int value)
Aws::Utils::Json::JsonValue JsonValue