AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
ComputeCapacity.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/crt/cbor/Cbor.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace AppStream {
17namespace Model {
18
25 public:
26 AWS_APPSTREAM_API ComputeCapacity() = default;
27 AWS_APPSTREAM_API ComputeCapacity(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
28 AWS_APPSTREAM_API ComputeCapacity& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
30
32
35 inline int64_t GetDesiredInstances() const { return m_desiredInstances; }
36 inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
37 inline void SetDesiredInstances(int64_t value) {
38 m_desiredInstancesHasBeenSet = true;
39 m_desiredInstances = value;
40 }
41 inline ComputeCapacity& WithDesiredInstances(int64_t value) {
43 return *this;
44 }
46
48
55 inline int64_t GetDesiredSessions() const { return m_desiredSessions; }
56 inline bool DesiredSessionsHasBeenSet() const { return m_desiredSessionsHasBeenSet; }
57 inline void SetDesiredSessions(int64_t value) {
58 m_desiredSessionsHasBeenSet = true;
59 m_desiredSessions = value;
60 }
61 inline ComputeCapacity& WithDesiredSessions(int64_t value) {
62 SetDesiredSessions(value);
63 return *this;
64 }
66 private:
67 int64_t m_desiredInstances{0};
68
69 int64_t 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 & WithDesiredSessions(int64_t value)
AWS_APPSTREAM_API ComputeCapacity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_APPSTREAM_API ComputeCapacity()=default
ComputeCapacity & WithDesiredInstances(int64_t value)
AWS_APPSTREAM_API ComputeCapacity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const