AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
49 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
50 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
51 inline ChatMessage& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
52 inline ChatMessage& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
53 inline ChatMessage& WithContentType(const char* value) { SetContentType(value); return *this;}
55
57
66 inline const Aws::String& GetContent() const{ return m_content; }
67 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
68 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
69 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
70 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
71 inline ChatMessage& WithContent(const Aws::String& value) { SetContent(value); return *this;}
72 inline ChatMessage& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
73 inline ChatMessage& WithContent(const char* value) { SetContent(value); return *this;}
75 private:
76
77 Aws::String m_contentType;
78 bool m_contentTypeHasBeenSet = false;
79
80 Aws::String m_content;
81 bool m_contentHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Connect
86} // namespace Aws
ChatMessage & WithContentType(Aws::String &&value)
Definition ChatMessage.h:52
void SetContentType(Aws::String &&value)
Definition ChatMessage.h:49
void SetContent(const char *value)
Definition ChatMessage.h:70
ChatMessage & WithContent(Aws::String &&value)
Definition ChatMessage.h:72
const Aws::String & GetContent() const
Definition ChatMessage.h:66
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ChatMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContent(const Aws::String &value)
Definition ChatMessage.h:68
ChatMessage & WithContentType(const char *value)
Definition ChatMessage.h:53
void SetContentType(const Aws::String &value)
Definition ChatMessage.h:48
AWS_CONNECT_API ChatMessage(Aws::Utils::Json::JsonView jsonValue)
ChatMessage & WithContent(const char *value)
Definition ChatMessage.h:73
void SetContentType(const char *value)
Definition ChatMessage.h:50
const Aws::String & GetContentType() const
Definition ChatMessage.h:46
void SetContent(Aws::String &&value)
Definition ChatMessage.h:69
ChatMessage & WithContent(const Aws::String &value)
Definition ChatMessage.h:71
ChatMessage & WithContentType(const Aws::String &value)
Definition ChatMessage.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue