AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
79 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
80 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
81 inline MetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
82 inline MetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 inline MetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
85
87
94 inline const MetricStat& GetMetricStat() const{ return m_metricStat; }
95 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
96 inline void SetMetricStat(const MetricStat& value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
97 inline void SetMetricStat(MetricStat&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::move(value); }
98 inline MetricDataQuery& WithMetricStat(const MetricStat& value) { SetMetricStat(value); return *this;}
99 inline MetricDataQuery& WithMetricStat(MetricStat&& value) { SetMetricStat(std::move(value)); return *this;}
101
103
118 inline const Aws::String& GetExpression() const{ return m_expression; }
119 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
120 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
121 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
122 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
123 inline MetricDataQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
124 inline MetricDataQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
125 inline MetricDataQuery& WithExpression(const char* value) { SetExpression(value); return *this;}
127
129
139 inline const Aws::String& GetLabel() const{ return m_label; }
140 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
141 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
142 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
143 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
144 inline MetricDataQuery& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
145 inline MetricDataQuery& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
146 inline MetricDataQuery& WithLabel(const char* value) { SetLabel(value); return *this;}
148
150
160 inline bool GetReturnData() const{ return m_returnData; }
161 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
162 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
163 inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
165
167
176 inline int GetPeriod() const{ return m_period; }
177 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
178 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
179 inline MetricDataQuery& WithPeriod(int value) { SetPeriod(value); return *this;}
181
183
190 inline const Aws::String& GetAccountId() const{ return m_accountId; }
191 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
192 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
193 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
194 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
195 inline MetricDataQuery& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
196 inline MetricDataQuery& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
197 inline MetricDataQuery& WithAccountId(const char* value) { SetAccountId(value); return *this;}
199 private:
200
201 Aws::String m_id;
202 bool m_idHasBeenSet = false;
203
204 MetricStat m_metricStat;
205 bool m_metricStatHasBeenSet = false;
206
207 Aws::String m_expression;
208 bool m_expressionHasBeenSet = false;
209
210 Aws::String m_label;
211 bool m_labelHasBeenSet = false;
212
213 bool m_returnData;
214 bool m_returnDataHasBeenSet = false;
215
216 int m_period;
217 bool m_periodHasBeenSet = false;
218
219 Aws::String m_accountId;
220 bool m_accountIdHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace CloudWatch
225} // namespace Aws
const Aws::String & GetLabel() const
MetricDataQuery & WithLabel(const Aws::String &value)
MetricDataQuery & WithMetricStat(MetricStat &&value)
const MetricStat & GetMetricStat() const
void SetExpression(const Aws::String &value)
void SetMetricStat(const MetricStat &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetExpression(Aws::String &&value)
const Aws::String & GetExpression() const
MetricDataQuery & WithId(const char *value)
MetricDataQuery & WithAccountId(Aws::String &&value)
const Aws::String & GetAccountId() const
MetricDataQuery & WithAccountId(const Aws::String &value)
MetricDataQuery & WithExpression(Aws::String &&value)
void SetId(const Aws::String &value)
MetricDataQuery & WithExpression(const Aws::String &value)
MetricDataQuery & WithLabel(Aws::String &&value)
MetricDataQuery & WithLabel(const char *value)
const Aws::String & GetId() const
MetricDataQuery & WithId(const Aws::String &value)
MetricDataQuery & WithAccountId(const char *value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricDataQuery & WithReturnData(bool value)
MetricDataQuery & WithExpression(const char *value)
void SetAccountId(const Aws::String &value)
AWS_CLOUDWATCH_API MetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API MetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLabel(const Aws::String &value)
MetricDataQuery & WithPeriod(int value)
MetricDataQuery & WithMetricStat(const MetricStat &value)
MetricDataQuery & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream