AWS SDK for C++

AWS SDK for C++ Version 1.11.814

Loading...
Searching...
No Matches
ManagedCapacityConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/ZeroCapacityStrategy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
43 public:
44 AWS_GAMELIFT_API ManagedCapacityConfiguration() = default;
45 AWS_GAMELIFT_API ManagedCapacityConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
46 AWS_GAMELIFT_API ManagedCapacityConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
47 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
48
50
63 inline ZeroCapacityStrategy GetZeroCapacityStrategy() const { return m_zeroCapacityStrategy; }
64 inline bool ZeroCapacityStrategyHasBeenSet() const { return m_zeroCapacityStrategyHasBeenSet; }
66 m_zeroCapacityStrategyHasBeenSet = true;
67 m_zeroCapacityStrategy = value;
68 }
71 return *this;
72 }
74
76
81 inline int64_t GetScaleInAfterInactivityMinutes() const { return m_scaleInAfterInactivityMinutes; }
82 inline bool ScaleInAfterInactivityMinutesHasBeenSet() const { return m_scaleInAfterInactivityMinutesHasBeenSet; }
83 inline void SetScaleInAfterInactivityMinutes(int64_t value) {
84 m_scaleInAfterInactivityMinutesHasBeenSet = true;
85 m_scaleInAfterInactivityMinutes = value;
86 }
89 return *this;
90 }
92 private:
94
95 int64_t m_scaleInAfterInactivityMinutes{0};
96 bool m_zeroCapacityStrategyHasBeenSet = false;
97 bool m_scaleInAfterInactivityMinutesHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace GameLift
102} // namespace Aws
ManagedCapacityConfiguration & WithZeroCapacityStrategy(ZeroCapacityStrategy value)
ManagedCapacityConfiguration & WithScaleInAfterInactivityMinutes(int64_t value)
AWS_GAMELIFT_API ManagedCapacityConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API ManagedCapacityConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API ManagedCapacityConfiguration()=default