AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECT_API OutboundRawMessage() = default;
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetSubject() const { return m_subject; }
45 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
46 template<typename SubjectT = Aws::String>
47 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
48 template<typename SubjectT = Aws::String>
49 OutboundRawMessage& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
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) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
60 template<typename BodyT = Aws::String>
61 OutboundRawMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
63
65
69 inline const Aws::String& GetContentType() const { return m_contentType; }
70 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
71 template<typename ContentTypeT = Aws::String>
72 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
73 template<typename ContentTypeT = Aws::String>
74 OutboundRawMessage& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
76 private:
77
78 Aws::String m_subject;
79 bool m_subjectHasBeenSet = false;
80
81 Aws::String m_body;
82 bool m_bodyHasBeenSet = false;
83
84 Aws::String m_contentType;
85 bool m_contentTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Connect
90} // 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