AWS SDK for C++  1.9.156
AWS SDK for C++
Message.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/sesv2/model/Body.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SESV2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
48  inline const Content& GetSubject() const{ return m_subject; }
49 
56  inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
57 
64  inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
65 
72  inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
73 
80  inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
81 
88  inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
89 
90 
95  inline const Body& GetBody() const{ return m_body; }
96 
101  inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
102 
107  inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
108 
113  inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
114 
119  inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
120 
125  inline Message& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
126 
127  private:
128 
129  Content m_subject;
130  bool m_subjectHasBeenSet;
131 
132  Body m_body;
133  bool m_bodyHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace SESV2
138 } // namespace Aws
Aws::SESV2::Model::Message::SetBody
void SetBody(Body &&value)
Definition: Message.h:113
Aws::SESV2::Model::Message::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::Message::WithSubject
Message & WithSubject(Content &&value)
Definition: Message.h:88
Aws::SESV2::Model::Message::Message
Message(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::Message::BodyHasBeenSet
bool BodyHasBeenSet() const
Definition: Message.h:101
Aws::SESV2::Model::Message::SetSubject
void SetSubject(const Content &value)
Definition: Message.h:64
Aws::SESV2::Model::Message::WithBody
Message & WithBody(Body &&value)
Definition: Message.h:125
Aws::SESV2::Model::Message::operator=
Message & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::Message::WithSubject
Message & WithSubject(const Content &value)
Definition: Message.h:80
Aws::SESV2::Model::Message::GetBody
const Body & GetBody() const
Definition: Message.h:95
Aws::SESV2::Model::Message::WithBody
Message & WithBody(const Body &value)
Definition: Message.h:119
Aws::SESV2::Model::Message
Definition: Message.h:34
Aws::SESV2::Model::Message::GetSubject
const Content & GetSubject() const
Definition: Message.h:48
Aws::SESV2::Model::Message::Message
Message()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
SESV2_EXPORTS.h
Body.h
Aws::SESV2::Model::Message::SubjectHasBeenSet
bool SubjectHasBeenSet() const
Definition: Message.h:56
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::SESV2::Model::Message::SetSubject
void SetSubject(Content &&value)
Definition: Message.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::Content
Definition: Content.h:33
Aws::SESV2::Model::Body
Definition: Body.h:32
Aws::SESV2::Model::Message::SetBody
void SetBody(const Body &value)
Definition: Message.h:107
Content.h