AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EmailContent.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/model/Message.h>
9#include <aws/sesv2/model/RawMessage.h>
10#include <aws/sesv2/model/Template.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SESV2
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_SESV2_API EmailContent();
42 AWS_SESV2_API EmailContent(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Message& GetSimple() const{ return m_simple; }
53 inline bool SimpleHasBeenSet() const { return m_simpleHasBeenSet; }
54 inline void SetSimple(const Message& value) { m_simpleHasBeenSet = true; m_simple = value; }
55 inline void SetSimple(Message&& value) { m_simpleHasBeenSet = true; m_simple = std::move(value); }
56 inline EmailContent& WithSimple(const Message& value) { SetSimple(value); return *this;}
57 inline EmailContent& WithSimple(Message&& value) { SetSimple(std::move(value)); return *this;}
59
61
78 inline const RawMessage& GetRaw() const{ return m_raw; }
79 inline bool RawHasBeenSet() const { return m_rawHasBeenSet; }
80 inline void SetRaw(const RawMessage& value) { m_rawHasBeenSet = true; m_raw = value; }
81 inline void SetRaw(RawMessage&& value) { m_rawHasBeenSet = true; m_raw = std::move(value); }
82 inline EmailContent& WithRaw(const RawMessage& value) { SetRaw(value); return *this;}
83 inline EmailContent& WithRaw(RawMessage&& value) { SetRaw(std::move(value)); return *this;}
85
87
90 inline const Template& GetTemplate() const{ return m_template; }
91 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
92 inline void SetTemplate(const Template& value) { m_templateHasBeenSet = true; m_template = value; }
93 inline void SetTemplate(Template&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
94 inline EmailContent& WithTemplate(const Template& value) { SetTemplate(value); return *this;}
95 inline EmailContent& WithTemplate(Template&& value) { SetTemplate(std::move(value)); return *this;}
97 private:
98
99 Message m_simple;
100 bool m_simpleHasBeenSet = false;
101
102 RawMessage m_raw;
103 bool m_rawHasBeenSet = false;
104
105 Template m_template;
106 bool m_templateHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SESV2
111} // namespace Aws
EmailContent & WithSimple(const Message &value)
AWS_SESV2_API EmailContent(Aws::Utils::Json::JsonView jsonValue)
void SetRaw(RawMessage &&value)
EmailContent & WithTemplate(Template &&value)
EmailContent & WithSimple(Message &&value)
EmailContent & WithRaw(const RawMessage &value)
const RawMessage & GetRaw() const
void SetTemplate(Template &&value)
EmailContent & WithRaw(RawMessage &&value)
EmailContent & WithTemplate(const Template &value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Message & GetSimple() const
void SetSimple(const Message &value)
void SetSimple(Message &&value)
void SetTemplate(const Template &value)
AWS_SESV2_API EmailContent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Template & GetTemplate() const
void SetRaw(const RawMessage &value)
Aws::Utils::Json::JsonValue JsonValue