AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MetadataEvent.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/model/SourceAttribution.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_QBUSINESS_API MetadataEvent() = default;
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetConversationId() const { return m_conversationId; }
50 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
51 template<typename ConversationIdT = Aws::String>
52 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
53 template<typename ConversationIdT = Aws::String>
54 MetadataEvent& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
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>
65 void SetUserMessageId(UserMessageIdT&& value) { m_userMessageIdHasBeenSet = true; m_userMessageId = std::forward<UserMessageIdT>(value); }
66 template<typename UserMessageIdT = Aws::String>
67 MetadataEvent& WithUserMessageId(UserMessageIdT&& value) { SetUserMessageId(std::forward<UserMessageIdT>(value)); return *this;}
69
71
75 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
76 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
77 template<typename SystemMessageIdT = Aws::String>
78 void SetSystemMessageId(SystemMessageIdT&& value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId = std::forward<SystemMessageIdT>(value); }
79 template<typename SystemMessageIdT = Aws::String>
80 MetadataEvent& WithSystemMessageId(SystemMessageIdT&& value) { SetSystemMessageId(std::forward<SystemMessageIdT>(value)); return *this;}
82
84
87 inline const Aws::Vector<SourceAttribution>& GetSourceAttributions() const { return m_sourceAttributions; }
88 inline bool SourceAttributionsHasBeenSet() const { return m_sourceAttributionsHasBeenSet; }
89 template<typename SourceAttributionsT = Aws::Vector<SourceAttribution>>
90 void SetSourceAttributions(SourceAttributionsT&& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions = std::forward<SourceAttributionsT>(value); }
91 template<typename SourceAttributionsT = Aws::Vector<SourceAttribution>>
92 MetadataEvent& WithSourceAttributions(SourceAttributionsT&& value) { SetSourceAttributions(std::forward<SourceAttributionsT>(value)); return *this;}
93 template<typename SourceAttributionsT = SourceAttribution>
94 MetadataEvent& AddSourceAttributions(SourceAttributionsT&& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions.emplace_back(std::forward<SourceAttributionsT>(value)); return *this; }
96
98
101 inline const Aws::String& GetFinalTextMessage() const { return m_finalTextMessage; }
102 inline bool FinalTextMessageHasBeenSet() const { return m_finalTextMessageHasBeenSet; }
103 template<typename FinalTextMessageT = Aws::String>
104 void SetFinalTextMessage(FinalTextMessageT&& value) { m_finalTextMessageHasBeenSet = true; m_finalTextMessage = std::forward<FinalTextMessageT>(value); }
105 template<typename FinalTextMessageT = Aws::String>
106 MetadataEvent& WithFinalTextMessage(FinalTextMessageT&& value) { SetFinalTextMessage(std::forward<FinalTextMessageT>(value)); return *this;}
108 private:
109
110 Aws::String m_conversationId;
111 bool m_conversationIdHasBeenSet = false;
112
113 Aws::String m_userMessageId;
114 bool m_userMessageIdHasBeenSet = false;
115
116 Aws::String m_systemMessageId;
117 bool m_systemMessageIdHasBeenSet = false;
118
119 Aws::Vector<SourceAttribution> m_sourceAttributions;
120 bool m_sourceAttributionsHasBeenSet = false;
121
122 Aws::String m_finalTextMessage;
123 bool m_finalTextMessageHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QBusiness
128} // 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