AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ActionReviewEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/ActionReviewPayloadField.h>
11#include <aws/qbusiness/model/PluginType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
34 public:
35 AWS_QBUSINESS_API ActionReviewEvent() = default;
36 AWS_QBUSINESS_API ActionReviewEvent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetConversationId() const { return m_conversationId; }
46 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
47 template <typename ConversationIdT = Aws::String>
48 void SetConversationId(ConversationIdT&& value) {
49 m_conversationIdHasBeenSet = true;
50 m_conversationId = std::forward<ConversationIdT>(value);
51 }
52 template <typename ConversationIdT = Aws::String>
53 ActionReviewEvent& WithConversationId(ConversationIdT&& value) {
54 SetConversationId(std::forward<ConversationIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUserMessageId() const { return m_userMessageId; }
65 inline bool UserMessageIdHasBeenSet() const { return m_userMessageIdHasBeenSet; }
66 template <typename UserMessageIdT = Aws::String>
67 void SetUserMessageId(UserMessageIdT&& value) {
68 m_userMessageIdHasBeenSet = true;
69 m_userMessageId = std::forward<UserMessageIdT>(value);
70 }
71 template <typename UserMessageIdT = Aws::String>
72 ActionReviewEvent& WithUserMessageId(UserMessageIdT&& value) {
73 SetUserMessageId(std::forward<UserMessageIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
84 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
85 template <typename SystemMessageIdT = Aws::String>
86 void SetSystemMessageId(SystemMessageIdT&& value) {
87 m_systemMessageIdHasBeenSet = true;
88 m_systemMessageId = std::forward<SystemMessageIdT>(value);
89 }
90 template <typename SystemMessageIdT = Aws::String>
91 ActionReviewEvent& WithSystemMessageId(SystemMessageIdT&& value) {
92 SetSystemMessageId(std::forward<SystemMessageIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetPluginId() const { return m_pluginId; }
102 inline bool PluginIdHasBeenSet() const { return m_pluginIdHasBeenSet; }
103 template <typename PluginIdT = Aws::String>
104 void SetPluginId(PluginIdT&& value) {
105 m_pluginIdHasBeenSet = true;
106 m_pluginId = std::forward<PluginIdT>(value);
107 }
108 template <typename PluginIdT = Aws::String>
109 ActionReviewEvent& WithPluginId(PluginIdT&& value) {
110 SetPluginId(std::forward<PluginIdT>(value));
111 return *this;
112 }
114
116
119 inline PluginType GetPluginType() const { return m_pluginType; }
120 inline bool PluginTypeHasBeenSet() const { return m_pluginTypeHasBeenSet; }
121 inline void SetPluginType(PluginType value) {
122 m_pluginTypeHasBeenSet = true;
123 m_pluginType = value;
124 }
126 SetPluginType(value);
127 return *this;
128 }
130
132
136 inline const Aws::Map<Aws::String, ActionReviewPayloadField>& GetPayload() const { return m_payload; }
137 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
138 template <typename PayloadT = Aws::Map<Aws::String, ActionReviewPayloadField>>
139 void SetPayload(PayloadT&& value) {
140 m_payloadHasBeenSet = true;
141 m_payload = std::forward<PayloadT>(value);
142 }
143 template <typename PayloadT = Aws::Map<Aws::String, ActionReviewPayloadField>>
144 ActionReviewEvent& WithPayload(PayloadT&& value) {
145 SetPayload(std::forward<PayloadT>(value));
146 return *this;
147 }
148 template <typename PayloadKeyT = Aws::String, typename PayloadValueT = ActionReviewPayloadField>
149 ActionReviewEvent& AddPayload(PayloadKeyT&& key, PayloadValueT&& value) {
150 m_payloadHasBeenSet = true;
151 m_payload.emplace(std::forward<PayloadKeyT>(key), std::forward<PayloadValueT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetPayloadFieldNameSeparator() const { return m_payloadFieldNameSeparator; }
162 inline bool PayloadFieldNameSeparatorHasBeenSet() const { return m_payloadFieldNameSeparatorHasBeenSet; }
163 template <typename PayloadFieldNameSeparatorT = Aws::String>
164 void SetPayloadFieldNameSeparator(PayloadFieldNameSeparatorT&& value) {
165 m_payloadFieldNameSeparatorHasBeenSet = true;
166 m_payloadFieldNameSeparator = std::forward<PayloadFieldNameSeparatorT>(value);
167 }
168 template <typename PayloadFieldNameSeparatorT = Aws::String>
169 ActionReviewEvent& WithPayloadFieldNameSeparator(PayloadFieldNameSeparatorT&& value) {
170 SetPayloadFieldNameSeparator(std::forward<PayloadFieldNameSeparatorT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_conversationId;
176
177 Aws::String m_userMessageId;
178
179 Aws::String m_systemMessageId;
180
181 Aws::String m_pluginId;
182
183 PluginType m_pluginType{PluginType::NOT_SET};
184
186
187 Aws::String m_payloadFieldNameSeparator;
188 bool m_conversationIdHasBeenSet = false;
189 bool m_userMessageIdHasBeenSet = false;
190 bool m_systemMessageIdHasBeenSet = false;
191 bool m_pluginIdHasBeenSet = false;
192 bool m_pluginTypeHasBeenSet = false;
193 bool m_payloadHasBeenSet = false;
194 bool m_payloadFieldNameSeparatorHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace QBusiness
199} // namespace Aws
void SetUserMessageId(UserMessageIdT &&value)
AWS_QBUSINESS_API ActionReviewEvent()=default
const Aws::String & GetUserMessageId() const
ActionReviewEvent & WithUserMessageId(UserMessageIdT &&value)
ActionReviewEvent & WithSystemMessageId(SystemMessageIdT &&value)
ActionReviewEvent & AddPayload(PayloadKeyT &&key, PayloadValueT &&value)
void SetPayloadFieldNameSeparator(PayloadFieldNameSeparatorT &&value)
AWS_QBUSINESS_API ActionReviewEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConversationId(ConversationIdT &&value)
const Aws::Map< Aws::String, ActionReviewPayloadField > & GetPayload() const
ActionReviewEvent & WithPayloadFieldNameSeparator(PayloadFieldNameSeparatorT &&value)
const Aws::String & GetSystemMessageId() const
ActionReviewEvent & WithPluginId(PluginIdT &&value)
void SetSystemMessageId(SystemMessageIdT &&value)
AWS_QBUSINESS_API ActionReviewEvent(Aws::Utils::Json::JsonView jsonValue)
ActionReviewEvent & WithPluginType(PluginType value)
ActionReviewEvent & WithConversationId(ConversationIdT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionReviewEvent & WithPayload(PayloadT &&value)
const Aws::String & GetPayloadFieldNameSeparator() const
const Aws::String & GetConversationId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue