AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetTrackingMetricDataQuery.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/TargetTrackingMetricStat.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
37 {
38 public:
39 AWS_AUTOSCALING_API TargetTrackingMetricDataQuery();
40 AWS_AUTOSCALING_API TargetTrackingMetricDataQuery(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 inline TargetTrackingMetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline TargetTrackingMetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline TargetTrackingMetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
65
67
75 inline const Aws::String& GetExpression() const{ return m_expression; }
76 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
77 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
78 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
79 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
80 inline TargetTrackingMetricDataQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
81 inline TargetTrackingMetricDataQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
82 inline TargetTrackingMetricDataQuery& WithExpression(const char* value) { SetExpression(value); return *this;}
84
86
91 inline const TargetTrackingMetricStat& GetMetricStat() const{ return m_metricStat; }
92 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
93 inline void SetMetricStat(const TargetTrackingMetricStat& value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
94 inline void SetMetricStat(TargetTrackingMetricStat&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::move(value); }
96 inline TargetTrackingMetricDataQuery& WithMetricStat(TargetTrackingMetricStat&& value) { SetMetricStat(std::move(value)); return *this;}
98
100
105 inline const Aws::String& GetLabel() const{ return m_label; }
106 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
107 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
108 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
109 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
110 inline TargetTrackingMetricDataQuery& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
111 inline TargetTrackingMetricDataQuery& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
112 inline TargetTrackingMetricDataQuery& WithLabel(const char* value) { SetLabel(value); return *this;}
114
116
126 inline bool GetReturnData() const{ return m_returnData; }
127 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
128 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
129 inline TargetTrackingMetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
131 private:
132
133 Aws::String m_id;
134 bool m_idHasBeenSet = false;
135
136 Aws::String m_expression;
137 bool m_expressionHasBeenSet = false;
138
139 TargetTrackingMetricStat m_metricStat;
140 bool m_metricStatHasBeenSet = false;
141
142 Aws::String m_label;
143 bool m_labelHasBeenSet = false;
144
145 bool m_returnData;
146 bool m_returnDataHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace AutoScaling
151} // namespace Aws
TargetTrackingMetricDataQuery & WithId(const Aws::String &value)
TargetTrackingMetricDataQuery & WithExpression(const Aws::String &value)
AWS_AUTOSCALING_API TargetTrackingMetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetTrackingMetricDataQuery & WithId(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetTrackingMetricDataQuery & WithExpression(const char *value)
TargetTrackingMetricDataQuery & WithLabel(Aws::String &&value)
TargetTrackingMetricDataQuery & WithLabel(const Aws::String &value)
AWS_AUTOSCALING_API TargetTrackingMetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetTrackingMetricDataQuery & WithExpression(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetTrackingMetricDataQuery & WithLabel(const char *value)
TargetTrackingMetricDataQuery & WithMetricStat(TargetTrackingMetricStat &&value)
TargetTrackingMetricDataQuery & WithId(const char *value)
TargetTrackingMetricDataQuery & WithMetricStat(const TargetTrackingMetricStat &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream