AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimpleEmail.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/SimpleEmailPart.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/model/MessageHeader.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINT_API SimpleEmail();
38 AWS_PINPOINT_API SimpleEmail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API SimpleEmail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const SimpleEmailPart& GetHtmlPart() const{ return m_htmlPart; }
50 inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; }
51 inline void SetHtmlPart(const SimpleEmailPart& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; }
52 inline void SetHtmlPart(SimpleEmailPart&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); }
53 inline SimpleEmail& WithHtmlPart(const SimpleEmailPart& value) { SetHtmlPart(value); return *this;}
54 inline SimpleEmail& WithHtmlPart(SimpleEmailPart&& value) { SetHtmlPart(std::move(value)); return *this;}
56
58
61 inline const SimpleEmailPart& GetSubject() const{ return m_subject; }
62 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
63 inline void SetSubject(const SimpleEmailPart& value) { m_subjectHasBeenSet = true; m_subject = value; }
64 inline void SetSubject(SimpleEmailPart&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
65 inline SimpleEmail& WithSubject(const SimpleEmailPart& value) { SetSubject(value); return *this;}
66 inline SimpleEmail& WithSubject(SimpleEmailPart&& value) { SetSubject(std::move(value)); return *this;}
68
70
75 inline const SimpleEmailPart& GetTextPart() const{ return m_textPart; }
76 inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; }
77 inline void SetTextPart(const SimpleEmailPart& value) { m_textPartHasBeenSet = true; m_textPart = value; }
78 inline void SetTextPart(SimpleEmailPart&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); }
79 inline SimpleEmail& WithTextPart(const SimpleEmailPart& value) { SetTextPart(value); return *this;}
80 inline SimpleEmail& WithTextPart(SimpleEmailPart&& value) { SetTextPart(std::move(value)); return *this;}
82
84
87 inline const Aws::Vector<MessageHeader>& GetHeaders() const{ return m_headers; }
88 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
89 inline void SetHeaders(const Aws::Vector<MessageHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
90 inline void SetHeaders(Aws::Vector<MessageHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
91 inline SimpleEmail& WithHeaders(const Aws::Vector<MessageHeader>& value) { SetHeaders(value); return *this;}
92 inline SimpleEmail& WithHeaders(Aws::Vector<MessageHeader>&& value) { SetHeaders(std::move(value)); return *this;}
93 inline SimpleEmail& AddHeaders(const MessageHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
94 inline SimpleEmail& AddHeaders(MessageHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
96 private:
97
98 SimpleEmailPart m_htmlPart;
99 bool m_htmlPartHasBeenSet = false;
100
101 SimpleEmailPart m_subject;
102 bool m_subjectHasBeenSet = false;
103
104 SimpleEmailPart m_textPart;
105 bool m_textPartHasBeenSet = false;
106
108 bool m_headersHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Pinpoint
113} // namespace Aws
const SimpleEmailPart & GetHtmlPart() const
Definition SimpleEmail.h:49
SimpleEmail & WithTextPart(SimpleEmailPart &&value)
Definition SimpleEmail.h:80
const SimpleEmailPart & GetTextPart() const
Definition SimpleEmail.h:75
AWS_PINPOINT_API SimpleEmail(Aws::Utils::Json::JsonView jsonValue)
void SetTextPart(const SimpleEmailPart &value)
Definition SimpleEmail.h:77
void SetSubject(SimpleEmailPart &&value)
Definition SimpleEmail.h:64
void SetHtmlPart(SimpleEmailPart &&value)
Definition SimpleEmail.h:52
void SetHeaders(const Aws::Vector< MessageHeader > &value)
Definition SimpleEmail.h:89
void SetHtmlPart(const SimpleEmailPart &value)
Definition SimpleEmail.h:51
void SetSubject(const SimpleEmailPart &value)
Definition SimpleEmail.h:63
void SetTextPart(SimpleEmailPart &&value)
Definition SimpleEmail.h:78
const Aws::Vector< MessageHeader > & GetHeaders() const
Definition SimpleEmail.h:87
SimpleEmail & WithHtmlPart(SimpleEmailPart &&value)
Definition SimpleEmail.h:54
SimpleEmail & WithHeaders(Aws::Vector< MessageHeader > &&value)
Definition SimpleEmail.h:92
SimpleEmail & WithHtmlPart(const SimpleEmailPart &value)
Definition SimpleEmail.h:53
SimpleEmail & AddHeaders(MessageHeader &&value)
Definition SimpleEmail.h:94
SimpleEmail & WithHeaders(const Aws::Vector< MessageHeader > &value)
Definition SimpleEmail.h:91
void SetHeaders(Aws::Vector< MessageHeader > &&value)
Definition SimpleEmail.h:90
SimpleEmail & WithTextPart(const SimpleEmailPart &value)
Definition SimpleEmail.h:79
SimpleEmail & WithSubject(const SimpleEmailPart &value)
Definition SimpleEmail.h:65
const SimpleEmailPart & GetSubject() const
Definition SimpleEmail.h:61
SimpleEmail & WithSubject(SimpleEmailPart &&value)
Definition SimpleEmail.h:66
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SimpleEmail & AddHeaders(const MessageHeader &value)
Definition SimpleEmail.h:93
AWS_PINPOINT_API SimpleEmail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue