AWS SDK for C++  1.8.182
AWS SDK for C++
Message.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/email/model/Body.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace SES
23 {
24 namespace Model
25 {
26 
34  {
35  public:
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& GetSubject() const{ return m_subject; }
49 
54  inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
55 
60  inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
61 
66  inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
67 
72  inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
73 
78  inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
79 
80 
84  inline const Body& GetBody() const{ return m_body; }
85 
89  inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
90 
94  inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
95 
99  inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
100 
104  inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
105 
109  inline Message& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
110 
111  private:
112 
113  Content m_subject;
114  bool m_subjectHasBeenSet;
115 
116  Body m_body;
117  bool m_bodyHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace SES
122 } // namespace Aws
Body.h
Aws::SES::Model::Message::SubjectHasBeenSet
bool SubjectHasBeenSet() const
Definition: Message.h:54
Aws::SES::Model::Message::GetBody
const Body & GetBody() const
Definition: Message.h:84
Aws::SES::Model::Message
Definition: Message.h:34
AWSStreamFwd.h
Aws::SES::Model::Message::BodyHasBeenSet
bool BodyHasBeenSet() const
Definition: Message.h:89
Aws::SES::Model::Message::WithSubject
Message & WithSubject(Content &&value)
Definition: Message.h:78
Aws::SES::Model::Message::GetSubject
const Content & GetSubject() const
Definition: Message.h:48
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::Message::SetSubject
void SetSubject(Content &&value)
Definition: Message.h:66
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::Message::WithBody
Message & WithBody(const Body &value)
Definition: Message.h:104
Aws::SES::Model::Message::SetBody
void SetBody(const Body &value)
Definition: Message.h:94
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::Message::SetBody
void SetBody(Body &&value)
Definition: Message.h:99
Aws::SES::Model::Message::WithSubject
Message & WithSubject(const Content &value)
Definition: Message.h:72
Aws::SES::Model::Message::SetSubject
void SetSubject(const Content &value)
Definition: Message.h:60
Aws::SES::Model::Message::WithBody
Message & WithBody(Body &&value)
Definition: Message.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::Message::operator=
Message & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::Message::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:171
Aws::SES::Model::Message::Message
Message(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::Body
Definition: Body.h:34
Aws::SES::Model::Message::Message
Message()
Aws::SES::Model::Content
Definition: Content.h:36
Aws::SES::Model::Message::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Content.h