AWS SDK for C++  1.9.160
AWS SDK for C++
Body.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SESV2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Body();
38 
39 
45  inline const Content& GetText() const{ return m_text; }
46 
52  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
53 
59  inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; }
60 
66  inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
67 
73  inline Body& WithText(const Content& value) { SetText(value); return *this;}
74 
80  inline Body& WithText(Content&& value) { SetText(std::move(value)); return *this;}
81 
82 
88  inline const Content& GetHtml() const{ return m_html; }
89 
95  inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
96 
102  inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; }
103 
109  inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); }
110 
116  inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;}
117 
123  inline Body& WithHtml(Content&& value) { SetHtml(std::move(value)); return *this;}
124 
125  private:
126 
127  Content m_text;
128  bool m_textHasBeenSet;
129 
130  Content m_html;
131  bool m_htmlHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace SESV2
136 } // namespace Aws
Aws::SESV2::Model::Body::WithText
Body & WithText(Content &&value)
Definition: Body.h:80
Aws::SESV2::Model::Body::GetText
const Content & GetText() const
Definition: Body.h:45
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::Body::WithHtml
Body & WithHtml(Content &&value)
Definition: Body.h:123
Aws::SESV2::Model::Body::GetHtml
const Content & GetHtml() const
Definition: Body.h:88
Aws::SESV2::Model::Body::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SESV2::Model::Body::SetText
void SetText(Content &&value)
Definition: Body.h:66
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SESV2::Model::Body::Body
Body(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
SESV2_EXPORTS.h
Aws::SESV2::Model::Body::HtmlHasBeenSet
bool HtmlHasBeenSet() const
Definition: Body.h:95
Aws::SESV2::Model::Body::operator=
Body & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::SESV2::Model::Body::SetText
void SetText(const Content &value)
Definition: Body.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::Content
Definition: Content.h:33
Aws::SESV2::Model::Body::WithText
Body & WithText(const Content &value)
Definition: Body.h:73
Aws::SESV2::Model::Body::Body
Body()
Aws::SESV2::Model::Body::SetHtml
void SetHtml(Content &&value)
Definition: Body.h:109
Aws::SESV2::Model::Body::TextHasBeenSet
bool TextHasBeenSet() const
Definition: Body.h:52
Aws::SESV2::Model::Body::WithHtml
Body & WithHtml(const Content &value)
Definition: Body.h:116
Aws::SESV2::Model::Body::SetHtml
void SetHtml(const Content &value)
Definition: Body.h:102
Aws::SESV2::Model::Body
Definition: Body.h:32
Content.h