AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TargetTrackingMetricDataQuery.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-autoscaling/model/TargetTrackingMetricStat.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationAutoScaling
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery() = default;
44 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
58 inline const Aws::String& GetExpression() const { return m_expression; }
59 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
60 template<typename ExpressionT = Aws::String>
61 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
62 template<typename ExpressionT = Aws::String>
63 TargetTrackingMetricDataQuery& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
65
67
75 inline const Aws::String& GetId() const { return m_id; }
76 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 template<typename IdT = Aws::String>
78 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
79 template<typename IdT = Aws::String>
80 TargetTrackingMetricDataQuery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
82
84
89 inline const Aws::String& GetLabel() const { return m_label; }
90 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
91 template<typename LabelT = Aws::String>
92 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
93 template<typename LabelT = Aws::String>
94 TargetTrackingMetricDataQuery& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
96
98
103 inline const TargetTrackingMetricStat& GetMetricStat() const { return m_metricStat; }
104 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
105 template<typename MetricStatT = TargetTrackingMetricStat>
106 void SetMetricStat(MetricStatT&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::forward<MetricStatT>(value); }
107 template<typename MetricStatT = TargetTrackingMetricStat>
108 TargetTrackingMetricDataQuery& WithMetricStat(MetricStatT&& value) { SetMetricStat(std::forward<MetricStatT>(value)); return *this;}
110
112
122 inline bool GetReturnData() const { return m_returnData; }
123 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
124 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
125 inline TargetTrackingMetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
127 private:
128
129 Aws::String m_expression;
130 bool m_expressionHasBeenSet = false;
131
132 Aws::String m_id;
133 bool m_idHasBeenSet = false;
134
135 Aws::String m_label;
136 bool m_labelHasBeenSet = false;
137
138 TargetTrackingMetricStat m_metricStat;
139 bool m_metricStatHasBeenSet = false;
140
141 bool m_returnData{false};
142 bool m_returnDataHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace ApplicationAutoScaling
147} // namespace Aws
TargetTrackingMetricDataQuery & WithExpression(ExpressionT &&value)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery()=default
TargetTrackingMetricDataQuery & WithMetricStat(MetricStatT &&value)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue