AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECT_API ChatMessage() = default;
35 AWS_CONNECT_API ChatMessage(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline const Aws::String& GetContentType() const { return m_contentType; }
47 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
48 template<typename ContentTypeT = Aws::String>
49 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
50 template<typename ContentTypeT = Aws::String>
51 ChatMessage& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
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) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
68 template<typename ContentT = Aws::String>
69 ChatMessage& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
71 private:
72
73 Aws::String m_contentType;
74 bool m_contentTypeHasBeenSet = false;
75
76 Aws::String m_content;
77 bool m_contentHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Connect
82} // namespace Aws
void SetContentType(ContentTypeT &&value)
Definition ChatMessage.h:49
AWS_CONNECT_API ChatMessage()=default
ChatMessage & WithContent(ContentT &&value)
Definition ChatMessage.h:69
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:51
const Aws::String & GetContentType() const
Definition ChatMessage.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue