AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Content.h
1
6#pragma once
7#include <aws/email/SES_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 SES
22{
23namespace Model
24{
25
35 class Content
36 {
37 public:
38 AWS_SES_API Content();
39 AWS_SES_API Content(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_SES_API Content& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetData() const{ return m_data; }
51 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
52 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
53 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
54 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
55 inline Content& WithData(const Aws::String& value) { SetData(value); return *this;}
56 inline Content& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
57 inline Content& WithData(const char* value) { SetData(value); return *this;}
59
61
64 inline const Aws::String& GetCharset() const{ return m_charset; }
65 inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; }
66 inline void SetCharset(const Aws::String& value) { m_charsetHasBeenSet = true; m_charset = value; }
67 inline void SetCharset(Aws::String&& value) { m_charsetHasBeenSet = true; m_charset = std::move(value); }
68 inline void SetCharset(const char* value) { m_charsetHasBeenSet = true; m_charset.assign(value); }
69 inline Content& WithCharset(const Aws::String& value) { SetCharset(value); return *this;}
70 inline Content& WithCharset(Aws::String&& value) { SetCharset(std::move(value)); return *this;}
71 inline Content& WithCharset(const char* value) { SetCharset(value); return *this;}
73 private:
74
75 Aws::String m_data;
76 bool m_dataHasBeenSet = false;
77
78 Aws::String m_charset;
79 bool m_charsetHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace SES
84} // namespace Aws
void SetData(const char *value)
Definition Content.h:54
Content & WithCharset(Aws::String &&value)
Definition Content.h:70
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Content & WithCharset(const char *value)
Definition Content.h:71
void SetData(const Aws::String &value)
Definition Content.h:52
Content & WithData(const Aws::String &value)
Definition Content.h:55
const Aws::String & GetCharset() const
Definition Content.h:64
void SetCharset(const char *value)
Definition Content.h:68
void SetCharset(Aws::String &&value)
Definition Content.h:67
void SetCharset(const Aws::String &value)
Definition Content.h:66
void SetData(Aws::String &&value)
Definition Content.h:53
const Aws::String & GetData() const
Definition Content.h:50
Content & WithData(Aws::String &&value)
Definition Content.h:56
Content & WithCharset(const Aws::String &value)
Definition Content.h:69
bool CharsetHasBeenSet() const
Definition Content.h:65
Content & WithData(const char *value)
Definition Content.h:57
AWS_SES_API Content & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API Content(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DataHasBeenSet() const
Definition Content.h:51
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream