AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
38 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const FleetScalingMetricType& GetMetricType() const{ return m_metricType; }
46 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
47 inline void SetMetricType(const FleetScalingMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
48 inline void SetMetricType(FleetScalingMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
52
54
57 inline double GetTargetValue() const{ return m_targetValue; }
58 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
59 inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
60 inline TargetTrackingScalingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}
62 private:
63
64 FleetScalingMetricType m_metricType;
65 bool m_metricTypeHasBeenSet = false;
66
67 double m_targetValue;
68 bool m_targetValueHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace CodeBuild
73} // namespace Aws
TargetTrackingScalingConfiguration & WithMetricType(FleetScalingMetricType &&value)
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(const FleetScalingMetricType &value)
Aws::Utils::Json::JsonValue JsonValue