AWS SDK for C++  1.8.129
AWS SDK for C++
ExtensionField.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 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
58  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 
65  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 
72  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 
79  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 
86  inline ExtensionField& WithName(const Aws::String& value) { SetName(value); return *this;}
87 
93  inline ExtensionField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 
100  inline ExtensionField& WithName(const char* value) { SetName(value); return *this;}
101 
102 
107  inline const Aws::String& GetValue() const{ return m_value; }
108 
113  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
114 
119  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
120 
125  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
126 
131  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
132 
137  inline ExtensionField& WithValue(const Aws::String& value) { SetValue(value); return *this;}
138 
143  inline ExtensionField& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
144 
149  inline ExtensionField& WithValue(const char* value) { SetValue(value); return *this;}
150 
151  private:
152 
153  Aws::String m_name;
154  bool m_nameHasBeenSet;
155 
156  Aws::String m_value;
157  bool m_valueHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace SES
162 } // namespace Aws
Aws::SES::Model::ExtensionField::SetValue
void SetValue(Aws::String &&value)
Definition: ExtensionField.h:125
Aws::SES::Model::ExtensionField::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ExtensionField.h:58
Aws::SES::Model::ExtensionField::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::ExtensionField::SetName
void SetName(const char *value)
Definition: ExtensionField.h:79
AWSStreamFwd.h
Aws::SES::Model::ExtensionField::WithValue
ExtensionField & WithValue(const char *value)
Definition: ExtensionField.h:149
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::ExtensionField::WithName
ExtensionField & WithName(const char *value)
Definition: ExtensionField.h:100
Aws::SES::Model::ExtensionField::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::ExtensionField::WithValue
ExtensionField & WithValue(Aws::String &&value)
Definition: ExtensionField.h:143
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::ExtensionField::SetValue
void SetValue(const Aws::String &value)
Definition: ExtensionField.h:119
Aws::SES::Model::ExtensionField::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: ExtensionField.h:113
Aws::SES::Model::ExtensionField::WithValue
ExtensionField & WithValue(const Aws::String &value)
Definition: ExtensionField.h:137
Aws::SES::Model::ExtensionField::ExtensionField
ExtensionField(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::ExtensionField::GetName
const Aws::String & GetName() const
Definition: ExtensionField.h:51
Aws::SES::Model::ExtensionField::SetName
void SetName(Aws::String &&value)
Definition: ExtensionField.h:72
AWSString.h
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::ExtensionField::GetValue
const Aws::String & GetValue() const
Definition: ExtensionField.h:107
Aws::SES::Model::ExtensionField::WithName
ExtensionField & WithName(Aws::String &&value)
Definition: ExtensionField.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::ExtensionField::ExtensionField
ExtensionField()
Aws::SES::Model::ExtensionField::SetName
void SetName(const Aws::String &value)
Definition: ExtensionField.h:65
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::ExtensionField::WithName
ExtensionField & WithName(const Aws::String &value)
Definition: ExtensionField.h:86
Aws::SES::Model::ExtensionField::SetValue
void SetValue(const char *value)
Definition: ExtensionField.h:131
Aws::SES::Model::ExtensionField::operator=
ExtensionField & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::ExtensionField
Definition: ExtensionField.h:36