AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
MetricDataQuery.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/MetricStat.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
36 public:
37 AWS_AUTOSCALING_API MetricDataQuery() = default;
38 AWS_AUTOSCALING_API MetricDataQuery(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_AUTOSCALING_API MetricDataQuery& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
61 MetricDataQuery& WithId(IdT&& value) {
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
76 inline const Aws::String& GetExpression() const { return m_expression; }
77 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
78 template <typename ExpressionT = Aws::String>
79 void SetExpression(ExpressionT&& value) {
80 m_expressionHasBeenSet = true;
81 m_expression = std::forward<ExpressionT>(value);
82 }
83 template <typename ExpressionT = Aws::String>
84 MetricDataQuery& WithExpression(ExpressionT&& value) {
85 SetExpression(std::forward<ExpressionT>(value));
86 return *this;
87 }
89
91
96 inline const MetricStat& GetMetricStat() const { return m_metricStat; }
97 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
98 template <typename MetricStatT = MetricStat>
99 void SetMetricStat(MetricStatT&& value) {
100 m_metricStatHasBeenSet = true;
101 m_metricStat = std::forward<MetricStatT>(value);
102 }
103 template <typename MetricStatT = MetricStat>
104 MetricDataQuery& WithMetricStat(MetricStatT&& value) {
105 SetMetricStat(std::forward<MetricStatT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetLabel() const { return m_label; }
117 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
118 template <typename LabelT = Aws::String>
119 void SetLabel(LabelT&& value) {
120 m_labelHasBeenSet = true;
121 m_label = std::forward<LabelT>(value);
122 }
123 template <typename LabelT = Aws::String>
124 MetricDataQuery& WithLabel(LabelT&& value) {
125 SetLabel(std::forward<LabelT>(value));
126 return *this;
127 }
129
131
141 inline bool GetReturnData() const { return m_returnData; }
142 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
143 inline void SetReturnData(bool value) {
144 m_returnDataHasBeenSet = true;
145 m_returnData = value;
146 }
147 inline MetricDataQuery& WithReturnData(bool value) {
148 SetReturnData(value);
149 return *this;
150 }
152 private:
153 Aws::String m_id;
154
155 Aws::String m_expression;
156
157 MetricStat m_metricStat;
158
159 Aws::String m_label;
160
161 bool m_returnData{false};
162 bool m_idHasBeenSet = false;
163 bool m_expressionHasBeenSet = false;
164 bool m_metricStatHasBeenSet = false;
165 bool m_labelHasBeenSet = false;
166 bool m_returnDataHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace AutoScaling
171} // namespace Aws
MetricDataQuery & WithId(IdT &&value)
void SetMetricStat(MetricStatT &&value)
AWS_AUTOSCALING_API MetricDataQuery()=default
void SetExpression(ExpressionT &&value)
const Aws::String & GetExpression() const
MetricDataQuery & WithReturnData(bool value)
MetricDataQuery & WithMetricStat(MetricStatT &&value)
AWS_AUTOSCALING_API MetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API MetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const MetricStat & GetMetricStat() const
MetricDataQuery & WithExpression(ExpressionT &&value)
MetricDataQuery & WithLabel(LabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream