AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TargetTrackingScalingPolicy.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/model/CapacityProviderPredefinedMetricType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
30 public:
31 AWS_LAMBDA_API TargetTrackingScalingPolicy() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline CapacityProviderPredefinedMetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
41 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
43 m_predefinedMetricTypeHasBeenSet = true;
44 m_predefinedMetricType = value;
45 }
48 return *this;
49 }
51
53
57 inline double GetTargetValue() const { return m_targetValue; }
58 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
59 inline void SetTargetValue(double value) {
60 m_targetValueHasBeenSet = true;
61 m_targetValue = value;
62 }
64 SetTargetValue(value);
65 return *this;
66 }
68 private:
70
71 double m_targetValue{0.0};
72 bool m_predefinedMetricTypeHasBeenSet = false;
73 bool m_targetValueHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Lambda
78} // namespace Aws
TargetTrackingScalingPolicy & WithPredefinedMetricType(CapacityProviderPredefinedMetricType value)
void SetPredefinedMetricType(CapacityProviderPredefinedMetricType value)
AWS_LAMBDA_API TargetTrackingScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetTrackingScalingPolicy & WithTargetValue(double value)
AWS_LAMBDA_API TargetTrackingScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityProviderPredefinedMetricType GetPredefinedMetricType() const
AWS_LAMBDA_API TargetTrackingScalingPolicy()=default
Aws::Utils::Json::JsonValue JsonValue