AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeBuild
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODEBUILD_API TargetTrackingScalingConfiguration() = default;
38 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline FleetScalingMetricType GetMetricType() const { return m_metricType; }
46 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
47 inline void SetMetricType(FleetScalingMetricType value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
50
52
55 inline double GetTargetValue() const { return m_targetValue; }
56 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
57 inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
58 inline TargetTrackingScalingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}
60 private:
61
63 bool m_metricTypeHasBeenSet = false;
64
65 double m_targetValue{0.0};
66 bool m_targetValueHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace CodeBuild
71} // 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