AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
StartAssistantContactRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/AiAgentInput.h>
10#include <aws/connect/model/ChatMessage.h>
11#include <aws/connect/model/ParticipantDetails.h>
12#include <aws/connect/model/PersistentChat.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Connect {
21namespace Model {
22
26 public:
27 AWS_CONNECT_API StartAssistantContactRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartAssistantContact"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template <typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) {
47 m_instanceIdHasBeenSet = true;
48 m_instanceId = std::forward<InstanceIdT>(value);
49 }
50 template <typename InstanceIdT = Aws::String>
52 SetInstanceId(std::forward<InstanceIdT>(value));
53 return *this;
54 }
56
58
61 inline const AiAgentInput& GetAiAgent() const { return m_aiAgent; }
62 inline bool AiAgentHasBeenSet() const { return m_aiAgentHasBeenSet; }
63 template <typename AiAgentT = AiAgentInput>
64 void SetAiAgent(AiAgentT&& value) {
65 m_aiAgentHasBeenSet = true;
66 m_aiAgent = std::forward<AiAgentT>(value);
67 }
68 template <typename AiAgentT = AiAgentInput>
70 SetAiAgent(std::forward<AiAgentT>(value));
71 return *this;
72 }
74
76
79 inline const ParticipantDetails& GetParticipantDetails() const { return m_participantDetails; }
80 inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; }
81 template <typename ParticipantDetailsT = ParticipantDetails>
82 void SetParticipantDetails(ParticipantDetailsT&& value) {
83 m_participantDetailsHasBeenSet = true;
84 m_participantDetails = std::forward<ParticipantDetailsT>(value);
85 }
86 template <typename ParticipantDetailsT = ParticipantDetails>
88 SetParticipantDetails(std::forward<ParticipantDetailsT>(value));
89 return *this;
90 }
92
94
97 inline const ChatMessage& GetInitialMessage() const { return m_initialMessage; }
98 inline bool InitialMessageHasBeenSet() const { return m_initialMessageHasBeenSet; }
99 template <typename InitialMessageT = ChatMessage>
100 void SetInitialMessage(InitialMessageT&& value) {
101 m_initialMessageHasBeenSet = true;
102 m_initialMessage = std::forward<InitialMessageT>(value);
103 }
104 template <typename InitialMessageT = ChatMessage>
106 SetInitialMessage(std::forward<InitialMessageT>(value));
107 return *this;
108 }
110
112
119 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
120 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
121 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
122 void SetAttributes(AttributesT&& value) {
123 m_attributesHasBeenSet = true;
124 m_attributes = std::forward<AttributesT>(value);
125 }
126 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
128 SetAttributes(std::forward<AttributesT>(value));
129 return *this;
130 }
131 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
132 StartAssistantContactRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
133 m_attributesHasBeenSet = true;
134 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
135 return *this;
136 }
138
140
147 inline const Aws::String& GetClientToken() const { return m_clientToken; }
148 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
149 template <typename ClientTokenT = Aws::String>
150 void SetClientToken(ClientTokenT&& value) {
151 m_clientTokenHasBeenSet = true;
152 m_clientToken = std::forward<ClientTokenT>(value);
153 }
154 template <typename ClientTokenT = Aws::String>
156 SetClientToken(std::forward<ClientTokenT>(value));
157 return *this;
158 }
160
162
168 inline const PersistentChat& GetPersistentChat() const { return m_persistentChat; }
169 inline bool PersistentChatHasBeenSet() const { return m_persistentChatHasBeenSet; }
170 template <typename PersistentChatT = PersistentChat>
171 void SetPersistentChat(PersistentChatT&& value) {
172 m_persistentChatHasBeenSet = true;
173 m_persistentChat = std::forward<PersistentChatT>(value);
174 }
175 template <typename PersistentChatT = PersistentChat>
177 SetPersistentChat(std::forward<PersistentChatT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::String& GetRelatedContactId() const { return m_relatedContactId; }
189 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
190 template <typename RelatedContactIdT = Aws::String>
191 void SetRelatedContactId(RelatedContactIdT&& value) {
192 m_relatedContactIdHasBeenSet = true;
193 m_relatedContactId = std::forward<RelatedContactIdT>(value);
194 }
195 template <typename RelatedContactIdT = Aws::String>
197 SetRelatedContactId(std::forward<RelatedContactIdT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_instanceId;
203
204 AiAgentInput m_aiAgent;
205
206 ParticipantDetails m_participantDetails;
207
208 ChatMessage m_initialMessage;
209
211
213
214 PersistentChat m_persistentChat;
215
216 Aws::String m_relatedContactId;
217 bool m_instanceIdHasBeenSet = false;
218 bool m_aiAgentHasBeenSet = false;
219 bool m_participantDetailsHasBeenSet = false;
220 bool m_initialMessageHasBeenSet = false;
221 bool m_attributesHasBeenSet = false;
222 bool m_clientTokenHasBeenSet = true;
223 bool m_persistentChatHasBeenSet = false;
224 bool m_relatedContactIdHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace Connect
229} // namespace Aws
StartAssistantContactRequest & WithRelatedContactId(RelatedContactIdT &&value)
StartAssistantContactRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
StartAssistantContactRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
StartAssistantContactRequest & WithInitialMessage(InitialMessageT &&value)
StartAssistantContactRequest & WithAiAgent(AiAgentT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
AWS_CONNECT_API StartAssistantContactRequest()=default
StartAssistantContactRequest & WithParticipantDetails(ParticipantDetailsT &&value)
StartAssistantContactRequest & WithAttributes(AttributesT &&value)
StartAssistantContactRequest & WithPersistentChat(PersistentChatT &&value)
StartAssistantContactRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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