AWS SDK for C++  1.9.106
AWS SDK for C++
CustomizedMetricSpecification.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace AutoScaling
25 {
26 namespace Model
27 {
28 
48  {
49  public:
53 
54  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
55  void OutputToStream(Aws::OStream& oStream, const char* location) const;
56 
57 
61  inline const Aws::String& GetMetricName() const{ return m_metricName; }
62 
66  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
67 
71  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
72 
76  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
77 
81  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
82 
86  inline CustomizedMetricSpecification& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
87 
91  inline CustomizedMetricSpecification& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
92 
96  inline CustomizedMetricSpecification& WithMetricName(const char* value) { SetMetricName(value); return *this;}
97 
98 
102  inline const Aws::String& GetNamespace() const{ return m_namespace; }
103 
107  inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
108 
112  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
113 
117  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
118 
122  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
123 
127  inline CustomizedMetricSpecification& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
128 
132  inline CustomizedMetricSpecification& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
133 
137  inline CustomizedMetricSpecification& WithNamespace(const char* value) { SetNamespace(value); return *this;}
138 
139 
145  inline const Aws::Vector<MetricDimension>& GetDimensions() const{ return m_dimensions; }
146 
152  inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
153 
159  inline void SetDimensions(const Aws::Vector<MetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
160 
166  inline void SetDimensions(Aws::Vector<MetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
167 
173  inline CustomizedMetricSpecification& WithDimensions(const Aws::Vector<MetricDimension>& value) { SetDimensions(value); return *this;}
174 
180  inline CustomizedMetricSpecification& WithDimensions(Aws::Vector<MetricDimension>&& value) { SetDimensions(std::move(value)); return *this;}
181 
187  inline CustomizedMetricSpecification& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
188 
194  inline CustomizedMetricSpecification& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
195 
196 
200  inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
201 
205  inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
206 
210  inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
211 
215  inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
216 
220  inline CustomizedMetricSpecification& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
221 
225  inline CustomizedMetricSpecification& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
226 
227 
231  inline const Aws::String& GetUnit() const{ return m_unit; }
232 
236  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
237 
241  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
242 
246  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
247 
251  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
252 
256  inline CustomizedMetricSpecification& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
257 
261  inline CustomizedMetricSpecification& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
262 
266  inline CustomizedMetricSpecification& WithUnit(const char* value) { SetUnit(value); return *this;}
267 
268  private:
269 
270  Aws::String m_metricName;
271  bool m_metricNameHasBeenSet;
272 
273  Aws::String m_namespace;
274  bool m_namespaceHasBeenSet;
275 
276  Aws::Vector<MetricDimension> m_dimensions;
277  bool m_dimensionsHasBeenSet;
278 
279  MetricStatistic m_statistic;
280  bool m_statisticHasBeenSet;
281 
282  Aws::String m_unit;
283  bool m_unitHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace AutoScaling
288 } // namespace Aws
MetricDimension.h
Aws::AutoScaling::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::AutoScaling::Model::CustomizedMetricSpecification::GetUnit
const Aws::String & GetUnit() const
Definition: CustomizedMetricSpecification.h:231
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithMetricName
CustomizedMetricSpecification & WithMetricName(const char *value)
Definition: CustomizedMetricSpecification.h:96
Aws::AutoScaling::Model::CustomizedMetricSpecification::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: CustomizedMetricSpecification.h:236
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithDimensions
CustomizedMetricSpecification & WithDimensions(Aws::Vector< MetricDimension > &&value)
Definition: CustomizedMetricSpecification.h:180
Aws::AutoScaling::Model::CustomizedMetricSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::CustomizedMetricSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithStatistic
CustomizedMetricSpecification & WithStatistic(const MetricStatistic &value)
Definition: CustomizedMetricSpecification.h:220
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetUnit
void SetUnit(Aws::String &&value)
Definition: CustomizedMetricSpecification.h:246
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithStatistic
CustomizedMetricSpecification & WithStatistic(MetricStatistic &&value)
Definition: CustomizedMetricSpecification.h:225
Aws::AutoScaling::Model::CustomizedMetricSpecification::NamespaceHasBeenSet
bool NamespaceHasBeenSet() const
Definition: CustomizedMetricSpecification.h:107
Aws::AutoScaling::Model::CustomizedMetricSpecification::StatisticHasBeenSet
bool StatisticHasBeenSet() const
Definition: CustomizedMetricSpecification.h:205
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetStatistic
void SetStatistic(const MetricStatistic &value)
Definition: CustomizedMetricSpecification.h:210
AWSStreamFwd.h
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithUnit
CustomizedMetricSpecification & WithUnit(const char *value)
Definition: CustomizedMetricSpecification.h:266
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetUnit
void SetUnit(const char *value)
Definition: CustomizedMetricSpecification.h:251
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetNamespace
void SetNamespace(const Aws::String &value)
Definition: CustomizedMetricSpecification.h:112
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithNamespace
CustomizedMetricSpecification & WithNamespace(Aws::String &&value)
Definition: CustomizedMetricSpecification.h:132
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::CustomizedMetricSpecification::AddDimensions
CustomizedMetricSpecification & AddDimensions(const MetricDimension &value)
Definition: CustomizedMetricSpecification.h:187
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetNamespace
void SetNamespace(const char *value)
Definition: CustomizedMetricSpecification.h:122
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetStatistic
void SetStatistic(MetricStatistic &&value)
Definition: CustomizedMetricSpecification.h:215
AWSString.h
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetMetricName
void SetMetricName(const char *value)
Definition: CustomizedMetricSpecification.h:81
Aws::AutoScaling::Model::CustomizedMetricSpecification::GetStatistic
const MetricStatistic & GetStatistic() const
Definition: CustomizedMetricSpecification.h:200
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetUnit
void SetUnit(const Aws::String &value)
Definition: CustomizedMetricSpecification.h:241
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithUnit
CustomizedMetricSpecification & WithUnit(const Aws::String &value)
Definition: CustomizedMetricSpecification.h:256
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetDimensions
void SetDimensions(Aws::Vector< MetricDimension > &&value)
Definition: CustomizedMetricSpecification.h:166
Aws::AutoScaling::Model::CustomizedMetricSpecification::CustomizedMetricSpecification
CustomizedMetricSpecification()
Aws::AutoScaling::Model::MetricDimension
Definition: MetricDimension.h:32
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: CustomizedMetricSpecification.h:76
Aws::AutoScaling::Model::CustomizedMetricSpecification::GetNamespace
const Aws::String & GetNamespace() const
Definition: CustomizedMetricSpecification.h:102
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithMetricName
CustomizedMetricSpecification & WithMetricName(const Aws::String &value)
Definition: CustomizedMetricSpecification.h:86
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetDimensions
void SetDimensions(const Aws::Vector< MetricDimension > &value)
Definition: CustomizedMetricSpecification.h:159
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithNamespace
CustomizedMetricSpecification & WithNamespace(const Aws::String &value)
Definition: CustomizedMetricSpecification.h:127
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithMetricName
CustomizedMetricSpecification & WithMetricName(Aws::String &&value)
Definition: CustomizedMetricSpecification.h:91
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithNamespace
CustomizedMetricSpecification & WithNamespace(const char *value)
Definition: CustomizedMetricSpecification.h:137
Aws::AutoScaling::Model::CustomizedMetricSpecification::AddDimensions
CustomizedMetricSpecification & AddDimensions(MetricDimension &&value)
Definition: CustomizedMetricSpecification.h:194
Aws::AutoScaling::Model::CustomizedMetricSpecification::CustomizedMetricSpecification
CustomizedMetricSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetNamespace
void SetNamespace(Aws::String &&value)
Definition: CustomizedMetricSpecification.h:117
Aws::AutoScaling::Model::CustomizedMetricSpecification
Definition: CustomizedMetricSpecification.h:48
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::CustomizedMetricSpecification::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: CustomizedMetricSpecification.h:71
Aws::AutoScaling::Model::CustomizedMetricSpecification::operator=
CustomizedMetricSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStatistic.h
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithDimensions
CustomizedMetricSpecification & WithDimensions(const Aws::Vector< MetricDimension > &value)
Definition: CustomizedMetricSpecification.h:173
Aws::AutoScaling::Model::CustomizedMetricSpecification::GetMetricName
const Aws::String & GetMetricName() const
Definition: CustomizedMetricSpecification.h:61
Aws::AutoScaling::Model::CustomizedMetricSpecification::GetDimensions
const Aws::Vector< MetricDimension > & GetDimensions() const
Definition: CustomizedMetricSpecification.h:145
Aws::AutoScaling::Model::CustomizedMetricSpecification::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: CustomizedMetricSpecification.h:66
Aws::AutoScaling::Model::CustomizedMetricSpecification::WithUnit
CustomizedMetricSpecification & WithUnit(Aws::String &&value)
Definition: CustomizedMetricSpecification.h:261
Aws::AutoScaling::Model::CustomizedMetricSpecification::DimensionsHasBeenSet
bool DimensionsHasBeenSet() const
Definition: CustomizedMetricSpecification.h:152