AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
64 inline const Aws::String& GetContent() const { return m_content; }
65 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
66 template <typename ContentT = Aws::String>
67 void SetContent(ContentT&& value) {
68 m_contentHasBeenSet = true;
69 m_content = std::forward<ContentT>(value);
70 }
71 template <typename ContentT = Aws::String>
72 ChatMessage& WithContent(ContentT&& value) {
73 SetContent(std::forward<ContentT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_contentType;
79
80 Aws::String m_content;
81 bool m_contentTypeHasBeenSet = false;
82 bool m_contentHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Connect
87} // namespace Aws
void SetContentType(ContentTypeT &&value)
Definition ChatMessage.h:43
AWS_CONNECT_API ChatMessage()=default
ChatMessage & WithContent(ContentT &&value)
Definition ChatMessage.h:72
const Aws::String & GetContent() const
Definition ChatMessage.h:64
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:67
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