AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_QBUSINESS_API MetadataEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API MetadataEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetConversationId(const Aws::String& value) { m_conversationIdHasBeenSet = true; m_conversationId = value; }
52 inline void SetConversationId(Aws::String&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::move(value); }
53 inline void SetConversationId(const char* value) { m_conversationIdHasBeenSet = true; m_conversationId.assign(value); }
54 inline MetadataEvent& WithConversationId(const Aws::String& value) { SetConversationId(value); return *this;}
55 inline MetadataEvent& WithConversationId(Aws::String&& value) { SetConversationId(std::move(value)); return *this;}
56 inline MetadataEvent& WithConversationId(const char* value) { SetConversationId(value); return *this;}
58
60
64 inline const Aws::String& GetUserMessageId() const{ return m_userMessageId; }
65 inline bool UserMessageIdHasBeenSet() const { return m_userMessageIdHasBeenSet; }
66 inline void SetUserMessageId(const Aws::String& value) { m_userMessageIdHasBeenSet = true; m_userMessageId = value; }
67 inline void SetUserMessageId(Aws::String&& value) { m_userMessageIdHasBeenSet = true; m_userMessageId = std::move(value); }
68 inline void SetUserMessageId(const char* value) { m_userMessageIdHasBeenSet = true; m_userMessageId.assign(value); }
69 inline MetadataEvent& WithUserMessageId(const Aws::String& value) { SetUserMessageId(value); return *this;}
70 inline MetadataEvent& WithUserMessageId(Aws::String&& value) { SetUserMessageId(std::move(value)); return *this;}
71 inline MetadataEvent& WithUserMessageId(const char* value) { SetUserMessageId(value); return *this;}
73
75
79 inline const Aws::String& GetSystemMessageId() const{ return m_systemMessageId; }
80 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
81 inline void SetSystemMessageId(const Aws::String& value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId = value; }
82 inline void SetSystemMessageId(Aws::String&& value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId = std::move(value); }
83 inline void SetSystemMessageId(const char* value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId.assign(value); }
84 inline MetadataEvent& WithSystemMessageId(const Aws::String& value) { SetSystemMessageId(value); return *this;}
85 inline MetadataEvent& WithSystemMessageId(Aws::String&& value) { SetSystemMessageId(std::move(value)); return *this;}
86 inline MetadataEvent& WithSystemMessageId(const char* value) { SetSystemMessageId(value); return *this;}
88
90
93 inline const Aws::Vector<SourceAttribution>& GetSourceAttributions() const{ return m_sourceAttributions; }
94 inline bool SourceAttributionsHasBeenSet() const { return m_sourceAttributionsHasBeenSet; }
95 inline void SetSourceAttributions(const Aws::Vector<SourceAttribution>& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions = value; }
96 inline void SetSourceAttributions(Aws::Vector<SourceAttribution>&& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions = std::move(value); }
99 inline MetadataEvent& AddSourceAttributions(const SourceAttribution& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions.push_back(value); return *this; }
100 inline MetadataEvent& AddSourceAttributions(SourceAttribution&& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions.push_back(std::move(value)); return *this; }
102
104
107 inline const Aws::String& GetFinalTextMessage() const{ return m_finalTextMessage; }
108 inline bool FinalTextMessageHasBeenSet() const { return m_finalTextMessageHasBeenSet; }
109 inline void SetFinalTextMessage(const Aws::String& value) { m_finalTextMessageHasBeenSet = true; m_finalTextMessage = value; }
110 inline void SetFinalTextMessage(Aws::String&& value) { m_finalTextMessageHasBeenSet = true; m_finalTextMessage = std::move(value); }
111 inline void SetFinalTextMessage(const char* value) { m_finalTextMessageHasBeenSet = true; m_finalTextMessage.assign(value); }
112 inline MetadataEvent& WithFinalTextMessage(const Aws::String& value) { SetFinalTextMessage(value); return *this;}
113 inline MetadataEvent& WithFinalTextMessage(Aws::String&& value) { SetFinalTextMessage(std::move(value)); return *this;}
114 inline MetadataEvent& WithFinalTextMessage(const char* value) { SetFinalTextMessage(value); return *this;}
116 private:
117
118 Aws::String m_conversationId;
119 bool m_conversationIdHasBeenSet = false;
120
121 Aws::String m_userMessageId;
122 bool m_userMessageIdHasBeenSet = false;
123
124 Aws::String m_systemMessageId;
125 bool m_systemMessageIdHasBeenSet = false;
126
127 Aws::Vector<SourceAttribution> m_sourceAttributions;
128 bool m_sourceAttributionsHasBeenSet = false;
129
130 Aws::String m_finalTextMessage;
131 bool m_finalTextMessageHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace QBusiness
136} // namespace Aws
MetadataEvent & WithSourceAttributions(Aws::Vector< SourceAttribution > &&value)
const Aws::Vector< SourceAttribution > & GetSourceAttributions() const
MetadataEvent & WithFinalTextMessage(const Aws::String &value)
MetadataEvent & AddSourceAttributions(const SourceAttribution &value)
void SetSystemMessageId(const Aws::String &value)
void SetFinalTextMessage(const char *value)
MetadataEvent & WithSourceAttributions(const Aws::Vector< SourceAttribution > &value)
MetadataEvent & AddSourceAttributions(SourceAttribution &&value)
MetadataEvent & WithSystemMessageId(const char *value)
const Aws::String & GetSystemMessageId() const
MetadataEvent & WithConversationId(const Aws::String &value)
void SetUserMessageId(Aws::String &&value)
const Aws::String & GetConversationId() const
void SetSystemMessageId(Aws::String &&value)
const Aws::String & GetUserMessageId() const
void SetSourceAttributions(const Aws::Vector< SourceAttribution > &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFinalTextMessage(const Aws::String &value)
MetadataEvent & WithUserMessageId(const char *value)
void SetConversationId(const char *value)
void SetSourceAttributions(Aws::Vector< SourceAttribution > &&value)
void SetFinalTextMessage(Aws::String &&value)
const Aws::String & GetFinalTextMessage() const
MetadataEvent & WithUserMessageId(const Aws::String &value)
void SetUserMessageId(const Aws::String &value)
void SetSystemMessageId(const char *value)
MetadataEvent & WithFinalTextMessage(const char *value)
AWS_QBUSINESS_API MetadataEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
MetadataEvent & WithConversationId(const char *value)
MetadataEvent & WithSystemMessageId(const Aws::String &value)
void SetConversationId(const Aws::String &value)
MetadataEvent & WithSystemMessageId(Aws::String &&value)
void SetConversationId(Aws::String &&value)
AWS_QBUSINESS_API MetadataEvent(Aws::Utils::Json::JsonView jsonValue)
MetadataEvent & WithConversationId(Aws::String &&value)
MetadataEvent & WithUserMessageId(Aws::String &&value)
MetadataEvent & WithFinalTextMessage(Aws::String &&value)
void SetUserMessageId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue