AWS SDK for C++  1.9.132
AWS SDK for C++
MetricDataQuery.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudWatch
23 {
24 namespace Model
25 {
26 
57  {
58  public:
62 
63  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
64  void OutputToStream(Aws::OStream& oStream, const char* location) const;
65 
66 
75  inline const Aws::String& GetId() const{ return m_id; }
76 
85  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 
95  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
96 
105  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
106 
115  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
116 
125  inline MetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
126 
135  inline MetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
136 
145  inline MetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
146 
147 
155  inline const MetricStat& GetMetricStat() const{ return m_metricStat; }
156 
164  inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
165 
173  inline void SetMetricStat(const MetricStat& value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
174 
182  inline void SetMetricStat(MetricStat&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::move(value); }
183 
191  inline MetricDataQuery& WithMetricStat(const MetricStat& value) { SetMetricStat(value); return *this;}
192 
200  inline MetricDataQuery& WithMetricStat(MetricStat&& value) { SetMetricStat(std::move(value)); return *this;}
201 
202 
214  inline const Aws::String& GetExpression() const{ return m_expression; }
215 
227  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
228 
240  inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
241 
253  inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
254 
266  inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
267 
279  inline MetricDataQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
280 
292  inline MetricDataQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
293 
305  inline MetricDataQuery& WithExpression(const char* value) { SetExpression(value); return *this;}
306 
307 
318  inline const Aws::String& GetLabel() const{ return m_label; }
319 
330  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
331 
342  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
343 
354  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
355 
366  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
367 
378  inline MetricDataQuery& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
379 
390  inline MetricDataQuery& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
391 
402  inline MetricDataQuery& WithLabel(const char* value) { SetLabel(value); return *this;}
403 
404 
415  inline bool GetReturnData() const{ return m_returnData; }
416 
427  inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
428 
439  inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
440 
451  inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
452 
453 
463  inline int GetPeriod() const{ return m_period; }
464 
474  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
475 
485  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
486 
496  inline MetricDataQuery& WithPeriod(int value) { SetPeriod(value); return *this;}
497 
498 
504  inline const Aws::String& GetAccountId() const{ return m_accountId; }
505 
511  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
512 
518  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
519 
525  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
526 
532  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
533 
539  inline MetricDataQuery& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
540 
546  inline MetricDataQuery& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
547 
553  inline MetricDataQuery& WithAccountId(const char* value) { SetAccountId(value); return *this;}
554 
555  private:
556 
557  Aws::String m_id;
558  bool m_idHasBeenSet;
559 
560  MetricStat m_metricStat;
561  bool m_metricStatHasBeenSet;
562 
563  Aws::String m_expression;
564  bool m_expressionHasBeenSet;
565 
566  Aws::String m_label;
567  bool m_labelHasBeenSet;
568 
569  bool m_returnData;
570  bool m_returnDataHasBeenSet;
571 
572  int m_period;
573  bool m_periodHasBeenSet;
574 
575  Aws::String m_accountId;
576  bool m_accountIdHasBeenSet;
577  };
578 
579 } // namespace Model
580 } // namespace CloudWatch
581 } // namespace Aws
Aws::CloudWatch::Model::MetricDataQuery::WithExpression
MetricDataQuery & WithExpression(const char *value)
Definition: MetricDataQuery.h:305
AWS_CLOUDWATCH_API
#define AWS_CLOUDWATCH_API
Definition: CloudWatch_EXPORTS.h:28
Aws::CloudWatch::Model::MetricDataQuery::SetAccountId
void SetAccountId(const char *value)
Definition: MetricDataQuery.h:532
Aws::CloudWatch::Model::MetricDataQuery::GetExpression
const Aws::String & GetExpression() const
Definition: MetricDataQuery.h:214
Aws::CloudWatch::Model::MetricDataQuery::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::CloudWatch::Model::MetricDataQuery::WithLabel
MetricDataQuery & WithLabel(const char *value)
Definition: MetricDataQuery.h:402
Aws::CloudWatch::Model::MetricDataQuery::SetExpression
void SetExpression(const char *value)
Definition: MetricDataQuery.h:266
Aws::CloudWatch::Model::MetricDataQuery::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: MetricDataQuery.h:511
Aws::CloudWatch::Model::MetricDataQuery::SetPeriod
void SetPeriod(int value)
Definition: MetricDataQuery.h:485
Aws::CloudWatch::Model::MetricDataQuery::WithPeriod
MetricDataQuery & WithPeriod(int value)
Definition: MetricDataQuery.h:496
Aws::CloudWatch::Model::MetricDataQuery::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: MetricDataQuery.h:525
Aws::CloudWatch::Model::MetricDataQuery::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: MetricDataQuery.h:474
Aws::CloudWatch::Model::MetricDataQuery::SetReturnData
void SetReturnData(bool value)
Definition: MetricDataQuery.h:439
AWSStreamFwd.h
Aws::CloudWatch::Model::MetricDataQuery::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: MetricDataQuery.h:518
Aws::CloudWatch::Model::MetricDataQuery
Definition: MetricDataQuery.h:57
Aws::CloudWatch::Model::MetricStat
Definition: MetricStat.h:35
Aws::CloudWatch::Model::MetricDataQuery::SetId
void SetId(const Aws::String &value)
Definition: MetricDataQuery.h:95
Aws::CloudWatch::Model::MetricDataQuery::MetricDataQuery
MetricDataQuery()
Aws::CloudWatch::Model::MetricDataQuery::SetExpression
void SetExpression(Aws::String &&value)
Definition: MetricDataQuery.h:253
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::CloudWatch::Model::MetricDataQuery::MetricDataQuery
MetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudWatch::Model::MetricDataQuery::SetMetricStat
void SetMetricStat(const MetricStat &value)
Definition: MetricDataQuery.h:173
Aws::CloudWatch::Model::MetricDataQuery::WithAccountId
MetricDataQuery & WithAccountId(const char *value)
Definition: MetricDataQuery.h:553
Aws::CloudWatch::Model::MetricDataQuery::ExpressionHasBeenSet
bool ExpressionHasBeenSet() const
Definition: MetricDataQuery.h:227
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudWatch::Model::MetricDataQuery::SetExpression
void SetExpression(const Aws::String &value)
Definition: MetricDataQuery.h:240
Aws::CloudWatch::Model::MetricDataQuery::WithId
MetricDataQuery & WithId(Aws::String &&value)
Definition: MetricDataQuery.h:135
Aws::CloudWatch::Model::MetricDataQuery::SetLabel
void SetLabel(const Aws::String &value)
Definition: MetricDataQuery.h:342
Aws::CloudWatch::Model::MetricDataQuery::IdHasBeenSet
bool IdHasBeenSet() const
Definition: MetricDataQuery.h:85
Aws::CloudWatch::Model::MetricDataQuery::SetMetricStat
void SetMetricStat(MetricStat &&value)
Definition: MetricDataQuery.h:182
Aws::CloudWatch::Model::MetricDataQuery::WithAccountId
MetricDataQuery & WithAccountId(const Aws::String &value)
Definition: MetricDataQuery.h:539
MetricStat.h
AWSString.h
Aws::CloudWatch::Model::MetricDataQuery::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: MetricDataQuery.h:330
Aws::CloudWatch::Model::MetricDataQuery::WithMetricStat
MetricDataQuery & WithMetricStat(const MetricStat &value)
Definition: MetricDataQuery.h:191
Aws::CloudWatch::Model::MetricDataQuery::GetPeriod
int GetPeriod() const
Definition: MetricDataQuery.h:463
Aws::CloudWatch::Model::MetricDataQuery::SetLabel
void SetLabel(const char *value)
Definition: MetricDataQuery.h:366
Aws::CloudWatch::Model::MetricDataQuery::SetLabel
void SetLabel(Aws::String &&value)
Definition: MetricDataQuery.h:354
Aws::CloudWatch::Model::MetricDataQuery::WithLabel
MetricDataQuery & WithLabel(Aws::String &&value)
Definition: MetricDataQuery.h:390
Aws::CloudWatch::Model::MetricDataQuery::operator=
MetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudWatch::Model::MetricDataQuery::WithAccountId
MetricDataQuery & WithAccountId(Aws::String &&value)
Definition: MetricDataQuery.h:546
Aws::CloudWatch::Model::MetricDataQuery::WithId
MetricDataQuery & WithId(const Aws::String &value)
Definition: MetricDataQuery.h:125
Aws::CloudWatch::Model::MetricDataQuery::WithExpression
MetricDataQuery & WithExpression(Aws::String &&value)
Definition: MetricDataQuery.h:292
CloudWatch_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatch::Model::MetricDataQuery::SetId
void SetId(Aws::String &&value)
Definition: MetricDataQuery.h:105
Aws::CloudWatch::Model::MetricDataQuery::SetId
void SetId(const char *value)
Definition: MetricDataQuery.h:115
Aws::CloudWatch::Model::MetricDataQuery::GetMetricStat
const MetricStat & GetMetricStat() const
Definition: MetricDataQuery.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatch::Model::MetricDataQuery::MetricStatHasBeenSet
bool MetricStatHasBeenSet() const
Definition: MetricDataQuery.h:164
index
int index
Definition: cJSON.h:181
Aws::CloudWatch::Model::MetricDataQuery::WithLabel
MetricDataQuery & WithLabel(const Aws::String &value)
Definition: MetricDataQuery.h:378
Aws::CloudWatch::Model::MetricDataQuery::GetReturnData
bool GetReturnData() const
Definition: MetricDataQuery.h:415
Aws::CloudWatch::Model::MetricDataQuery::ReturnDataHasBeenSet
bool ReturnDataHasBeenSet() const
Definition: MetricDataQuery.h:427
Aws::CloudWatch::Model::MetricDataQuery::GetId
const Aws::String & GetId() const
Definition: MetricDataQuery.h:75
Aws::CloudWatch::Model::MetricDataQuery::WithId
MetricDataQuery & WithId(const char *value)
Definition: MetricDataQuery.h:145
Aws::CloudWatch::Model::MetricDataQuery::WithReturnData
MetricDataQuery & WithReturnData(bool value)
Definition: MetricDataQuery.h:451
Aws::CloudWatch::Model::MetricDataQuery::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::CloudWatch::Model::MetricDataQuery::GetLabel
const Aws::String & GetLabel() const
Definition: MetricDataQuery.h:318
Aws::CloudWatch::Model::MetricDataQuery::WithMetricStat
MetricDataQuery & WithMetricStat(MetricStat &&value)
Definition: MetricDataQuery.h:200
Aws::CloudWatch::Model::MetricDataQuery::WithExpression
MetricDataQuery & WithExpression(const Aws::String &value)
Definition: MetricDataQuery.h:279
Aws::CloudWatch::Model::MetricDataQuery::GetAccountId
const Aws::String & GetAccountId() const
Definition: MetricDataQuery.h:504