AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Body.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/model/Content.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PinpointEmail {
20namespace Model {
21
27class Body {
28 public:
29 AWS_PINPOINTEMAIL_API Body() = default;
30 AWS_PINPOINTEMAIL_API Body(Aws::Utils::Json::JsonView jsonValue);
31 AWS_PINPOINTEMAIL_API Body& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Content& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Content>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Content>
48 Body& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
60 inline const Content& GetHtml() const { return m_html; }
61 inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
62 template <typename HtmlT = Content>
63 void SetHtml(HtmlT&& value) {
64 m_htmlHasBeenSet = true;
65 m_html = std::forward<HtmlT>(value);
66 }
67 template <typename HtmlT = Content>
68 Body& WithHtml(HtmlT&& value) {
69 SetHtml(std::forward<HtmlT>(value));
70 return *this;
71 }
73 private:
74 Content m_text;
75
76 Content m_html;
77 bool m_textHasBeenSet = false;
78 bool m_htmlHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace PinpointEmail
83} // namespace Aws
const Content & GetText() const
Definition Body.h:40
AWS_PINPOINTEMAIL_API Body(Aws::Utils::Json::JsonView jsonValue)
void SetHtml(HtmlT &&value)
Definition Body.h:63
const Content & GetHtml() const
Definition Body.h:60
AWS_PINPOINTEMAIL_API Body()=default
void SetText(TextT &&value)
Definition Body.h:43
Body & WithHtml(HtmlT &&value)
Definition Body.h:68
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Body & WithText(TextT &&value)
Definition Body.h:48
AWS_PINPOINTEMAIL_API Body & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TextHasBeenSet() const
Definition Body.h:41
bool HtmlHasBeenSet() const
Definition Body.h:61
Aws::Utils::Json::JsonValue JsonValue