AWS SDK for C++  1.9.158
AWS SDK for C++
ChatMessage.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Connect
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetContentType() const{ return m_contentType; }
44 
48  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
49 
53  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
54 
58  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
59 
63  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
64 
68  inline ChatMessage& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
69 
73  inline ChatMessage& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
74 
78  inline ChatMessage& WithContentType(const char* value) { SetContentType(value); return *this;}
79 
80 
84  inline const Aws::String& GetContent() const{ return m_content; }
85 
89  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
90 
94  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
95 
99  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
100 
104  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
105 
109  inline ChatMessage& WithContent(const Aws::String& value) { SetContent(value); return *this;}
110 
114  inline ChatMessage& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
115 
119  inline ChatMessage& WithContent(const char* value) { SetContent(value); return *this;}
120 
121  private:
122 
123  Aws::String m_contentType;
124  bool m_contentTypeHasBeenSet;
125 
126  Aws::String m_content;
127  bool m_contentHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace Connect
132 } // namespace Aws
Aws::Connect::Model::ChatMessage::ChatMessage
ChatMessage()
Aws::Connect::Model::ChatMessage
Definition: ChatMessage.h:32
Aws::Connect::Model::ChatMessage::SetContentType
void SetContentType(const Aws::String &value)
Definition: ChatMessage.h:53
Aws::Connect::Model::ChatMessage::WithContentType
ChatMessage & WithContentType(const Aws::String &value)
Definition: ChatMessage.h:68
Aws::Connect::Model::ChatMessage::SetContentType
void SetContentType(Aws::String &&value)
Definition: ChatMessage.h:58
Aws::Connect::Model::ChatMessage::SetContentType
void SetContentType(const char *value)
Definition: ChatMessage.h:63
Aws::Connect::Model::ChatMessage::WithContent
ChatMessage & WithContent(const Aws::String &value)
Definition: ChatMessage.h:109
Aws::Connect::Model::ChatMessage::SetContent
void SetContent(const Aws::String &value)
Definition: ChatMessage.h:94
Aws::Connect::Model::ChatMessage::WithContent
ChatMessage & WithContent(Aws::String &&value)
Definition: ChatMessage.h:114
Aws::Connect::Model::ChatMessage::GetContentType
const Aws::String & GetContentType() const
Definition: ChatMessage.h:43
Aws::Connect::Model::ChatMessage::operator=
ChatMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::ChatMessage::GetContent
const Aws::String & GetContent() const
Definition: ChatMessage.h:84
Aws::Connect::Model::ChatMessage::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: ChatMessage.h:89
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::ChatMessage::SetContent
void SetContent(const char *value)
Definition: ChatMessage.h:104
Aws::Connect::Model::ChatMessage::WithContentType
ChatMessage & WithContentType(Aws::String &&value)
Definition: ChatMessage.h:73
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::ChatMessage::SetContent
void SetContent(Aws::String &&value)
Definition: ChatMessage.h:99
Aws::Connect::Model::ChatMessage::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: ChatMessage.h:48
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::ChatMessage::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::ChatMessage::ChatMessage
ChatMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::ChatMessage::WithContent
ChatMessage & WithContent(const char *value)
Definition: ChatMessage.h:119
Connect_EXPORTS.h
Aws::Connect::Model::ChatMessage::WithContentType
ChatMessage & WithContentType(const char *value)
Definition: ChatMessage.h:78