AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InboundRawMessage.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/connect/model/EmailHeaderType.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 Connect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECT_API InboundRawMessage() = default;
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSubject() const { return m_subject; }
47 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
48 template<typename SubjectT = Aws::String>
49 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
50 template<typename SubjectT = Aws::String>
51 InboundRawMessage& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
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) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
62 template<typename BodyT = Aws::String>
63 InboundRawMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
65
67
71 inline const Aws::String& GetContentType() const { return m_contentType; }
72 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
73 template<typename ContentTypeT = Aws::String>
74 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
75 template<typename ContentTypeT = Aws::String>
76 InboundRawMessage& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
78
80
83 inline const Aws::Map<EmailHeaderType, Aws::String>& GetHeaders() const { return m_headers; }
84 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
85 template<typename HeadersT = Aws::Map<EmailHeaderType, Aws::String>>
86 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers = std::forward<HeadersT>(value); }
87 template<typename HeadersT = Aws::Map<EmailHeaderType, Aws::String>>
88 InboundRawMessage& WithHeaders(HeadersT&& value) { SetHeaders(std::forward<HeadersT>(value)); return *this;}
90 m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this;
91 }
93 private:
94
95 Aws::String m_subject;
96 bool m_subjectHasBeenSet = false;
97
98 Aws::String m_body;
99 bool m_bodyHasBeenSet = false;
100
101 Aws::String m_contentType;
102 bool m_contentTypeHasBeenSet = false;
103
105 bool m_headersHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Connect
110} // 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