AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ActionReviewEvent.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/PluginType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/qbusiness/model/ActionReviewPayloadField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_QBUSINESS_API ActionReviewEvent() = default;
41 AWS_QBUSINESS_API ActionReviewEvent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetConversationId() const { return m_conversationId; }
52 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
53 template<typename ConversationIdT = Aws::String>
54 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
55 template<typename ConversationIdT = Aws::String>
56 ActionReviewEvent& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
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) { m_userMessageIdHasBeenSet = true; m_userMessageId = std::forward<UserMessageIdT>(value); }
68 template<typename UserMessageIdT = Aws::String>
69 ActionReviewEvent& WithUserMessageId(UserMessageIdT&& value) { SetUserMessageId(std::forward<UserMessageIdT>(value)); return *this;}
71
73
77 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
78 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
79 template<typename SystemMessageIdT = Aws::String>
80 void SetSystemMessageId(SystemMessageIdT&& value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId = std::forward<SystemMessageIdT>(value); }
81 template<typename SystemMessageIdT = Aws::String>
82 ActionReviewEvent& WithSystemMessageId(SystemMessageIdT&& value) { SetSystemMessageId(std::forward<SystemMessageIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetPluginId() const { return m_pluginId; }
90 inline bool PluginIdHasBeenSet() const { return m_pluginIdHasBeenSet; }
91 template<typename PluginIdT = Aws::String>
92 void SetPluginId(PluginIdT&& value) { m_pluginIdHasBeenSet = true; m_pluginId = std::forward<PluginIdT>(value); }
93 template<typename PluginIdT = Aws::String>
94 ActionReviewEvent& WithPluginId(PluginIdT&& value) { SetPluginId(std::forward<PluginIdT>(value)); return *this;}
96
98
101 inline PluginType GetPluginType() const { return m_pluginType; }
102 inline bool PluginTypeHasBeenSet() const { return m_pluginTypeHasBeenSet; }
103 inline void SetPluginType(PluginType value) { m_pluginTypeHasBeenSet = true; m_pluginType = value; }
104 inline ActionReviewEvent& WithPluginType(PluginType value) { SetPluginType(value); return *this;}
106
108
112 inline const Aws::Map<Aws::String, ActionReviewPayloadField>& GetPayload() const { return m_payload; }
113 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
114 template<typename PayloadT = Aws::Map<Aws::String, ActionReviewPayloadField>>
115 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
116 template<typename PayloadT = Aws::Map<Aws::String, ActionReviewPayloadField>>
117 ActionReviewEvent& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
118 template<typename PayloadKeyT = Aws::String, typename PayloadValueT = ActionReviewPayloadField>
119 ActionReviewEvent& AddPayload(PayloadKeyT&& key, PayloadValueT&& value) {
120 m_payloadHasBeenSet = true; m_payload.emplace(std::forward<PayloadKeyT>(key), std::forward<PayloadValueT>(value)); return *this;
121 }
123
125
129 inline const Aws::String& GetPayloadFieldNameSeparator() const { return m_payloadFieldNameSeparator; }
130 inline bool PayloadFieldNameSeparatorHasBeenSet() const { return m_payloadFieldNameSeparatorHasBeenSet; }
131 template<typename PayloadFieldNameSeparatorT = Aws::String>
132 void SetPayloadFieldNameSeparator(PayloadFieldNameSeparatorT&& value) { m_payloadFieldNameSeparatorHasBeenSet = true; m_payloadFieldNameSeparator = std::forward<PayloadFieldNameSeparatorT>(value); }
133 template<typename PayloadFieldNameSeparatorT = Aws::String>
134 ActionReviewEvent& WithPayloadFieldNameSeparator(PayloadFieldNameSeparatorT&& value) { SetPayloadFieldNameSeparator(std::forward<PayloadFieldNameSeparatorT>(value)); return *this;}
136 private:
137
138 Aws::String m_conversationId;
139 bool m_conversationIdHasBeenSet = false;
140
141 Aws::String m_userMessageId;
142 bool m_userMessageIdHasBeenSet = false;
143
144 Aws::String m_systemMessageId;
145 bool m_systemMessageIdHasBeenSet = false;
146
147 Aws::String m_pluginId;
148 bool m_pluginIdHasBeenSet = false;
149
150 PluginType m_pluginType{PluginType::NOT_SET};
151 bool m_pluginTypeHasBeenSet = false;
152
154 bool m_payloadHasBeenSet = false;
155
156 Aws::String m_payloadFieldNameSeparator;
157 bool m_payloadFieldNameSeparatorHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace QBusiness
162} // 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 & GetPluginId() const
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