AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricDataQuery.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/monitoring/model/MetricStat.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudWatch
23{
24namespace Model
25{
26
57 {
58 public:
59 AWS_CLOUDWATCH_API MetricDataQuery() = default;
60 AWS_CLOUDWATCH_API MetricDataQuery(const Aws::Utils::Xml::XmlNode& xmlNode);
61 AWS_CLOUDWATCH_API MetricDataQuery& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
62
63 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
64 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
65
66
68
76 inline const Aws::String& GetId() const { return m_id; }
77 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
78 template<typename IdT = Aws::String>
79 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
80 template<typename IdT = Aws::String>
81 MetricDataQuery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
83
85
92 inline const MetricStat& GetMetricStat() const { return m_metricStat; }
93 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
94 template<typename MetricStatT = MetricStat>
95 void SetMetricStat(MetricStatT&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::forward<MetricStatT>(value); }
96 template<typename MetricStatT = MetricStat>
97 MetricDataQuery& WithMetricStat(MetricStatT&& value) { SetMetricStat(std::forward<MetricStatT>(value)); return *this;}
99
101
116 inline const Aws::String& GetExpression() const { return m_expression; }
117 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
118 template<typename ExpressionT = Aws::String>
119 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
120 template<typename ExpressionT = Aws::String>
121 MetricDataQuery& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
123
125
135 inline const Aws::String& GetLabel() const { return m_label; }
136 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
137 template<typename LabelT = Aws::String>
138 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
139 template<typename LabelT = Aws::String>
140 MetricDataQuery& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
142
144
154 inline bool GetReturnData() const { return m_returnData; }
155 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
156 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
157 inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
159
161
170 inline int GetPeriod() const { return m_period; }
171 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
172 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
173 inline MetricDataQuery& WithPeriod(int value) { SetPeriod(value); return *this;}
175
177
184 inline const Aws::String& GetAccountId() const { return m_accountId; }
185 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
186 template<typename AccountIdT = Aws::String>
187 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
188 template<typename AccountIdT = Aws::String>
189 MetricDataQuery& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
191 private:
192
193 Aws::String m_id;
194 bool m_idHasBeenSet = false;
195
196 MetricStat m_metricStat;
197 bool m_metricStatHasBeenSet = false;
198
199 Aws::String m_expression;
200 bool m_expressionHasBeenSet = false;
201
202 Aws::String m_label;
203 bool m_labelHasBeenSet = false;
204
205 bool m_returnData{false};
206 bool m_returnDataHasBeenSet = false;
207
208 int m_period{0};
209 bool m_periodHasBeenSet = false;
210
211 Aws::String m_accountId;
212 bool m_accountIdHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace CloudWatch
217} // namespace Aws
const Aws::String & GetLabel() const
const MetricStat & GetMetricStat() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MetricDataQuery & WithAccountId(AccountIdT &&value)
const Aws::String & GetExpression() const
void SetExpression(ExpressionT &&value)
const Aws::String & GetAccountId() const
AWS_CLOUDWATCH_API MetricDataQuery()=default
MetricDataQuery & WithMetricStat(MetricStatT &&value)
MetricDataQuery & WithExpression(ExpressionT &&value)
void SetMetricStat(MetricStatT &&value)
const Aws::String & GetId() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricDataQuery & WithReturnData(bool value)
AWS_CLOUDWATCH_API MetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API MetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricDataQuery & WithPeriod(int value)
MetricDataQuery & WithId(IdT &&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