AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
118 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
119 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
120 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
121 void SetAttributes(AttributesT&& value) {
122 m_attributesHasBeenSet = true;
123 m_attributes = std::forward<AttributesT>(value);
124 }
125 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
127 SetAttributes(std::forward<AttributesT>(value));
128 return *this;
129 }
130 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
131 StartAssistantContactRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
132 m_attributesHasBeenSet = true;
133 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
134 return *this;
135 }
137
139
146 inline const Aws::String& GetClientToken() const { return m_clientToken; }
147 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
148 template <typename ClientTokenT = Aws::String>
149 void SetClientToken(ClientTokenT&& value) {
150 m_clientTokenHasBeenSet = true;
151 m_clientToken = std::forward<ClientTokenT>(value);
152 }
153 template <typename ClientTokenT = Aws::String>
155 SetClientToken(std::forward<ClientTokenT>(value));
156 return *this;
157 }
159
161
167 inline const PersistentChat& GetPersistentChat() const { return m_persistentChat; }
168 inline bool PersistentChatHasBeenSet() const { return m_persistentChatHasBeenSet; }
169 template <typename PersistentChatT = PersistentChat>
170 void SetPersistentChat(PersistentChatT&& value) {
171 m_persistentChatHasBeenSet = true;
172 m_persistentChat = std::forward<PersistentChatT>(value);
173 }
174 template <typename PersistentChatT = PersistentChat>
176 SetPersistentChat(std::forward<PersistentChatT>(value));
177 return *this;
178 }
180
182
187 inline const Aws::String& GetRelatedContactId() const { return m_relatedContactId; }
188 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
189 template <typename RelatedContactIdT = Aws::String>
190 void SetRelatedContactId(RelatedContactIdT&& value) {
191 m_relatedContactIdHasBeenSet = true;
192 m_relatedContactId = std::forward<RelatedContactIdT>(value);
193 }
194 template <typename RelatedContactIdT = Aws::String>
196 SetRelatedContactId(std::forward<RelatedContactIdT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_instanceId;
202
203 AiAgentInput m_aiAgent;
204
205 ParticipantDetails m_participantDetails;
206
207 ChatMessage m_initialMessage;
208
210
212
213 PersistentChat m_persistentChat;
214
215 Aws::String m_relatedContactId;
216 bool m_instanceIdHasBeenSet = false;
217 bool m_aiAgentHasBeenSet = false;
218 bool m_participantDetailsHasBeenSet = false;
219 bool m_initialMessageHasBeenSet = false;
220 bool m_attributesHasBeenSet = false;
221 bool m_clientTokenHasBeenSet = true;
222 bool m_persistentChatHasBeenSet = false;
223 bool m_relatedContactIdHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace Connect
228} // 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