AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ExpressGatewayScalingTarget.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ExpressGatewayServiceScalingMetric.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
35 public:
36 AWS_ECS_API ExpressGatewayScalingTarget() = default;
40
42
45 inline int GetMinTaskCount() const { return m_minTaskCount; }
46 inline bool MinTaskCountHasBeenSet() const { return m_minTaskCountHasBeenSet; }
47 inline void SetMinTaskCount(int value) {
48 m_minTaskCountHasBeenSet = true;
49 m_minTaskCount = value;
50 }
52 SetMinTaskCount(value);
53 return *this;
54 }
56
58
61 inline int GetMaxTaskCount() const { return m_maxTaskCount; }
62 inline bool MaxTaskCountHasBeenSet() const { return m_maxTaskCountHasBeenSet; }
63 inline void SetMaxTaskCount(int value) {
64 m_maxTaskCountHasBeenSet = true;
65 m_maxTaskCount = value;
66 }
68 SetMaxTaskCount(value);
69 return *this;
70 }
72
74
78 inline ExpressGatewayServiceScalingMetric GetAutoScalingMetric() const { return m_autoScalingMetric; }
79 inline bool AutoScalingMetricHasBeenSet() const { return m_autoScalingMetricHasBeenSet; }
81 m_autoScalingMetricHasBeenSet = true;
82 m_autoScalingMetric = value;
83 }
86 return *this;
87 }
89
91
95 inline int GetAutoScalingTargetValue() const { return m_autoScalingTargetValue; }
96 inline bool AutoScalingTargetValueHasBeenSet() const { return m_autoScalingTargetValueHasBeenSet; }
97 inline void SetAutoScalingTargetValue(int value) {
98 m_autoScalingTargetValueHasBeenSet = true;
99 m_autoScalingTargetValue = value;
100 }
103 return *this;
104 }
106 private:
107 int m_minTaskCount{0};
108
109 int m_maxTaskCount{0};
110
112
113 int m_autoScalingTargetValue{0};
114 bool m_minTaskCountHasBeenSet = false;
115 bool m_maxTaskCountHasBeenSet = false;
116 bool m_autoScalingMetricHasBeenSet = false;
117 bool m_autoScalingTargetValueHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ECS
122} // namespace Aws
ExpressGatewayScalingTarget & WithAutoScalingMetric(ExpressGatewayServiceScalingMetric value)
AWS_ECS_API ExpressGatewayScalingTarget(Aws::Utils::Json::JsonView jsonValue)
ExpressGatewayScalingTarget & WithMaxTaskCount(int value)
AWS_ECS_API ExpressGatewayScalingTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAutoScalingMetric(ExpressGatewayServiceScalingMetric value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ExpressGatewayScalingTarget & WithMinTaskCount(int value)
ExpressGatewayServiceScalingMetric GetAutoScalingMetric() const
AWS_ECS_API ExpressGatewayScalingTarget()=default
ExpressGatewayScalingTarget & WithAutoScalingTargetValue(int value)
Aws::Utils::Json::JsonValue JsonValue