AWS SDK for C++  1.9.19
AWS SDK for C++
Body.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 
34  {
35  public:
36  Body();
37  Body(const Aws::Utils::Xml::XmlNode& xmlNode);
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Content& GetText() const{ return m_text; }
49 
54  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
55 
60  inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; }
61 
66  inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
67 
72  inline Body& WithText(const Content& value) { SetText(value); return *this;}
73 
78  inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;}
79 
80 
86  inline const Content& GetHtml() const{ return m_html; }
87 
93  inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
94 
100  inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; }
101 
107  inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
108 
114  inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;}
115 
121  inline Body& WithHtml(Content&& value) { SetHtml(std::move(value)); return *this;}
122 
123  private:
124 
125  Content m_text;
126  bool m_textHasBeenSet;
127 
128  Content m_html;
129  bool m_htmlHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace SES
134 } // namespace Aws
Aws::SES::Model::Body::HtmlHasBeenSet
bool HtmlHasBeenSet() const
Definition: Body.h:93
Aws::SES::Model::Body::SetText
void SetText(Content &&value)
Definition: Body.h:66
Aws::SES::Model::Body::WithHtml
Body & WithHtml(Content &&value)
Definition: Body.h:121
Aws::SES::Model::Body::TextHasBeenSet
bool TextHasBeenSet() const
Definition: Body.h:54
AWSStreamFwd.h
Aws::SES::Model::Body::GetText
const Content & GetText() const
Definition: Body.h:48
Aws::SES::Model::Body::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::Body::Body
Body(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::Body::Body
Body()
Aws::SES::Model::Body::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::Body::SetHtml
void SetHtml(const Content &value)
Definition: Body.h:100
Aws::SES::Model::Body::WithHtml
Body & WithHtml(const Content &value)
Definition: Body.h:114
SES_EXPORTS.h
Aws::SES::Model::Body::GetHtml
const Content & GetHtml() const
Definition: Body.h:86
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::Body::WithText
Body & WithText(Content &&value)
Definition: Body.h:78
Aws::SES::Model::Body::SetText
void SetText(const Content &value)
Definition: Body.h:60
Aws::SES::Model::Body::SetHtml
void SetHtml(Content &&value)
Definition: Body.h:107
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:171
Aws::SES::Model::Body::WithText
Body & WithText(const Content &value)
Definition: Body.h:72
Aws::SES::Model::Body
Definition: Body.h:34
Aws::SES::Model::Content
Definition: Content.h:36
Content.h
Aws::SES::Model::Body::operator=
Body & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)