AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/model/Content.h>
9#include <aws/pinpoint-email/model/Body.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PinpointEmail
23{
24namespace Model
25{
26
34 class Message
35 {
36 public:
37 AWS_PINPOINTEMAIL_API Message() = default;
38 AWS_PINPOINTEMAIL_API Message(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINTEMAIL_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Content& GetSubject() const { return m_subject; }
51 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
52 template<typename SubjectT = Content>
53 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
54 template<typename SubjectT = Content>
55 Message& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
57
59
63 inline const Body& GetBody() const { return m_body; }
64 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
65 template<typename BodyT = Body>
66 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
67 template<typename BodyT = Body>
68 Message& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
70 private:
71
72 Content m_subject;
73 bool m_subjectHasBeenSet = false;
74
75 Body m_body;
76 bool m_bodyHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace PinpointEmail
81} // namespace Aws
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBody(BodyT &&value)
Definition Message.h:66
Message & WithSubject(SubjectT &&value)
Definition Message.h:55
Message & WithBody(BodyT &&value)
Definition Message.h:68
const Body & GetBody() const
Definition Message.h:63
const Content & GetSubject() const
Definition Message.h:50
AWS_PINPOINTEMAIL_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API Message()=default
void SetSubject(SubjectT &&value)
Definition Message.h:53
AWS_PINPOINTEMAIL_API Message(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue