AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Capacity.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/workspaces/WorkSpaces_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace WorkSpaces {
17namespace Model {
18
25class Capacity {
26 public:
27 AWS_WORKSPACES_API Capacity() = default;
28 AWS_WORKSPACES_API Capacity(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_WORKSPACES_API Capacity& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
30 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
31
33
36 inline int64_t GetDesiredUserSessions() const { return m_desiredUserSessions; }
37 inline bool DesiredUserSessionsHasBeenSet() const { return m_desiredUserSessionsHasBeenSet; }
38 inline void SetDesiredUserSessions(int64_t value) {
39 m_desiredUserSessionsHasBeenSet = true;
40 m_desiredUserSessions = value;
41 }
42 inline Capacity& WithDesiredUserSessions(int64_t value) {
44 return *this;
45 }
47 private:
48 int64_t m_desiredUserSessions{0};
49 bool m_desiredUserSessionsHasBeenSet = false;
50};
51
52} // namespace Model
53} // namespace WorkSpaces
54} // namespace Aws
Capacity & WithDesiredUserSessions(int64_t value)
Definition Capacity.h:42
int64_t GetDesiredUserSessions() const
Definition Capacity.h:36
AWS_WORKSPACES_API Capacity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API Capacity()=default
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API Capacity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool DesiredUserSessionsHasBeenSet() const
Definition Capacity.h:37
void SetDesiredUserSessions(int64_t value)
Definition Capacity.h:38