AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
Content.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/email/SES_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SES {
20namespace Model {
21
31class Content {
32 public:
33 AWS_SES_API Content() = default;
34 AWS_SES_API Content(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_SES_API Content& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetData() const { return m_data; }
45 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
46 template <typename DataT = Aws::String>
47 void SetData(DataT&& value) {
48 m_dataHasBeenSet = true;
49 m_data = std::forward<DataT>(value);
50 }
51 template <typename DataT = Aws::String>
52 Content& WithData(DataT&& value) {
53 SetData(std::forward<DataT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetCharset() const { return m_charset; }
63 inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; }
64 template <typename CharsetT = Aws::String>
65 void SetCharset(CharsetT&& value) {
66 m_charsetHasBeenSet = true;
67 m_charset = std::forward<CharsetT>(value);
68 }
69 template <typename CharsetT = Aws::String>
70 Content& WithCharset(CharsetT&& value) {
71 SetCharset(std::forward<CharsetT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_data;
77
78 Aws::String m_charset;
79 bool m_dataHasBeenSet = false;
80 bool m_charsetHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace SES
85} // namespace Aws
Content & WithCharset(CharsetT &&value)
Definition Content.h:70
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetData(DataT &&value)
Definition Content.h:47
Content & WithData(DataT &&value)
Definition Content.h:52
AWS_SES_API Content()=default
const Aws::String & GetCharset() const
Definition Content.h:62
const Aws::String & GetData() const
Definition Content.h:44
bool CharsetHasBeenSet() const
Definition Content.h:63
void SetCharset(CharsetT &&value)
Definition Content.h:65
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:45
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