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/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/model/Message.h>
9#include <aws/pinpoint-email/model/RawMessage.h>
10#include <aws/pinpoint-email/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 PinpointEmail
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_PINPOINTEMAIL_API EmailContent();
42 AWS_PINPOINTEMAIL_API EmailContent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINTEMAIL_API EmailContent& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PINPOINTEMAIL_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
75 inline const RawMessage& GetRaw() const{ return m_raw; }
76 inline bool RawHasBeenSet() const { return m_rawHasBeenSet; }
77 inline void SetRaw(const RawMessage& value) { m_rawHasBeenSet = true; m_raw = value; }
78 inline void SetRaw(RawMessage&& value) { m_rawHasBeenSet = true; m_raw = std::move(value); }
79 inline EmailContent& WithRaw(const RawMessage& value) { SetRaw(value); return *this;}
80 inline EmailContent& WithRaw(RawMessage&& value) { SetRaw(std::move(value)); return *this;}
82
84
87 inline const Template& GetTemplate() const{ return m_template; }
88 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
89 inline void SetTemplate(const Template& value) { m_templateHasBeenSet = true; m_template = value; }
90 inline void SetTemplate(Template&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
91 inline EmailContent& WithTemplate(const Template& value) { SetTemplate(value); return *this;}
92 inline EmailContent& WithTemplate(Template&& value) { SetTemplate(std::move(value)); return *this;}
94 private:
95
96 Message m_simple;
97 bool m_simpleHasBeenSet = false;
98
99 RawMessage m_raw;
100 bool m_rawHasBeenSet = false;
101
102 Template m_template;
103 bool m_templateHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace PinpointEmail
108} // namespace Aws
EmailContent & WithRaw(const RawMessage &value)
void SetRaw(const RawMessage &value)
EmailContent & WithSimple(Message &&value)
AWS_PINPOINTEMAIL_API EmailContent(Aws::Utils::Json::JsonView jsonValue)
const Template & GetTemplate() const
const RawMessage & GetRaw() const
EmailContent & WithSimple(const Message &value)
AWS_PINPOINTEMAIL_API EmailContent & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailContent & WithTemplate(const Template &value)
void SetTemplate(const Template &value)
EmailContent & WithTemplate(Template &&value)
void SetSimple(const Message &value)
AWS_PINPOINTEMAIL_API EmailContent()
EmailContent & WithRaw(RawMessage &&value)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue