AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
61 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
62 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
63 inline TargetTrackingMetricDataQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
64 inline TargetTrackingMetricDataQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
65 inline TargetTrackingMetricDataQuery& WithExpression(const char* value) { SetExpression(value); return *this;}
67
69
77 inline const Aws::String& GetId() const{ return m_id; }
78 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
79 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
80 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
81 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
82 inline TargetTrackingMetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
83 inline TargetTrackingMetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
84 inline TargetTrackingMetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
86
88
93 inline const Aws::String& GetLabel() const{ return m_label; }
94 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
95 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
96 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
97 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
98 inline TargetTrackingMetricDataQuery& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
99 inline TargetTrackingMetricDataQuery& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
100 inline TargetTrackingMetricDataQuery& WithLabel(const char* value) { SetLabel(value); return *this;}
102
104
109 inline const TargetTrackingMetricStat& GetMetricStat() const{ return m_metricStat; }
110 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
111 inline void SetMetricStat(const TargetTrackingMetricStat& value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
112 inline void SetMetricStat(TargetTrackingMetricStat&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::move(value); }
114 inline TargetTrackingMetricDataQuery& WithMetricStat(TargetTrackingMetricStat&& value) { SetMetricStat(std::move(value)); return *this;}
116
118
128 inline bool GetReturnData() const{ return m_returnData; }
129 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
130 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
131 inline TargetTrackingMetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
133 private:
134
135 Aws::String m_expression;
136 bool m_expressionHasBeenSet = false;
137
138 Aws::String m_id;
139 bool m_idHasBeenSet = false;
140
141 Aws::String m_label;
142 bool m_labelHasBeenSet = false;
143
144 TargetTrackingMetricStat m_metricStat;
145 bool m_metricStatHasBeenSet = false;
146
147 bool m_returnData;
148 bool m_returnDataHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ApplicationAutoScaling
153} // namespace Aws
TargetTrackingMetricDataQuery & WithMetricStat(TargetTrackingMetricStat &&value)
TargetTrackingMetricDataQuery & WithId(const Aws::String &value)
TargetTrackingMetricDataQuery & WithExpression(const Aws::String &value)
TargetTrackingMetricDataQuery & WithMetricStat(const TargetTrackingMetricStat &value)
TargetTrackingMetricDataQuery & WithLabel(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
TargetTrackingMetricDataQuery & WithExpression(Aws::String &&value)
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