AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ChatEvent.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ChatEventType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31class ChatEvent {
32 public:
33 AWS_CONNECT_API ChatEvent() = default;
34 AWS_CONNECT_API ChatEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API ChatEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ChatEventType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(ChatEventType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
67 inline const Aws::String& GetContentType() const { return m_contentType; }
68 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
69 template <typename ContentTypeT = Aws::String>
70 void SetContentType(ContentTypeT&& value) {
71 m_contentTypeHasBeenSet = true;
72 m_contentType = std::forward<ContentTypeT>(value);
73 }
74 template <typename ContentTypeT = Aws::String>
75 ChatEvent& WithContentType(ContentTypeT&& value) {
76 SetContentType(std::forward<ContentTypeT>(value));
77 return *this;
78 }
80
82
95 inline const Aws::String& GetContent() const { return m_content; }
96 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
97 template <typename ContentT = Aws::String>
98 void SetContent(ContentT&& value) {
99 m_contentHasBeenSet = true;
100 m_content = std::forward<ContentT>(value);
101 }
102 template <typename ContentT = Aws::String>
103 ChatEvent& WithContent(ContentT&& value) {
104 SetContent(std::forward<ContentT>(value));
105 return *this;
106 }
108 private:
110
111 Aws::String m_contentType;
112
113 Aws::String m_content;
114 bool m_typeHasBeenSet = false;
115 bool m_contentTypeHasBeenSet = false;
116 bool m_contentHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Connect
121} // namespace Aws
bool ContentTypeHasBeenSet() const
Definition ChatEvent.h:68
ChatEvent & WithType(ChatEventType value)
Definition ChatEvent.h:48
ChatEvent & WithContent(ContentT &&value)
Definition ChatEvent.h:103
AWS_CONNECT_API ChatEvent()=default
AWS_CONNECT_API ChatEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContent() const
Definition ChatEvent.h:95
const Aws::String & GetContentType() const
Definition ChatEvent.h:67
ChatEvent & WithContentType(ContentTypeT &&value)
Definition ChatEvent.h:75
void SetContentType(ContentTypeT &&value)
Definition ChatEvent.h:70
ChatEventType GetType() const
Definition ChatEvent.h:42
void SetType(ChatEventType value)
Definition ChatEvent.h:44
void SetContent(ContentT &&value)
Definition ChatEvent.h:98
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ChatEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue