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/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();
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 inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
53 inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
54 inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
55 inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
57
59
63 inline const Body& GetBody() const{ return m_body; }
64 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
65 inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
66 inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
67 inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
68 inline Message& WithBody(Body&& value) { SetBody(std::move(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
Message & WithSubject(const Content &value)
Definition Message.h:54
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINTEMAIL_API Message()
void SetSubject(Content &&value)
Definition Message.h:53
Message & WithBody(const Body &value)
Definition Message.h:67
const Body & GetBody() const
Definition Message.h:63
void SetSubject(const Content &value)
Definition Message.h:52
const Content & GetSubject() const
Definition Message.h:50
Message & WithBody(Body &&value)
Definition Message.h:68
void SetBody(Body &&value)
Definition Message.h:66
void SetBody(const Body &value)
Definition Message.h:65
AWS_PINPOINTEMAIL_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithSubject(Content &&value)
Definition Message.h:55
Aws::Utils::Json::JsonValue JsonValue