AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomizedMetricSpecification.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/autoscaling/model/MetricStatistic.h>
12#include <aws/autoscaling/model/MetricDimension.h>
13#include <aws/autoscaling/model/TargetTrackingMetricDataQuery.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace AutoScaling
26{
27namespace Model
28{
29
55 {
56 public:
57 AWS_AUTOSCALING_API CustomizedMetricSpecification();
58 AWS_AUTOSCALING_API CustomizedMetricSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
60
61 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
62 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
63
64
66
73 inline const Aws::String& GetMetricName() const{ return m_metricName; }
74 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
75 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
76 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
77 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
78 inline CustomizedMetricSpecification& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
79 inline CustomizedMetricSpecification& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
80 inline CustomizedMetricSpecification& WithMetricName(const char* value) { SetMetricName(value); return *this;}
82
84
87 inline const Aws::String& GetNamespace() const{ return m_namespace; }
88 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
89 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
90 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
91 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
92 inline CustomizedMetricSpecification& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
93 inline CustomizedMetricSpecification& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
94 inline CustomizedMetricSpecification& WithNamespace(const char* value) { SetNamespace(value); return *this;}
96
98
103 inline const Aws::Vector<MetricDimension>& GetDimensions() const{ return m_dimensions; }
104 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
105 inline void SetDimensions(const Aws::Vector<MetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
106 inline void SetDimensions(Aws::Vector<MetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
109 inline CustomizedMetricSpecification& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
110 inline CustomizedMetricSpecification& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
112
114
117 inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
118 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
119 inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
120 inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
121 inline CustomizedMetricSpecification& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
122 inline CustomizedMetricSpecification& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
124
126
132 inline const Aws::String& GetUnit() const{ return m_unit; }
133 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
134 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
135 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
136 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
137 inline CustomizedMetricSpecification& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
138 inline CustomizedMetricSpecification& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
139 inline CustomizedMetricSpecification& WithUnit(const char* value) { SetUnit(value); return *this;}
141
143
147 inline const Aws::Vector<TargetTrackingMetricDataQuery>& GetMetrics() const{ return m_metrics; }
148 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
149 inline void SetMetrics(const Aws::Vector<TargetTrackingMetricDataQuery>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
150 inline void SetMetrics(Aws::Vector<TargetTrackingMetricDataQuery>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
153 inline CustomizedMetricSpecification& AddMetrics(const TargetTrackingMetricDataQuery& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
154 inline CustomizedMetricSpecification& AddMetrics(TargetTrackingMetricDataQuery&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
156 private:
157
158 Aws::String m_metricName;
159 bool m_metricNameHasBeenSet = false;
160
161 Aws::String m_namespace;
162 bool m_namespaceHasBeenSet = false;
163
164 Aws::Vector<MetricDimension> m_dimensions;
165 bool m_dimensionsHasBeenSet = false;
166
167 MetricStatistic m_statistic;
168 bool m_statisticHasBeenSet = false;
169
170 Aws::String m_unit;
171 bool m_unitHasBeenSet = false;
172
174 bool m_metricsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace AutoScaling
179} // namespace Aws
CustomizedMetricSpecification & WithUnit(const char *value)
const Aws::Vector< MetricDimension > & GetDimensions() const
const Aws::Vector< TargetTrackingMetricDataQuery > & GetMetrics() const
CustomizedMetricSpecification & WithMetrics(const Aws::Vector< TargetTrackingMetricDataQuery > &value)
CustomizedMetricSpecification & AddDimensions(MetricDimension &&value)
CustomizedMetricSpecification & WithStatistic(MetricStatistic &&value)
CustomizedMetricSpecification & WithNamespace(Aws::String &&value)
CustomizedMetricSpecification & AddDimensions(const MetricDimension &value)
CustomizedMetricSpecification & WithUnit(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CustomizedMetricSpecification & WithNamespace(const char *value)
CustomizedMetricSpecification & WithDimensions(const Aws::Vector< MetricDimension > &value)
CustomizedMetricSpecification & WithMetrics(Aws::Vector< TargetTrackingMetricDataQuery > &&value)
void SetDimensions(const Aws::Vector< MetricDimension > &value)
AWS_AUTOSCALING_API CustomizedMetricSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMetrics(const Aws::Vector< TargetTrackingMetricDataQuery > &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CustomizedMetricSpecification & WithMetricName(Aws::String &&value)
CustomizedMetricSpecification & WithMetricName(const char *value)
CustomizedMetricSpecification & AddMetrics(const TargetTrackingMetricDataQuery &value)
CustomizedMetricSpecification & WithStatistic(const MetricStatistic &value)
AWS_AUTOSCALING_API CustomizedMetricSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMetrics(Aws::Vector< TargetTrackingMetricDataQuery > &&value)
CustomizedMetricSpecification & WithUnit(const Aws::String &value)
CustomizedMetricSpecification & WithDimensions(Aws::Vector< MetricDimension > &&value)
CustomizedMetricSpecification & WithNamespace(const Aws::String &value)
CustomizedMetricSpecification & AddMetrics(TargetTrackingMetricDataQuery &&value)
CustomizedMetricSpecification & WithMetricName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream