AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ChatEventType& GetType() const{ return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(const ChatEventType& value) { m_typeHasBeenSet = true; m_type = value; }
51 inline void SetType(ChatEventType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
52 inline ChatEvent& WithType(const ChatEventType& value) { SetType(value); return *this;}
53 inline ChatEvent& WithType(ChatEventType&& value) { SetType(std::move(value)); return *this;}
55
57
69 inline const Aws::String& GetContentType() const{ return m_contentType; }
70 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
71 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
72 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
73 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
74 inline ChatEvent& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
75 inline ChatEvent& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
76 inline ChatEvent& WithContentType(const char* value) { SetContentType(value); return *this;}
78
80
93 inline const Aws::String& GetContent() const{ return m_content; }
94 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
95 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
96 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
97 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
98 inline ChatEvent& WithContent(const Aws::String& value) { SetContent(value); return *this;}
99 inline ChatEvent& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
100 inline ChatEvent& WithContent(const char* value) { SetContent(value); return *this;}
102 private:
103
104 ChatEventType m_type;
105 bool m_typeHasBeenSet = false;
106
107 Aws::String m_contentType;
108 bool m_contentTypeHasBeenSet = false;
109
110 Aws::String m_content;
111 bool m_contentHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Connect
116} // namespace Aws
ChatEvent & WithContent(Aws::String &&value)
Definition ChatEvent.h:99
void SetContent(const char *value)
Definition ChatEvent.h:97
const ChatEventType & GetType() const
Definition ChatEvent.h:48
bool ContentTypeHasBeenSet() const
Definition ChatEvent.h:70
void SetContentType(const char *value)
Definition ChatEvent.h:73
ChatEvent & WithContent(const char *value)
Definition ChatEvent.h:100
ChatEvent & WithType(const ChatEventType &value)
Definition ChatEvent.h:52
ChatEvent & WithContentType(const char *value)
Definition ChatEvent.h:76
void SetContentType(const Aws::String &value)
Definition ChatEvent.h:71
void SetType(const ChatEventType &value)
Definition ChatEvent.h:50
AWS_CONNECT_API ChatEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContent() const
Definition ChatEvent.h:93
void SetType(ChatEventType &&value)
Definition ChatEvent.h:51
void SetContent(const Aws::String &value)
Definition ChatEvent.h:95
ChatEvent & WithContentType(const Aws::String &value)
Definition ChatEvent.h:74
ChatEvent & WithType(ChatEventType &&value)
Definition ChatEvent.h:53
const Aws::String & GetContentType() const
Definition ChatEvent.h:69
void SetContentType(Aws::String &&value)
Definition ChatEvent.h:72
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(Aws::String &&value)
Definition ChatEvent.h:96
AWS_CONNECT_API ChatEvent(Aws::Utils::Json::JsonView jsonValue)
ChatEvent & WithContent(const Aws::String &value)
Definition ChatEvent.h:98
ChatEvent & WithContentType(Aws::String &&value)
Definition ChatEvent.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue