AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConversationMessage.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qapps/model/Sender.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 QApps
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QAPPS_API ConversationMessage() = default;
39 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBody() const { return m_body; }
47 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
48 template<typename BodyT = Aws::String>
49 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
50 template<typename BodyT = Aws::String>
51 ConversationMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
53
55
58 inline Sender GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(Sender value) { m_typeHasBeenSet = true; m_type = value; }
61 inline ConversationMessage& WithType(Sender value) { SetType(value); return *this;}
63 private:
64
65 Aws::String m_body;
66 bool m_bodyHasBeenSet = false;
67
68 Sender m_type{Sender::NOT_SET};
69 bool m_typeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace QApps
74} // namespace Aws
ConversationMessage & WithType(Sender value)
AWS_QAPPS_API ConversationMessage()=default
ConversationMessage & WithBody(BodyT &&value)
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QAPPS_API ConversationMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QAPPS_API ConversationMessage(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue