AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Dimension.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudWatch
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_CLOUDWATCH_API Dimension();
41 AWS_CLOUDWATCH_API Dimension(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDWATCH_API Dimension& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline Dimension& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline Dimension& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline Dimension& WithName(const char* value) { SetName(value); return *this;}
64
66
71 inline const Aws::String& GetValue() const{ return m_value; }
72 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
73 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
74 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
75 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
76 inline Dimension& WithValue(const Aws::String& value) { SetValue(value); return *this;}
77 inline Dimension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
78 inline Dimension& WithValue(const char* value) { SetValue(value); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
85 Aws::String m_value;
86 bool m_valueHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudWatch
91} // namespace Aws
void SetValue(Aws::String &&value)
Definition Dimension.h:74
const Aws::String & GetValue() const
Definition Dimension.h:71
Dimension & WithValue(const char *value)
Definition Dimension.h:78
Dimension & WithName(const Aws::String &value)
Definition Dimension.h:60
void SetName(const Aws::String &value)
Definition Dimension.h:57
AWS_CLOUDWATCH_API Dimension(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetValue(const Aws::String &value)
Definition Dimension.h:73
Dimension & WithValue(Aws::String &&value)
Definition Dimension.h:77
AWS_CLOUDWATCH_API Dimension()
void SetName(Aws::String &&value)
Definition Dimension.h:58
void SetName(const char *value)
Definition Dimension.h:59
AWS_CLOUDWATCH_API Dimension & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Dimension & WithValue(const Aws::String &value)
Definition Dimension.h:76
const Aws::String & GetName() const
Definition Dimension.h:55
Dimension & WithName(const char *value)
Definition Dimension.h:62
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Dimension & WithName(Aws::String &&value)
Definition Dimension.h:61
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetValue(const char *value)
Definition Dimension.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream