AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PinpointEmail
22{
23namespace Model
24{
25
31 class Body
32 {
33 public:
34 AWS_PINPOINTEMAIL_API Body() = default;
35 AWS_PINPOINTEMAIL_API Body(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PINPOINTEMAIL_API Body& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline const Content& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = Content>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = Content>
51 Body& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
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) { m_htmlHasBeenSet = true; m_html = std::forward<HtmlT>(value); }
64 template<typename HtmlT = Content>
65 Body& WithHtml(HtmlT&& value) { SetHtml(std::forward<HtmlT>(value)); return *this;}
67 private:
68
69 Content m_text;
70 bool m_textHasBeenSet = false;
71
72 Content m_html;
73 bool m_htmlHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace PinpointEmail
78} // namespace Aws
const Content & GetText() const
Definition Body.h:46
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:49
Body & WithHtml(HtmlT &&value)
Definition Body.h:65
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Body & WithText(TextT &&value)
Definition Body.h:51
AWS_PINPOINTEMAIL_API Body & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TextHasBeenSet() const
Definition Body.h:47
bool HtmlHasBeenSet() const
Definition Body.h:61
Aws::Utils::Json::JsonValue JsonValue