AWS SDK for C++  1.9.160
AWS SDK for C++
EmailContent.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SESV2
24 {
25 namespace Model
26 {
27 
39  {
40  public:
45 
46 
51  inline const Message& GetSimple() const{ return m_simple; }
52 
57  inline bool SimpleHasBeenSet() const { return m_simpleHasBeenSet; }
58 
63  inline void SetSimple(const Message& value) { m_simpleHasBeenSet = true; m_simple = value; }
64 
69  inline void SetSimple(Message&& value) { m_simpleHasBeenSet = true; m_simple = std::move(value); }
70 
75  inline EmailContent& WithSimple(const Message& value) { SetSimple(value); return *this;}
76 
81  inline EmailContent& WithSimple(Message&& value) { SetSimple(std::move(value)); return *this;}
82 
83 
99  inline const RawMessage& GetRaw() const{ return m_raw; }
100 
116  inline bool RawHasBeenSet() const { return m_rawHasBeenSet; }
117 
133  inline void SetRaw(const RawMessage& value) { m_rawHasBeenSet = true; m_raw = value; }
134 
150  inline void SetRaw(RawMessage&& value) { m_rawHasBeenSet = true; m_raw = std::move(value); }
151 
167  inline EmailContent& WithRaw(const RawMessage& value) { SetRaw(value); return *this;}
168 
184  inline EmailContent& WithRaw(RawMessage&& value) { SetRaw(std::move(value)); return *this;}
185 
186 
190  inline const Template& GetTemplate() const{ return m_template; }
191 
195  inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
196 
200  inline void SetTemplate(const Template& value) { m_templateHasBeenSet = true; m_template = value; }
201 
205  inline void SetTemplate(Template&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
206 
210  inline EmailContent& WithTemplate(const Template& value) { SetTemplate(value); return *this;}
211 
215  inline EmailContent& WithTemplate(Template&& value) { SetTemplate(std::move(value)); return *this;}
216 
217  private:
218 
219  Message m_simple;
220  bool m_simpleHasBeenSet;
221 
222  RawMessage m_raw;
223  bool m_rawHasBeenSet;
224 
225  Template m_template;
226  bool m_templateHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace SESV2
231 } // namespace Aws
Aws::SESV2::Model::EmailContent::TemplateHasBeenSet
bool TemplateHasBeenSet() const
Definition: EmailContent.h:195
Aws::SESV2::Model::EmailContent::SetRaw
void SetRaw(RawMessage &&value)
Definition: EmailContent.h:150
Aws::SESV2::Model::EmailContent::GetSimple
const Message & GetSimple() const
Definition: EmailContent.h:51
Aws::SESV2::Model::EmailContent::GetRaw
const RawMessage & GetRaw() const
Definition: EmailContent.h:99
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::EmailContent::EmailContent
EmailContent(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::RawMessage
Definition: RawMessage.h:32
Aws::SESV2::Model::EmailContent::EmailContent
EmailContent()
Aws::SESV2::Model::EmailContent::SetTemplate
void SetTemplate(Template &&value)
Definition: EmailContent.h:205
Aws::SESV2::Model::EmailContent::WithTemplate
EmailContent & WithTemplate(Template &&value)
Definition: EmailContent.h:215
Aws::SESV2::Model::EmailContent::WithTemplate
EmailContent & WithTemplate(const Template &value)
Definition: EmailContent.h:210
Aws::SESV2::Model::EmailContent::SimpleHasBeenSet
bool SimpleHasBeenSet() const
Definition: EmailContent.h:57
Aws::SESV2::Model::EmailContent::SetRaw
void SetRaw(const RawMessage &value)
Definition: EmailContent.h:133
Aws::SESV2::Model::EmailContent::SetSimple
void SetSimple(const Message &value)
Definition: EmailContent.h:63
Aws::SESV2::Model::Message
Definition: Message.h:34
Message.h
Aws::SESV2::Model::EmailContent::SetSimple
void SetSimple(Message &&value)
Definition: EmailContent.h:69
Aws::SESV2::Model::EmailContent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SESV2::Model::Template
Definition: Template.h:36
Aws::SESV2::Model::EmailContent::WithRaw
EmailContent & WithRaw(RawMessage &&value)
Definition: EmailContent.h:184
Aws::SESV2::Model::EmailContent::WithRaw
EmailContent & WithRaw(const RawMessage &value)
Definition: EmailContent.h:167
SESV2_EXPORTS.h
Template.h
Aws::SESV2::Model::EmailContent::SetTemplate
void SetTemplate(const Template &value)
Definition: EmailContent.h:200
Aws::SESV2::Model::EmailContent::WithSimple
EmailContent & WithSimple(Message &&value)
Definition: EmailContent.h:81
Aws::SESV2::Model::EmailContent::GetTemplate
const Template & GetTemplate() const
Definition: EmailContent.h:190
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::EmailContent
Definition: EmailContent.h:39
RawMessage.h
Aws::SESV2::Model::EmailContent::WithSimple
EmailContent & WithSimple(const Message &value)
Definition: EmailContent.h:75
Aws::SESV2::Model::EmailContent::RawHasBeenSet
bool RawHasBeenSet() const
Definition: EmailContent.h:116
Aws::SESV2::Model::EmailContent::operator=
EmailContent & operator=(Aws::Utils::Json::JsonView jsonValue)