AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetTrackingScalingConfiguration.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/FleetScalingMetricType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeBuild {
20namespace Model {
21
29 public:
30 AWS_CODEBUILD_API TargetTrackingScalingConfiguration() = default;
33 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline FleetScalingMetricType GetMetricType() const { return m_metricType; }
40 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
42 m_metricTypeHasBeenSet = true;
43 m_metricType = value;
44 }
46 SetMetricType(value);
47 return *this;
48 }
50
52
55 inline double GetTargetValue() const { return m_targetValue; }
56 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
57 inline void SetTargetValue(double value) {
58 m_targetValueHasBeenSet = true;
59 m_targetValue = value;
60 }
62 SetTargetValue(value);
63 return *this;
64 }
66 private:
68
69 double m_targetValue{0.0};
70 bool m_metricTypeHasBeenSet = false;
71 bool m_targetValueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace CodeBuild
76} // namespace Aws
AWS_CODEBUILD_API TargetTrackingScalingConfiguration()=default
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API TargetTrackingScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
TargetTrackingScalingConfiguration & WithTargetValue(double value)
AWS_CODEBUILD_API TargetTrackingScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetTrackingScalingConfiguration & WithMetricType(FleetScalingMetricType value)
Aws::Utils::Json::JsonValue JsonValue