AWS SDK for C++  1.8.129
AWS SDK for C++
Content.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 
49  inline const Aws::String& GetData() const{ return m_data; }
50 
54  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
55 
59  inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
60 
64  inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
65 
69  inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
70 
74  inline Content& WithData(const Aws::String& value) { SetData(value); return *this;}
75 
79  inline Content& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
80 
84  inline Content& WithData(const char* value) { SetData(value); return *this;}
85 
86 
90  inline const Aws::String& GetCharset() const{ return m_charset; }
91 
95  inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; }
96 
100  inline void SetCharset(const Aws::String& value) { m_charsetHasBeenSet = true; m_charset = value; }
101 
105  inline void SetCharset(Aws::String&& value) { m_charsetHasBeenSet = true; m_charset = std::move(value); }
106 
110  inline void SetCharset(const char* value) { m_charsetHasBeenSet = true; m_charset.assign(value); }
111 
115  inline Content& WithCharset(const Aws::String& value) { SetCharset(value); return *this;}
116 
120  inline Content& WithCharset(Aws::String&& value) { SetCharset(std::move(value)); return *this;}
121 
125  inline Content& WithCharset(const char* value) { SetCharset(value); return *this;}
126 
127  private:
128 
129  Aws::String m_data;
130  bool m_dataHasBeenSet;
131 
132  Aws::String m_charset;
133  bool m_charsetHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace SES
138 } // namespace Aws
Aws::SES::Model::Content::WithCharset
Content & WithCharset(const char *value)
Definition: Content.h:125
Aws::SES::Model::Content::CharsetHasBeenSet
bool CharsetHasBeenSet() const
Definition: Content.h:95
Aws::SES::Model::Content::SetData
void SetData(const Aws::String &value)
Definition: Content.h:59
Aws::SES::Model::Content::WithCharset
Content & WithCharset(const Aws::String &value)
Definition: Content.h:115
Aws::SES::Model::Content::DataHasBeenSet
bool DataHasBeenSet() const
Definition: Content.h:54
Aws::SES::Model::Content::WithData
Content & WithData(const char *value)
Definition: Content.h:84
AWSStreamFwd.h
Aws::SES::Model::Content::SetData
void SetData(const char *value)
Definition: Content.h:69
Aws::SES::Model::Content::WithCharset
Content & WithCharset(Aws::String &&value)
Definition: Content.h:120
Aws::SES::Model::Content::WithData
Content & WithData(const Aws::String &value)
Definition: Content.h:74
Aws::SES::Model::Content::operator=
Content & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::Content::Content
Content(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::Content::SetCharset
void SetCharset(const Aws::String &value)
Definition: Content.h:100
AWSString.h
SES_EXPORTS.h
Aws::SES::Model::Content::GetData
const Aws::String & GetData() const
Definition: Content.h:49
Aws::SES::Model::Content::Content
Content()
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::Content::GetCharset
const Aws::String & GetCharset() const
Definition: Content.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::Content::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::Content::WithData
Content & WithData(Aws::String &&value)
Definition: Content.h:79
Aws::SES::Model::Content::SetCharset
void SetCharset(const char *value)
Definition: Content.h:110
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::Content::SetData
void SetData(Aws::String &&value)
Definition: Content.h:64
Aws::SES::Model::Content
Definition: Content.h:36
Aws::SES::Model::Content::SetCharset
void SetCharset(Aws::String &&value)
Definition: Content.h:105
Aws::SES::Model::Content::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const