AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
OutboundRawMessage.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
28 public:
29 AWS_CONNECT_API OutboundRawMessage() = default;
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetSubject() const { return m_subject; }
39 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
40 template <typename SubjectT = Aws::String>
41 void SetSubject(SubjectT&& value) {
42 m_subjectHasBeenSet = true;
43 m_subject = std::forward<SubjectT>(value);
44 }
45 template <typename SubjectT = Aws::String>
46 OutboundRawMessage& WithSubject(SubjectT&& value) {
47 SetSubject(std::forward<SubjectT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBody() const { return m_body; }
57 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
58 template <typename BodyT = Aws::String>
59 void SetBody(BodyT&& value) {
60 m_bodyHasBeenSet = true;
61 m_body = std::forward<BodyT>(value);
62 }
63 template <typename BodyT = Aws::String>
64 OutboundRawMessage& WithBody(BodyT&& value) {
65 SetBody(std::forward<BodyT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetContentType() const { return m_contentType; }
76 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
77 template <typename ContentTypeT = Aws::String>
78 void SetContentType(ContentTypeT&& value) {
79 m_contentTypeHasBeenSet = true;
80 m_contentType = std::forward<ContentTypeT>(value);
81 }
82 template <typename ContentTypeT = Aws::String>
83 OutboundRawMessage& WithContentType(ContentTypeT&& value) {
84 SetContentType(std::forward<ContentTypeT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_subject;
90
91 Aws::String m_body;
92
93 Aws::String m_contentType;
94 bool m_subjectHasBeenSet = false;
95 bool m_bodyHasBeenSet = false;
96 bool m_contentTypeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Connect
101} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
OutboundRawMessage & WithContentType(ContentTypeT &&value)
AWS_CONNECT_API OutboundRawMessage()=default
AWS_CONNECT_API OutboundRawMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
OutboundRawMessage & WithBody(BodyT &&value)
void SetContentType(ContentTypeT &&value)
OutboundRawMessage & WithSubject(SubjectT &&value)
AWS_CONNECT_API OutboundRawMessage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContentType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue