AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
ChatMessage.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 ChatMessage() = default;
30 AWS_CONNECT_API ChatMessage(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::String& GetContentType() const { return m_contentType; }
41 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
42 template <typename ContentTypeT = Aws::String>
43 void SetContentType(ContentTypeT&& value) {
44 m_contentTypeHasBeenSet = true;
45 m_contentType = std::forward<ContentTypeT>(value);
46 }
47 template <typename ContentTypeT = Aws::String>
48 ChatMessage& WithContentType(ContentTypeT&& value) {
49 SetContentType(std::forward<ContentTypeT>(value));
50 return *this;
51 }
53
55
66 inline const Aws::String& GetContent() const { return m_content; }
67 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
68 template <typename ContentT = Aws::String>
69 void SetContent(ContentT&& value) {
70 m_contentHasBeenSet = true;
71 m_content = std::forward<ContentT>(value);
72 }
73 template <typename ContentT = Aws::String>
74 ChatMessage& WithContent(ContentT&& value) {
75 SetContent(std::forward<ContentT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_contentType;
81
82 Aws::String m_content;
83 bool m_contentTypeHasBeenSet = false;
84 bool m_contentHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Connect
89} // namespace Aws
void SetContentType(ContentTypeT &&value)
Definition ChatMessage.h:43
AWS_CONNECT_API ChatMessage()=default
ChatMessage & WithContent(ContentT &&value)
Definition ChatMessage.h:74
const Aws::String & GetContent() const
Definition ChatMessage.h:66
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ChatMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContent(ContentT &&value)
Definition ChatMessage.h:69
AWS_CONNECT_API ChatMessage(Aws::Utils::Json::JsonView jsonValue)
ChatMessage & WithContentType(ContentTypeT &&value)
Definition ChatMessage.h:48
const Aws::String & GetContentType() const
Definition ChatMessage.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue