AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingMetricDataQuery.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/PredictiveScalingMetricStat.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
37 {
38 public:
39 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricDataQuery() = default;
40 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricDataQuery(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricDataQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetId() const { return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 template<typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
58 template<typename IdT = Aws::String>
59 PredictiveScalingMetricDataQuery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
61
63
71 inline const Aws::String& GetExpression() const { return m_expression; }
72 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
73 template<typename ExpressionT = Aws::String>
74 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
75 template<typename ExpressionT = Aws::String>
76 PredictiveScalingMetricDataQuery& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
78
80
85 inline const PredictiveScalingMetricStat& GetMetricStat() const { return m_metricStat; }
86 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
87 template<typename MetricStatT = PredictiveScalingMetricStat>
88 void SetMetricStat(MetricStatT&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::forward<MetricStatT>(value); }
89 template<typename MetricStatT = PredictiveScalingMetricStat>
90 PredictiveScalingMetricDataQuery& WithMetricStat(MetricStatT&& value) { SetMetricStat(std::forward<MetricStatT>(value)); return *this;}
92
94
99 inline const Aws::String& GetLabel() const { return m_label; }
100 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
101 template<typename LabelT = Aws::String>
102 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
103 template<typename LabelT = Aws::String>
104 PredictiveScalingMetricDataQuery& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
106
108
118 inline bool GetReturnData() const { return m_returnData; }
119 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
120 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
121 inline PredictiveScalingMetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
123 private:
124
125 Aws::String m_id;
126 bool m_idHasBeenSet = false;
127
128 Aws::String m_expression;
129 bool m_expressionHasBeenSet = false;
130
131 PredictiveScalingMetricStat m_metricStat;
132 bool m_metricStatHasBeenSet = false;
133
134 Aws::String m_label;
135 bool m_labelHasBeenSet = false;
136
137 bool m_returnData{false};
138 bool m_returnDataHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ApplicationAutoScaling
143} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricDataQuery()=default
PredictiveScalingMetricDataQuery & WithMetricStat(MetricStatT &&value)
PredictiveScalingMetricDataQuery & WithExpression(ExpressionT &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricDataQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue