AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
MetadataEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/SourceAttribution.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
32 public:
33 AWS_QBUSINESS_API MetadataEvent() = default;
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetConversationId() const { return m_conversationId; }
44 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
45 template <typename ConversationIdT = Aws::String>
47 m_conversationIdHasBeenSet = true;
48 m_conversationId = std::forward<ConversationIdT>(value);
49 }
50 template <typename ConversationIdT = Aws::String>
52 SetConversationId(std::forward<ConversationIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetUserMessageId() const { return m_userMessageId; }
63 inline bool UserMessageIdHasBeenSet() const { return m_userMessageIdHasBeenSet; }
64 template <typename UserMessageIdT = Aws::String>
66 m_userMessageIdHasBeenSet = true;
67 m_userMessageId = std::forward<UserMessageIdT>(value);
68 }
69 template <typename UserMessageIdT = Aws::String>
71 SetUserMessageId(std::forward<UserMessageIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
82 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
83 template <typename SystemMessageIdT = Aws::String>
85 m_systemMessageIdHasBeenSet = true;
86 m_systemMessageId = std::forward<SystemMessageIdT>(value);
87 }
88 template <typename SystemMessageIdT = Aws::String>
90 SetSystemMessageId(std::forward<SystemMessageIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<SourceAttribution>& GetSourceAttributions() const { return m_sourceAttributions; }
100 inline bool SourceAttributionsHasBeenSet() const { return m_sourceAttributionsHasBeenSet; }
101 template <typename SourceAttributionsT = Aws::Vector<SourceAttribution>>
103 m_sourceAttributionsHasBeenSet = true;
104 m_sourceAttributions = std::forward<SourceAttributionsT>(value);
105 }
106 template <typename SourceAttributionsT = Aws::Vector<SourceAttribution>>
108 SetSourceAttributions(std::forward<SourceAttributionsT>(value));
109 return *this;
110 }
111 template <typename SourceAttributionsT = SourceAttribution>
113 m_sourceAttributionsHasBeenSet = true;
114 m_sourceAttributions.emplace_back(std::forward<SourceAttributionsT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetFinalTextMessage() const { return m_finalTextMessage; }
124 inline bool FinalTextMessageHasBeenSet() const { return m_finalTextMessageHasBeenSet; }
125 template <typename FinalTextMessageT = Aws::String>
127 m_finalTextMessageHasBeenSet = true;
128 m_finalTextMessage = std::forward<FinalTextMessageT>(value);
129 }
130 template <typename FinalTextMessageT = Aws::String>
132 SetFinalTextMessage(std::forward<FinalTextMessageT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_conversationId;
138
139 Aws::String m_userMessageId;
140
141 Aws::String m_systemMessageId;
142
143 Aws::Vector<SourceAttribution> m_sourceAttributions;
144
145 Aws::String m_finalTextMessage;
146 bool m_conversationIdHasBeenSet = false;
147 bool m_userMessageIdHasBeenSet = false;
148 bool m_systemMessageIdHasBeenSet = false;
149 bool m_sourceAttributionsHasBeenSet = false;
150 bool m_finalTextMessageHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace QBusiness
155} // namespace Aws
MetadataEvent & AddSourceAttributions(SourceAttributionsT &&value)
const Aws::Vector< SourceAttribution > & GetSourceAttributions() const
const Aws::String & GetSystemMessageId() const
void SetFinalTextMessage(FinalTextMessageT &&value)
MetadataEvent & WithConversationId(ConversationIdT &&value)
const Aws::String & GetConversationId() const
const Aws::String & GetUserMessageId() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConversationId(ConversationIdT &&value)
const Aws::String & GetFinalTextMessage() const
AWS_QBUSINESS_API MetadataEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API MetadataEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API MetadataEvent()=default
MetadataEvent & WithSystemMessageId(SystemMessageIdT &&value)
MetadataEvent & WithSourceAttributions(SourceAttributionsT &&value)
void SetSystemMessageId(SystemMessageIdT &&value)
MetadataEvent & WithUserMessageId(UserMessageIdT &&value)
void SetSourceAttributions(SourceAttributionsT &&value)
MetadataEvent & WithFinalTextMessage(FinalTextMessageT &&value)
void SetUserMessageId(UserMessageIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue