AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ConversationMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qapps/QApps_EXPORTS.h>
9#include <aws/qapps/model/Sender.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QApps {
21namespace Model {
22
30 public:
31 AWS_QAPPS_API ConversationMessage() = default;
34 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBody() const { return m_body; }
41 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
42 template <typename BodyT = Aws::String>
43 void SetBody(BodyT&& value) {
44 m_bodyHasBeenSet = true;
45 m_body = std::forward<BodyT>(value);
46 }
47 template <typename BodyT = Aws::String>
49 SetBody(std::forward<BodyT>(value));
50 return *this;
51 }
53
55
58 inline Sender GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(Sender value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_body;
71
72 Sender m_type{Sender::NOT_SET};
73 bool m_bodyHasBeenSet = false;
74 bool m_typeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace QApps
79} // 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