AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EmailTemplateContent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SESV2 {
20namespace Model {
21
29 public:
30 AWS_SESV2_API EmailTemplateContent() = default;
33 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetSubject() const { return m_subject; }
40 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
41 template <typename SubjectT = Aws::String>
42 void SetSubject(SubjectT&& value) {
43 m_subjectHasBeenSet = true;
44 m_subject = std::forward<SubjectT>(value);
45 }
46 template <typename SubjectT = Aws::String>
47 EmailTemplateContent& WithSubject(SubjectT&& value) {
48 SetSubject(std::forward<SubjectT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetText() const { return m_text; }
59 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
60 template <typename TextT = Aws::String>
61 void SetText(TextT&& value) {
62 m_textHasBeenSet = true;
63 m_text = std::forward<TextT>(value);
64 }
65 template <typename TextT = Aws::String>
67 SetText(std::forward<TextT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetHtml() const { return m_html; }
77 inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
78 template <typename HtmlT = Aws::String>
79 void SetHtml(HtmlT&& value) {
80 m_htmlHasBeenSet = true;
81 m_html = std::forward<HtmlT>(value);
82 }
83 template <typename HtmlT = Aws::String>
85 SetHtml(std::forward<HtmlT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_subject;
91
92 Aws::String m_text;
93
94 Aws::String m_html;
95 bool m_subjectHasBeenSet = false;
96 bool m_textHasBeenSet = false;
97 bool m_htmlHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SESV2
102} // namespace Aws
EmailTemplateContent & WithText(TextT &&value)
EmailTemplateContent & WithSubject(SubjectT &&value)
AWS_SESV2_API EmailTemplateContent()=default
AWS_SESV2_API EmailTemplateContent(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API EmailTemplateContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
EmailTemplateContent & WithHtml(HtmlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue