AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ManagedCapacityConfiguration.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/ZeroCapacityStrategy.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
43 public:
44 AWS_GAMELIFT_API ManagedCapacityConfiguration() = default;
47 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() 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 int GetScaleInAfterInactivityMinutes() const { return m_scaleInAfterInactivityMinutes; }
82 inline bool ScaleInAfterInactivityMinutesHasBeenSet() const { return m_scaleInAfterInactivityMinutesHasBeenSet; }
83 inline void SetScaleInAfterInactivityMinutes(int value) {
84 m_scaleInAfterInactivityMinutesHasBeenSet = true;
85 m_scaleInAfterInactivityMinutes = value;
86 }
89 return *this;
90 }
92 private:
94
95 int 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)
AWS_GAMELIFT_API ManagedCapacityConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ManagedCapacityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedCapacityConfiguration & WithScaleInAfterInactivityMinutes(int value)
AWS_GAMELIFT_API ManagedCapacityConfiguration()=default
Aws::Utils::Json::JsonValue JsonValue