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/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/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 AutoScaling
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_AUTOSCALING_API MetricDataQuery();
43 AWS_AUTOSCALING_API MetricDataQuery(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_AUTOSCALING_API MetricDataQuery& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
59 inline const Aws::String& GetId() const{ return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 inline MetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
65 inline MetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
66 inline MetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
68
70
78 inline const Aws::String& GetExpression() const{ return m_expression; }
79 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
80 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
81 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
82 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
83 inline MetricDataQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
84 inline MetricDataQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
85 inline MetricDataQuery& WithExpression(const char* value) { SetExpression(value); return *this;}
87
89
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
108 inline const Aws::String& GetLabel() const{ return m_label; }
109 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
110 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
111 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
112 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
113 inline MetricDataQuery& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
114 inline MetricDataQuery& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
115 inline MetricDataQuery& WithLabel(const char* value) { SetLabel(value); return *this;}
117
119
129 inline bool GetReturnData() const{ return m_returnData; }
130 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
131 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
132 inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
134 private:
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_expression;
140 bool m_expressionHasBeenSet = false;
141
142 MetricStat m_metricStat;
143 bool m_metricStatHasBeenSet = false;
144
145 Aws::String m_label;
146 bool m_labelHasBeenSet = false;
147
148 bool m_returnData;
149 bool m_returnDataHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace AutoScaling
154} // namespace Aws
MetricDataQuery & WithMetricStat(const MetricStat &value)
MetricDataQuery & WithId(const Aws::String &value)
MetricDataQuery & WithMetricStat(MetricStat &&value)
const Aws::String & GetExpression() const
MetricDataQuery & WithReturnData(bool value)
void SetExpression(Aws::String &&value)
void SetExpression(const Aws::String &value)
void SetLabel(const Aws::String &value)
MetricDataQuery & WithExpression(const Aws::String &value)
MetricDataQuery & WithId(const char *value)
MetricDataQuery & WithLabel(const char *value)
AWS_AUTOSCALING_API MetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API MetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricDataQuery & WithLabel(Aws::String &&value)
MetricDataQuery & WithExpression(const char *value)
MetricDataQuery & WithLabel(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMetricStat(const MetricStat &value)
MetricDataQuery & WithId(Aws::String &&value)
void SetId(const Aws::String &value)
MetricDataQuery & WithExpression(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const MetricStat & GetMetricStat() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream