AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Body.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/email/model/Content.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
33 class Body
34 {
35 public:
36 AWS_SES_API Body();
37 AWS_SES_API Body(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_SES_API Body& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Content& GetText() const{ return m_text; }
50 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
51 inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; }
52 inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
53 inline Body& WithText(const Content& value) { SetText(value); return *this;}
54 inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;}
56
58
63 inline const Content& GetHtml() const{ return m_html; }
64 inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
65 inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; }
66 inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
67 inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;}
68 inline Body& WithHtml(Content&& value) { SetHtml(std::move(value)); return *this;}
70 private:
71
72 Content m_text;
73 bool m_textHasBeenSet = false;
74
75 Content m_html;
76 bool m_htmlHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SES
81} // namespace Aws
AWS_SES_API Body & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool HtmlHasBeenSet() const
Definition Body.h:64
bool TextHasBeenSet() const
Definition Body.h:50
const Content & GetHtml() const
Definition Body.h:63
Body & WithHtml(Content &&value)
Definition Body.h:68
Body & WithText(const Content &value)
Definition Body.h:53
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHtml(Content &&value)
Definition Body.h:66
AWS_SES_API Body(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHtml(const Content &value)
Definition Body.h:65
void SetText(Content &&value)
Definition Body.h:52
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SES_API Body()
Body & WithHtml(const Content &value)
Definition Body.h:67
const Content & GetText() const
Definition Body.h:49
Body & WithText(Content &&value)
Definition Body.h:54
void SetText(const Content &value)
Definition Body.h:51
std::basic_ostream< char, std::char_traits< char > > OStream