AWS SDK for C++  1.8.128
AWS SDK for C++
MessageTag.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 SES
22 {
23 namespace Model
24 {
25 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
52  inline const Aws::String& GetName() const{ return m_name; }
53 
59  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 
66  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 
73  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
74 
80  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 
87  inline MessageTag& WithName(const Aws::String& value) { SetName(value); return *this;}
88 
94  inline MessageTag& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 
101  inline MessageTag& WithName(const char* value) { SetName(value); return *this;}
102 
103 
109  inline const Aws::String& GetValue() const{ return m_value; }
110 
116  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
117 
123  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
124 
130  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
131 
137  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
138 
144  inline MessageTag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
145 
151  inline MessageTag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
152 
158  inline MessageTag& WithValue(const char* value) { SetValue(value); return *this;}
159 
160  private:
161 
162  Aws::String m_name;
163  bool m_nameHasBeenSet;
164 
165  Aws::String m_value;
166  bool m_valueHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace SES
171 } // namespace Aws
Aws::SES::Model::MessageTag::operator=
MessageTag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::MessageTag::SetValue
void SetValue(const Aws::String &value)
Definition: MessageTag.h:123
Aws::SES::Model::MessageTag
Definition: MessageTag.h:37
Aws::SES::Model::MessageTag::GetName
const Aws::String & GetName() const
Definition: MessageTag.h:52
Aws::SES::Model::MessageTag::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MessageTag.h:59
Aws::SES::Model::MessageTag::WithValue
MessageTag & WithValue(const char *value)
Definition: MessageTag.h:158
AWSStreamFwd.h
Aws::SES::Model::MessageTag::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::MessageTag::SetName
void SetName(const Aws::String &value)
Definition: MessageTag.h:66
Aws::SES::Model::MessageTag::MessageTag
MessageTag(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::MessageTag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MessageTag.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::MessageTag::SetValue
void SetValue(const char *value)
Definition: MessageTag.h:137
Aws::SES::Model::MessageTag::WithName
MessageTag & WithName(Aws::String &&value)
Definition: MessageTag.h:94
AWSString.h
Aws::SES::Model::MessageTag::MessageTag
MessageTag()
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::MessageTag::SetName
void SetName(const char *value)
Definition: MessageTag.h:80
Aws::SES::Model::MessageTag::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::MessageTag::SetValue
void SetValue(Aws::String &&value)
Definition: MessageTag.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::MessageTag::WithName
MessageTag & WithName(const Aws::String &value)
Definition: MessageTag.h:87
Aws::SES::Model::MessageTag::WithValue
MessageTag & WithValue(const Aws::String &value)
Definition: MessageTag.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::MessageTag::WithName
MessageTag & WithName(const char *value)
Definition: MessageTag.h:101
Aws::SES::Model::MessageTag::SetName
void SetName(Aws::String &&value)
Definition: MessageTag.h:73
Aws::SES::Model::MessageTag::WithValue
MessageTag & WithValue(Aws::String &&value)
Definition: MessageTag.h:151
Aws::SES::Model::MessageTag::GetValue
const Aws::String & GetValue() const
Definition: MessageTag.h:109