AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Message.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 <aws/email/model/Body.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace SES
23{
24namespace Model
25{
26
33 class Message
34 {
35 public:
36 AWS_SES_API Message();
37 AWS_SES_API Message(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_SES_API Message& 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& GetSubject() const{ return m_subject; }
50 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
51 inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
52 inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
53 inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
54 inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
56
58
61 inline const Body& GetBody() const{ return m_body; }
62 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
63 inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
64 inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
65 inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
66 inline Message& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
68 private:
69
70 Content m_subject;
71 bool m_subjectHasBeenSet = false;
72
73 Body m_body;
74 bool m_bodyHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SES
79} // namespace Aws
Message & WithBody(const Body &value)
Definition Message.h:65
const Body & GetBody() const
Definition Message.h:61
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubject(const Content &value)
Definition Message.h:51
bool SubjectHasBeenSet() const
Definition Message.h:50
Message & WithBody(Body &&value)
Definition Message.h:66
void SetBody(const Body &value)
Definition Message.h:63
bool BodyHasBeenSet() const
Definition Message.h:62
AWS_SES_API Message & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Message & WithSubject(Content &&value)
Definition Message.h:54
void SetBody(Body &&value)
Definition Message.h:64
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Content & GetSubject() const
Definition Message.h:49
void SetSubject(Content &&value)
Definition Message.h:52
Message & WithSubject(const Content &value)
Definition Message.h:53
AWS_SES_API Message(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream