AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CONNECT_API ChatEvent() = default;
39 AWS_CONNECT_API ChatEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API ChatEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline ChatEventType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(ChatEventType value) { m_typeHasBeenSet = true; m_type = value; }
51 inline ChatEvent& WithType(ChatEventType value) { SetType(value); return *this;}
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) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
71 template<typename ContentTypeT = Aws::String>
72 ChatEvent& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
74
76
89 inline const Aws::String& GetContent() const { return m_content; }
90 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
91 template<typename ContentT = Aws::String>
92 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
93 template<typename ContentT = Aws::String>
94 ChatEvent& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
96 private:
97
99 bool m_typeHasBeenSet = false;
100
101 Aws::String m_contentType;
102 bool m_contentTypeHasBeenSet = false;
103
104 Aws::String m_content;
105 bool m_contentHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Connect
110} // namespace Aws
bool ContentTypeHasBeenSet() const
Definition ChatEvent.h:68
ChatEvent & WithType(ChatEventType value)
Definition ChatEvent.h:51
ChatEvent & WithContent(ContentT &&value)
Definition ChatEvent.h:94
AWS_CONNECT_API ChatEvent()=default
AWS_CONNECT_API ChatEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContent() const
Definition ChatEvent.h:89
const Aws::String & GetContentType() const
Definition ChatEvent.h:67
ChatEvent & WithContentType(ContentTypeT &&value)
Definition ChatEvent.h:72
void SetContentType(ContentTypeT &&value)
Definition ChatEvent.h:70
ChatEventType GetType() const
Definition ChatEvent.h:48
void SetType(ChatEventType value)
Definition ChatEvent.h:50
void SetContent(ContentT &&value)
Definition ChatEvent.h:92
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