AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
InboundRawMessage.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EmailHeaderType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30 public:
31 AWS_CONNECT_API InboundRawMessage() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSubject() const { return m_subject; }
41 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
42 template <typename SubjectT = Aws::String>
43 void SetSubject(SubjectT&& value) {
44 m_subjectHasBeenSet = true;
45 m_subject = std::forward<SubjectT>(value);
46 }
47 template <typename SubjectT = Aws::String>
48 InboundRawMessage& WithSubject(SubjectT&& value) {
49 SetSubject(std::forward<SubjectT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBody() const { return m_body; }
59 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
60 template <typename BodyT = Aws::String>
61 void SetBody(BodyT&& value) {
62 m_bodyHasBeenSet = true;
63 m_body = std::forward<BodyT>(value);
64 }
65 template <typename BodyT = Aws::String>
66 InboundRawMessage& WithBody(BodyT&& value) {
67 SetBody(std::forward<BodyT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetContentType() const { return m_contentType; }
78 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
79 template <typename ContentTypeT = Aws::String>
80 void SetContentType(ContentTypeT&& value) {
81 m_contentTypeHasBeenSet = true;
82 m_contentType = std::forward<ContentTypeT>(value);
83 }
84 template <typename ContentTypeT = Aws::String>
85 InboundRawMessage& WithContentType(ContentTypeT&& value) {
86 SetContentType(std::forward<ContentTypeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Map<EmailHeaderType, Aws::String>& GetHeaders() const { return m_headers; }
96 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
97 template <typename HeadersT = Aws::Map<EmailHeaderType, Aws::String>>
98 void SetHeaders(HeadersT&& value) {
99 m_headersHasBeenSet = true;
100 m_headers = std::forward<HeadersT>(value);
101 }
102 template <typename HeadersT = Aws::Map<EmailHeaderType, Aws::String>>
103 InboundRawMessage& WithHeaders(HeadersT&& value) {
104 SetHeaders(std::forward<HeadersT>(value));
105 return *this;
106 }
108 m_headersHasBeenSet = true;
109 m_headers.emplace(key, value);
110 return *this;
111 }
113 private:
114 Aws::String m_subject;
115
116 Aws::String m_body;
117
118 Aws::String m_contentType;
119
121 bool m_subjectHasBeenSet = false;
122 bool m_bodyHasBeenSet = false;
123 bool m_contentTypeHasBeenSet = false;
124 bool m_headersHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Connect
129} // namespace Aws
const Aws::String & GetSubject() const
InboundRawMessage & WithHeaders(HeadersT &&value)
InboundRawMessage & WithBody(BodyT &&value)
AWS_CONNECT_API InboundRawMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(ContentTypeT &&value)
AWS_CONNECT_API InboundRawMessage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBody() const
InboundRawMessage & AddHeaders(EmailHeaderType key, Aws::String value)
InboundRawMessage & WithSubject(SubjectT &&value)
const Aws::Map< EmailHeaderType, Aws::String > & GetHeaders() const
InboundRawMessage & WithContentType(ContentTypeT &&value)
const Aws::String & GetContentType() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API InboundRawMessage()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue