AWS SDK for C++  1.9.108
AWS SDK for C++
MetricDimension.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 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline MetricDimension& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline MetricDimension& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline MetricDimension& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetValue() const{ return m_value; }
87 
91  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
92 
96  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
97 
101  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
102 
106  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
107 
111  inline MetricDimension& WithValue(const Aws::String& value) { SetValue(value); return *this;}
112 
116  inline MetricDimension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
117 
121  inline MetricDimension& WithValue(const char* value) { SetValue(value); return *this;}
122 
123  private:
124 
125  Aws::String m_name;
126  bool m_nameHasBeenSet;
127 
128  Aws::String m_value;
129  bool m_valueHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace AutoScaling
134 } // namespace Aws
Aws::AutoScaling::Model::MetricDimension::GetValue
const Aws::String & GetValue() const
Definition: MetricDimension.h:86
Aws::AutoScaling::Model::MetricDimension::MetricDimension
MetricDimension(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::MetricDimension::WithName
MetricDimension & WithName(const Aws::String &value)
Definition: MetricDimension.h:70
Aws::AutoScaling::Model::MetricDimension::WithValue
MetricDimension & WithValue(Aws::String &&value)
Definition: MetricDimension.h:116
Aws::AutoScaling::Model::MetricDimension::WithValue
MetricDimension & WithValue(const Aws::String &value)
Definition: MetricDimension.h:111
Aws::AutoScaling::Model::MetricDimension::WithName
MetricDimension & WithName(const char *value)
Definition: MetricDimension.h:80
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::MetricDimension::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MetricDimension.h:91
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::MetricDimension::GetName
const Aws::String & GetName() const
Definition: MetricDimension.h:45
Aws::AutoScaling::Model::MetricDimension::WithValue
MetricDimension & WithValue(const char *value)
Definition: MetricDimension.h:121
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::MetricDimension::operator=
MetricDimension & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::AutoScaling::Model::MetricDimension::SetName
void SetName(const Aws::String &value)
Definition: MetricDimension.h:55
Aws::AutoScaling::Model::MetricDimension
Definition: MetricDimension.h:32
Aws::AutoScaling::Model::MetricDimension::WithName
MetricDimension & WithName(Aws::String &&value)
Definition: MetricDimension.h:75
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::MetricDimension::SetValue
void SetValue(const char *value)
Definition: MetricDimension.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::MetricDimension::SetName
void SetName(const char *value)
Definition: MetricDimension.h:65
Aws::AutoScaling::Model::MetricDimension::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MetricDimension.h:50
Aws::AutoScaling::Model::MetricDimension::SetValue
void SetValue(Aws::String &&value)
Definition: MetricDimension.h:101
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::MetricDimension::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::MetricDimension::SetName
void SetName(Aws::String &&value)
Definition: MetricDimension.h:60
Aws::AutoScaling::Model::MetricDimension::SetValue
void SetValue(const Aws::String &value)
Definition: MetricDimension.h:96
Aws::AutoScaling::Model::MetricDimension::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::MetricDimension::MetricDimension
MetricDimension()