AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageData.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
37 {
38 public:
39 AWS_CLOUDWATCH_API MessageData();
40 AWS_CLOUDWATCH_API MessageData(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDWATCH_API MessageData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetCode() const{ return m_code; }
52 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
54 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
55 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
56 inline MessageData& WithCode(const Aws::String& value) { SetCode(value); return *this;}
57 inline MessageData& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
58 inline MessageData& WithCode(const char* value) { SetCode(value); return *this;}
60
62
65 inline const Aws::String& GetValue() const{ return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
68 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
69 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
70 inline MessageData& WithValue(const Aws::String& value) { SetValue(value); return *this;}
71 inline MessageData& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
72 inline MessageData& WithValue(const char* value) { SetValue(value); return *this;}
74 private:
75
76 Aws::String m_code;
77 bool m_codeHasBeenSet = false;
78
79 Aws::String m_value;
80 bool m_valueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CloudWatch
85} // namespace Aws
void SetValue(const char *value)
Definition MessageData.h:69
AWS_CLOUDWATCH_API MessageData()
const Aws::String & GetCode() const
Definition MessageData.h:51
AWS_CLOUDWATCH_API MessageData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDWATCH_API MessageData(const Aws::Utils::Xml::XmlNode &xmlNode)
MessageData & WithValue(const char *value)
Definition MessageData.h:72
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MessageData & WithCode(Aws::String &&value)
Definition MessageData.h:57
void SetValue(const Aws::String &value)
Definition MessageData.h:67
MessageData & WithCode(const char *value)
Definition MessageData.h:58
void SetCode(Aws::String &&value)
Definition MessageData.h:54
const Aws::String & GetValue() const
Definition MessageData.h:65
void SetCode(const Aws::String &value)
Definition MessageData.h:53
MessageData & WithCode(const Aws::String &value)
Definition MessageData.h:56
MessageData & WithValue(Aws::String &&value)
Definition MessageData.h:71
MessageData & WithValue(const Aws::String &value)
Definition MessageData.h:70
void SetCode(const char *value)
Definition MessageData.h:55
void SetValue(Aws::String &&value)
Definition MessageData.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream