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/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() = default;
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 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 MetricDataQuery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
80 template<typename ExpressionT = Aws::String>
81 MetricDataQuery& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
83
85
90 inline const MetricStat& GetMetricStat() const { return m_metricStat; }
91 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
92 template<typename MetricStatT = MetricStat>
93 void SetMetricStat(MetricStatT&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::forward<MetricStatT>(value); }
94 template<typename MetricStatT = MetricStat>
95 MetricDataQuery& WithMetricStat(MetricStatT&& value) { SetMetricStat(std::forward<MetricStatT>(value)); return *this;}
97
99
104 inline const Aws::String& GetLabel() const { return m_label; }
105 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
106 template<typename LabelT = Aws::String>
107 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
108 template<typename LabelT = Aws::String>
109 MetricDataQuery& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
111
113
123 inline bool GetReturnData() const { return m_returnData; }
124 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
125 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
126 inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
128 private:
129
130 Aws::String m_id;
131 bool m_idHasBeenSet = false;
132
133 Aws::String m_expression;
134 bool m_expressionHasBeenSet = false;
135
136 MetricStat m_metricStat;
137 bool m_metricStatHasBeenSet = false;
138
139 Aws::String m_label;
140 bool m_labelHasBeenSet = false;
141
142 bool m_returnData{false};
143 bool m_returnDataHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace AutoScaling
148} // 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