AWS SDK for C++  1.9.109
AWS SDK for C++
MetricCollectionType.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace AutoScaling
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
64  inline const Aws::String& GetMetric() const{ return m_metric; }
65 
88  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
89 
112  inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
113 
136  inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
137 
160  inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
161 
184  inline MetricCollectionType& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
185 
208  inline MetricCollectionType& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
209 
232  inline MetricCollectionType& WithMetric(const char* value) { SetMetric(value); return *this;}
233 
234  private:
235 
236  Aws::String m_metric;
237  bool m_metricHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace AutoScaling
242 } // namespace Aws
Aws::AutoScaling::Model::MetricCollectionType::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: MetricCollectionType.h:88
Aws::AutoScaling::Model::MetricCollectionType::SetMetric
void SetMetric(Aws::String &&value)
Definition: MetricCollectionType.h:136
Aws::AutoScaling::Model::MetricCollectionType::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::MetricCollectionType
Definition: MetricCollectionType.h:32
Aws::AutoScaling::Model::MetricCollectionType::GetMetric
const Aws::String & GetMetric() const
Definition: MetricCollectionType.h:64
AWSStreamFwd.h
Aws::AutoScaling::Model::MetricCollectionType::MetricCollectionType
MetricCollectionType()
Aws::AutoScaling::Model::MetricCollectionType::WithMetric
MetricCollectionType & WithMetric(const Aws::String &value)
Definition: MetricCollectionType.h:184
Aws::AutoScaling::Model::MetricCollectionType::operator=
MetricCollectionType & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::MetricCollectionType::WithMetric
MetricCollectionType & WithMetric(Aws::String &&value)
Definition: MetricCollectionType.h:208
AWSString.h
Aws::AutoScaling::Model::MetricCollectionType::SetMetric
void SetMetric(const char *value)
Definition: MetricCollectionType.h:160
Aws::AutoScaling::Model::MetricCollectionType::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::MetricCollectionType::WithMetric
MetricCollectionType & WithMetric(const char *value)
Definition: MetricCollectionType.h:232
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::MetricCollectionType::MetricCollectionType
MetricCollectionType(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::MetricCollectionType::SetMetric
void SetMetric(const Aws::String &value)
Definition: MetricCollectionType.h:112