AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CampaignEmailMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 CampaignEmailMessage();
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetBody() const{ return m_body; }
49 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
50 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
51 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
52 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
53 inline CampaignEmailMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
54 inline CampaignEmailMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
55 inline CampaignEmailMessage& WithBody(const char* value) { SetBody(value); return *this;}
57
59
63 inline const Aws::String& GetFromAddress() const{ return m_fromAddress; }
64 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
65 inline void SetFromAddress(const Aws::String& value) { m_fromAddressHasBeenSet = true; m_fromAddress = value; }
66 inline void SetFromAddress(Aws::String&& value) { m_fromAddressHasBeenSet = true; m_fromAddress = std::move(value); }
67 inline void SetFromAddress(const char* value) { m_fromAddressHasBeenSet = true; m_fromAddress.assign(value); }
68 inline CampaignEmailMessage& WithFromAddress(const Aws::String& value) { SetFromAddress(value); return *this;}
69 inline CampaignEmailMessage& WithFromAddress(Aws::String&& value) { SetFromAddress(std::move(value)); return *this;}
70 inline CampaignEmailMessage& WithFromAddress(const char* value) { SetFromAddress(value); return *this;}
72
74
79 inline const Aws::Vector<MessageHeader>& GetHeaders() const{ return m_headers; }
80 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
81 inline void SetHeaders(const Aws::Vector<MessageHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
82 inline void SetHeaders(Aws::Vector<MessageHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
83 inline CampaignEmailMessage& WithHeaders(const Aws::Vector<MessageHeader>& value) { SetHeaders(value); return *this;}
84 inline CampaignEmailMessage& WithHeaders(Aws::Vector<MessageHeader>&& value) { SetHeaders(std::move(value)); return *this;}
85 inline CampaignEmailMessage& AddHeaders(const MessageHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
86 inline CampaignEmailMessage& AddHeaders(MessageHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
88
90
94 inline const Aws::String& GetHtmlBody() const{ return m_htmlBody; }
95 inline bool HtmlBodyHasBeenSet() const { return m_htmlBodyHasBeenSet; }
96 inline void SetHtmlBody(const Aws::String& value) { m_htmlBodyHasBeenSet = true; m_htmlBody = value; }
97 inline void SetHtmlBody(Aws::String&& value) { m_htmlBodyHasBeenSet = true; m_htmlBody = std::move(value); }
98 inline void SetHtmlBody(const char* value) { m_htmlBodyHasBeenSet = true; m_htmlBody.assign(value); }
99 inline CampaignEmailMessage& WithHtmlBody(const Aws::String& value) { SetHtmlBody(value); return *this;}
100 inline CampaignEmailMessage& WithHtmlBody(Aws::String&& value) { SetHtmlBody(std::move(value)); return *this;}
101 inline CampaignEmailMessage& WithHtmlBody(const char* value) { SetHtmlBody(value); return *this;}
103
105
108 inline const Aws::String& GetTitle() const{ return m_title; }
109 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
110 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
111 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
112 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
113 inline CampaignEmailMessage& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
114 inline CampaignEmailMessage& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
115 inline CampaignEmailMessage& WithTitle(const char* value) { SetTitle(value); return *this;}
117 private:
118
119 Aws::String m_body;
120 bool m_bodyHasBeenSet = false;
121
122 Aws::String m_fromAddress;
123 bool m_fromAddressHasBeenSet = false;
124
126 bool m_headersHasBeenSet = false;
127
128 Aws::String m_htmlBody;
129 bool m_htmlBodyHasBeenSet = false;
130
131 Aws::String m_title;
132 bool m_titleHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Pinpoint
137} // namespace Aws
CampaignEmailMessage & WithTitle(Aws::String &&value)
void SetFromAddress(const Aws::String &value)
CampaignEmailMessage & WithFromAddress(Aws::String &&value)
CampaignEmailMessage & WithBody(const Aws::String &value)
CampaignEmailMessage & WithHeaders(const Aws::Vector< MessageHeader > &value)
AWS_PINPOINT_API CampaignEmailMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
CampaignEmailMessage & WithFromAddress(const Aws::String &value)
CampaignEmailMessage & AddHeaders(MessageHeader &&value)
CampaignEmailMessage & WithHtmlBody(Aws::String &&value)
CampaignEmailMessage & WithHtmlBody(const Aws::String &value)
CampaignEmailMessage & WithHeaders(Aws::Vector< MessageHeader > &&value)
const Aws::Vector< MessageHeader > & GetHeaders() const
CampaignEmailMessage & WithFromAddress(const char *value)
void SetHeaders(const Aws::Vector< MessageHeader > &value)
CampaignEmailMessage & WithBody(Aws::String &&value)
CampaignEmailMessage & WithTitle(const char *value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHeaders(Aws::Vector< MessageHeader > &&value)
CampaignEmailMessage & AddHeaders(const MessageHeader &value)
CampaignEmailMessage & WithTitle(const Aws::String &value)
CampaignEmailMessage & WithBody(const char *value)
CampaignEmailMessage & WithHtmlBody(const char *value)
AWS_PINPOINT_API CampaignEmailMessage(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue