AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
TextOutputEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/SystemMessageType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API TextOutputEvent() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline SystemMessageType GetSystemMessageType() const { return m_systemMessageType; }
47 inline bool SystemMessageTypeHasBeenSet() const { return m_systemMessageTypeHasBeenSet; }
49 m_systemMessageTypeHasBeenSet = true;
50 m_systemMessageType = value;
51 }
54 return *this;
55 }
57
59
63 inline const Aws::String& GetConversationId() const { return m_conversationId; }
64 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
65 template <typename ConversationIdT = Aws::String>
67 m_conversationIdHasBeenSet = true;
68 m_conversationId = std::forward<ConversationIdT>(value);
69 }
70 template <typename ConversationIdT = Aws::String>
72 SetConversationId(std::forward<ConversationIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetUserMessageId() const { return m_userMessageId; }
82 inline bool UserMessageIdHasBeenSet() const { return m_userMessageIdHasBeenSet; }
83 template <typename UserMessageIdT = Aws::String>
85 m_userMessageIdHasBeenSet = true;
86 m_userMessageId = std::forward<UserMessageIdT>(value);
87 }
88 template <typename UserMessageIdT = Aws::String>
90 SetUserMessageId(std::forward<UserMessageIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
101 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
102 template <typename SystemMessageIdT = Aws::String>
104 m_systemMessageIdHasBeenSet = true;
105 m_systemMessageId = std::forward<SystemMessageIdT>(value);
106 }
107 template <typename SystemMessageIdT = Aws::String>
109 SetSystemMessageId(std::forward<SystemMessageIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetSystemMessage() const { return m_systemMessage; }
119 inline bool SystemMessageHasBeenSet() const { return m_systemMessageHasBeenSet; }
120 template <typename SystemMessageT = Aws::String>
122 m_systemMessageHasBeenSet = true;
123 m_systemMessage = std::forward<SystemMessageT>(value);
124 }
125 template <typename SystemMessageT = Aws::String>
127 SetSystemMessage(std::forward<SystemMessageT>(value));
128 return *this;
129 }
131 private:
133
134 Aws::String m_conversationId;
135
136 Aws::String m_userMessageId;
137
138 Aws::String m_systemMessageId;
139
140 Aws::String m_systemMessage;
141 bool m_systemMessageTypeHasBeenSet = false;
142 bool m_conversationIdHasBeenSet = false;
143 bool m_userMessageIdHasBeenSet = false;
144 bool m_systemMessageIdHasBeenSet = false;
145 bool m_systemMessageHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace QBusiness
150} // namespace Aws
void SetSystemMessageId(SystemMessageIdT &&value)
void SetUserMessageId(UserMessageIdT &&value)
TextOutputEvent & WithSystemMessage(SystemMessageT &&value)
const Aws::String & GetSystemMessage() const
void SetSystemMessage(SystemMessageT &&value)
const Aws::String & GetUserMessageId() const
TextOutputEvent & WithConversationId(ConversationIdT &&value)
TextOutputEvent & WithUserMessageId(UserMessageIdT &&value)
AWS_QBUSINESS_API TextOutputEvent()=default
SystemMessageType GetSystemMessageType() const
void SetConversationId(ConversationIdT &&value)
TextOutputEvent & WithSystemMessageType(SystemMessageType value)
const Aws::String & GetConversationId() const
AWS_QBUSINESS_API TextOutputEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSystemMessageType(SystemMessageType value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSystemMessageId() const
TextOutputEvent & WithSystemMessageId(SystemMessageIdT &&value)
AWS_QBUSINESS_API TextOutputEvent(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