AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; }
49 inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
50 inline Body& WithText(const Content& value) { SetText(value); return *this;}
51 inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;}
53
55
60 inline const Content& GetHtml() const{ return m_html; }
61 inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
62 inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; }
63 inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
64 inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;}
65 inline Body& WithHtml(Content&& value) { SetHtml(std::move(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(Content &&value)
Definition Body.h:63
Body & WithText(Content &&value)
Definition Body.h:51
void SetText(Content &&value)
Definition Body.h:49
AWS_PINPOINTEMAIL_API Body()
const Content & GetHtml() const
Definition Body.h:60
void SetText(const Content &value)
Definition Body.h:48
Body & WithHtml(Content &&value)
Definition Body.h:65
void SetHtml(const Content &value)
Definition Body.h:62
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Body & WithText(const Content &value)
Definition Body.h:50
Body & WithHtml(const Content &value)
Definition Body.h:64
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