AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ComputeCapacity.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 ComputeCapacity() = default;
27 AWS_APPSTREAM_API ComputeCapacity(Aws::Utils::Json::JsonView jsonValue);
29 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetDesiredInstances() const { return m_desiredInstances; }
36 inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
37 inline void SetDesiredInstances(int value) {
38 m_desiredInstancesHasBeenSet = true;
39 m_desiredInstances = value;
40 }
43 return *this;
44 }
46
48
55 inline int GetDesiredSessions() const { return m_desiredSessions; }
56 inline bool DesiredSessionsHasBeenSet() const { return m_desiredSessionsHasBeenSet; }
57 inline void SetDesiredSessions(int value) {
58 m_desiredSessionsHasBeenSet = true;
59 m_desiredSessions = value;
60 }
62 SetDesiredSessions(value);
63 return *this;
64 }
66 private:
67 int m_desiredInstances{0};
68
69 int m_desiredSessions{0};
70 bool m_desiredInstancesHasBeenSet = false;
71 bool m_desiredSessionsHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace AppStream
76} // namespace Aws
ComputeCapacity & WithDesiredInstances(int value)
AWS_APPSTREAM_API ComputeCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API ComputeCapacity()=default
ComputeCapacity & WithDesiredSessions(int value)
AWS_APPSTREAM_API ComputeCapacity(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue