AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/model/Body.h>
9#include <aws/pinpoint-email/model/Content.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PinpointEmail {
21namespace Model {
22
30class Message {
31 public:
32 AWS_PINPOINTEMAIL_API Message() = default;
33 AWS_PINPOINTEMAIL_API Message(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINTEMAIL_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Content& GetSubject() const { return m_subject; }
45 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
46 template <typename SubjectT = Content>
47 void SetSubject(SubjectT&& value) {
48 m_subjectHasBeenSet = true;
49 m_subject = std::forward<SubjectT>(value);
50 }
51 template <typename SubjectT = Content>
52 Message& WithSubject(SubjectT&& value) {
53 SetSubject(std::forward<SubjectT>(value));
54 return *this;
55 }
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) {
67 m_bodyHasBeenSet = true;
68 m_body = std::forward<BodyT>(value);
69 }
70 template <typename BodyT = Body>
71 Message& WithBody(BodyT&& value) {
72 SetBody(std::forward<BodyT>(value));
73 return *this;
74 }
76 private:
77 Content m_subject;
78
79 Body m_body;
80 bool m_subjectHasBeenSet = false;
81 bool m_bodyHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace PinpointEmail
86} // 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:52
Message & WithBody(BodyT &&value)
Definition Message.h:71
const Body & GetBody() const
Definition Message.h:63
const Content & GetSubject() const
Definition Message.h:44
AWS_PINPOINTEMAIL_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API Message()=default
void SetSubject(SubjectT &&value)
Definition Message.h:47
AWS_PINPOINTEMAIL_API Message(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue