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/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/model/Content.h>
9#include <aws/sesv2/model/Body.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/MessageHeader.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SESV2
25{
26namespace Model
27{
28
35 class Message
36 {
37 public:
38 AWS_SESV2_API Message();
39 AWS_SESV2_API Message(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SESV2_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Content& GetSubject() const{ return m_subject; }
52 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
53 inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
54 inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
55 inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
56 inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
58
60
64 inline const Body& GetBody() const{ return m_body; }
65 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
66 inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
67 inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
68 inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
69 inline Message& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
71
73
76 inline const Aws::Vector<MessageHeader>& GetHeaders() const{ return m_headers; }
77 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
78 inline void SetHeaders(const Aws::Vector<MessageHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
79 inline void SetHeaders(Aws::Vector<MessageHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
80 inline Message& WithHeaders(const Aws::Vector<MessageHeader>& value) { SetHeaders(value); return *this;}
81 inline Message& WithHeaders(Aws::Vector<MessageHeader>&& value) { SetHeaders(std::move(value)); return *this;}
82 inline Message& AddHeaders(const MessageHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
83 inline Message& AddHeaders(MessageHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
85 private:
86
87 Content m_subject;
88 bool m_subjectHasBeenSet = false;
89
90 Body m_body;
91 bool m_bodyHasBeenSet = false;
92
94 bool m_headersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace SESV2
99} // namespace Aws
void SetHeaders(Aws::Vector< MessageHeader > &&value)
Definition Message.h:79
bool BodyHasBeenSet() const
Definition Message.h:65
const Content & GetSubject() const
Definition Message.h:51
bool HeadersHasBeenSet() const
Definition Message.h:77
Message & WithHeaders(Aws::Vector< MessageHeader > &&value)
Definition Message.h:81
Message & WithHeaders(const Aws::Vector< MessageHeader > &value)
Definition Message.h:80
Message & WithBody(Body &&value)
Definition Message.h:69
Message & AddHeaders(const MessageHeader &value)
Definition Message.h:82
Message & WithSubject(Content &&value)
Definition Message.h:56
void SetBody(Body &&value)
Definition Message.h:67
Message & WithBody(const Body &value)
Definition Message.h:68
AWS_SESV2_API Message(Aws::Utils::Json::JsonView jsonValue)
bool SubjectHasBeenSet() const
Definition Message.h:52
void SetBody(const Body &value)
Definition Message.h:66
void SetHeaders(const Aws::Vector< MessageHeader > &value)
Definition Message.h:78
void SetSubject(const Content &value)
Definition Message.h:53
const Aws::Vector< MessageHeader > & GetHeaders() const
Definition Message.h:76
AWS_SESV2_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
Message & AddHeaders(MessageHeader &&value)
Definition Message.h:83
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubject(Content &&value)
Definition Message.h:54
const Body & GetBody() const
Definition Message.h:64
Message & WithSubject(const Content &value)
Definition Message.h:55
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue