AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartChatContactRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/connect/model/ParticipantDetails.h>
12#include <aws/connect/model/ChatMessage.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/connect/model/PersistentChat.h>
15#include <aws/connect/model/SegmentAttributeValue.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Connect
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CONNECT_API StartChatContactRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartChatContact"; }
38
39 AWS_CONNECT_API Aws::String SerializePayload() const override;
40
41
43
48 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
52 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
53 inline StartChatContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
54 inline StartChatContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline StartChatContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
57
59
68 inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
69 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
70 inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; }
71 inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); }
72 inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); }
73 inline StartChatContactRequest& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;}
74 inline StartChatContactRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
75 inline StartChatContactRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
77
79
86 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
87 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
88 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
89 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
92 inline StartChatContactRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
93 inline StartChatContactRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
94 inline StartChatContactRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
95 inline StartChatContactRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
96 inline StartChatContactRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
97 inline StartChatContactRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
98 inline StartChatContactRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
100
102
105 inline const ParticipantDetails& GetParticipantDetails() const{ return m_participantDetails; }
106 inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; }
107 inline void SetParticipantDetails(const ParticipantDetails& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = value; }
108 inline void SetParticipantDetails(ParticipantDetails&& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = std::move(value); }
112
114
118 inline const ChatMessage& GetInitialMessage() const{ return m_initialMessage; }
119 inline bool InitialMessageHasBeenSet() const { return m_initialMessageHasBeenSet; }
120 inline void SetInitialMessage(const ChatMessage& value) { m_initialMessageHasBeenSet = true; m_initialMessage = value; }
121 inline void SetInitialMessage(ChatMessage&& value) { m_initialMessageHasBeenSet = true; m_initialMessage = std::move(value); }
122 inline StartChatContactRequest& WithInitialMessage(const ChatMessage& value) { SetInitialMessage(value); return *this;}
123 inline StartChatContactRequest& WithInitialMessage(ChatMessage&& value) { SetInitialMessage(std::move(value)); return *this;}
125
127
134 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
135 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
136 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
137 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
138 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
139 inline StartChatContactRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
140 inline StartChatContactRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
141 inline StartChatContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
143
145
150 inline int GetChatDurationInMinutes() const{ return m_chatDurationInMinutes; }
151 inline bool ChatDurationInMinutesHasBeenSet() const { return m_chatDurationInMinutesHasBeenSet; }
152 inline void SetChatDurationInMinutes(int value) { m_chatDurationInMinutesHasBeenSet = true; m_chatDurationInMinutes = value; }
155
157
175 inline const Aws::Vector<Aws::String>& GetSupportedMessagingContentTypes() const{ return m_supportedMessagingContentTypes; }
176 inline bool SupportedMessagingContentTypesHasBeenSet() const { return m_supportedMessagingContentTypesHasBeenSet; }
177 inline void SetSupportedMessagingContentTypes(const Aws::Vector<Aws::String>& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes = value; }
178 inline void SetSupportedMessagingContentTypes(Aws::Vector<Aws::String>&& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes = std::move(value); }
181 inline StartChatContactRequest& AddSupportedMessagingContentTypes(const Aws::String& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes.push_back(value); return *this; }
182 inline StartChatContactRequest& AddSupportedMessagingContentTypes(Aws::String&& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes.push_back(std::move(value)); return *this; }
183 inline StartChatContactRequest& AddSupportedMessagingContentTypes(const char* value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes.push_back(value); return *this; }
185
187
193 inline const PersistentChat& GetPersistentChat() const{ return m_persistentChat; }
194 inline bool PersistentChatHasBeenSet() const { return m_persistentChatHasBeenSet; }
195 inline void SetPersistentChat(const PersistentChat& value) { m_persistentChatHasBeenSet = true; m_persistentChat = value; }
196 inline void SetPersistentChat(PersistentChat&& value) { m_persistentChatHasBeenSet = true; m_persistentChat = std::move(value); }
197 inline StartChatContactRequest& WithPersistentChat(const PersistentChat& value) { SetPersistentChat(value); return *this;}
198 inline StartChatContactRequest& WithPersistentChat(PersistentChat&& value) { SetPersistentChat(std::move(value)); return *this;}
200
202
207 inline const Aws::String& GetRelatedContactId() const{ return m_relatedContactId; }
208 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
209 inline void SetRelatedContactId(const Aws::String& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = value; }
210 inline void SetRelatedContactId(Aws::String&& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = std::move(value); }
211 inline void SetRelatedContactId(const char* value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId.assign(value); }
213 inline StartChatContactRequest& WithRelatedContactId(Aws::String&& value) { SetRelatedContactId(std::move(value)); return *this;}
214 inline StartChatContactRequest& WithRelatedContactId(const char* value) { SetRelatedContactId(value); return *this;}
216
218
230 inline const Aws::Map<Aws::String, SegmentAttributeValue>& GetSegmentAttributes() const{ return m_segmentAttributes; }
231 inline bool SegmentAttributesHasBeenSet() const { return m_segmentAttributesHasBeenSet; }
232 inline void SetSegmentAttributes(const Aws::Map<Aws::String, SegmentAttributeValue>& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes = value; }
233 inline void SetSegmentAttributes(Aws::Map<Aws::String, SegmentAttributeValue>&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes = std::move(value); }
236 inline StartChatContactRequest& AddSegmentAttributes(const Aws::String& key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, value); return *this; }
237 inline StartChatContactRequest& AddSegmentAttributes(Aws::String&& key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(std::move(key), value); return *this; }
238 inline StartChatContactRequest& AddSegmentAttributes(const Aws::String& key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, std::move(value)); return *this; }
239 inline StartChatContactRequest& AddSegmentAttributes(Aws::String&& key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(std::move(key), std::move(value)); return *this; }
240 inline StartChatContactRequest& AddSegmentAttributes(const char* key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, std::move(value)); return *this; }
241 inline StartChatContactRequest& AddSegmentAttributes(const char* key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, value); return *this; }
243 private:
244
245 Aws::String m_instanceId;
246 bool m_instanceIdHasBeenSet = false;
247
248 Aws::String m_contactFlowId;
249 bool m_contactFlowIdHasBeenSet = false;
250
252 bool m_attributesHasBeenSet = false;
253
254 ParticipantDetails m_participantDetails;
255 bool m_participantDetailsHasBeenSet = false;
256
257 ChatMessage m_initialMessage;
258 bool m_initialMessageHasBeenSet = false;
259
260 Aws::String m_clientToken;
261 bool m_clientTokenHasBeenSet = false;
262
263 int m_chatDurationInMinutes;
264 bool m_chatDurationInMinutesHasBeenSet = false;
265
266 Aws::Vector<Aws::String> m_supportedMessagingContentTypes;
267 bool m_supportedMessagingContentTypesHasBeenSet = false;
268
269 PersistentChat m_persistentChat;
270 bool m_persistentChatHasBeenSet = false;
271
272 Aws::String m_relatedContactId;
273 bool m_relatedContactIdHasBeenSet = false;
274
276 bool m_segmentAttributesHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace Connect
281} // namespace Aws
StartChatContactRequest & AddSupportedMessagingContentTypes(const Aws::String &value)
void SetSegmentAttributes(Aws::Map< Aws::String, SegmentAttributeValue > &&value)
StartChatContactRequest & WithPersistentChat(PersistentChat &&value)
virtual const char * GetServiceRequestName() const override
StartChatContactRequest & WithSupportedMessagingContentTypes(const Aws::Vector< Aws::String > &value)
StartChatContactRequest & AddSegmentAttributes(Aws::String &&key, SegmentAttributeValue &&value)
StartChatContactRequest & WithPersistentChat(const PersistentChat &value)
StartChatContactRequest & AddSegmentAttributes(const char *key, SegmentAttributeValue &&value)
StartChatContactRequest & WithInitialMessage(ChatMessage &&value)
StartChatContactRequest & WithClientToken(const char *value)
StartChatContactRequest & WithParticipantDetails(const ParticipantDetails &value)
const Aws::Vector< Aws::String > & GetSupportedMessagingContentTypes() const
StartChatContactRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
StartChatContactRequest & WithSegmentAttributes(Aws::Map< Aws::String, SegmentAttributeValue > &&value)
StartChatContactRequest & WithContactFlowId(const Aws::String &value)
StartChatContactRequest & WithRelatedContactId(Aws::String &&value)
StartChatContactRequest & WithSupportedMessagingContentTypes(Aws::Vector< Aws::String > &&value)
StartChatContactRequest & WithClientToken(const Aws::String &value)
void SetSegmentAttributes(const Aws::Map< Aws::String, SegmentAttributeValue > &value)
StartChatContactRequest & WithSegmentAttributes(const Aws::Map< Aws::String, SegmentAttributeValue > &value)
const ParticipantDetails & GetParticipantDetails() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
StartChatContactRequest & AddSegmentAttributes(Aws::String &&key, const SegmentAttributeValue &value)
StartChatContactRequest & WithInitialMessage(const ChatMessage &value)
StartChatContactRequest & WithInstanceId(const char *value)
StartChatContactRequest & WithContactFlowId(const char *value)
void SetParticipantDetails(const ParticipantDetails &value)
StartChatContactRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
StartChatContactRequest & WithChatDurationInMinutes(int value)
StartChatContactRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
StartChatContactRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetPersistentChat(const PersistentChat &value)
StartChatContactRequest & AddAttributes(Aws::String &&key, const char *value)
void SetSupportedMessagingContentTypes(Aws::Vector< Aws::String > &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
StartChatContactRequest & WithRelatedContactId(const char *value)
StartChatContactRequest & AddSegmentAttributes(const Aws::String &key, SegmentAttributeValue &&value)
void SetParticipantDetails(ParticipantDetails &&value)
StartChatContactRequest & WithContactFlowId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetSupportedMessagingContentTypes(const Aws::Vector< Aws::String > &value)
StartChatContactRequest & WithInstanceId(const Aws::String &value)
StartChatContactRequest & AddSupportedMessagingContentTypes(Aws::String &&value)
const Aws::Map< Aws::String, SegmentAttributeValue > & GetSegmentAttributes() const
StartChatContactRequest & WithClientToken(Aws::String &&value)
StartChatContactRequest & AddSupportedMessagingContentTypes(const char *value)
StartChatContactRequest & WithRelatedContactId(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
StartChatContactRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
StartChatContactRequest & AddSegmentAttributes(const char *key, const SegmentAttributeValue &value)
StartChatContactRequest & AddSegmentAttributes(const Aws::String &key, const SegmentAttributeValue &value)
StartChatContactRequest & AddAttributes(const char *key, const char *value)
StartChatContactRequest & AddAttributes(const char *key, Aws::String &&value)
StartChatContactRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
StartChatContactRequest & WithInstanceId(Aws::String &&value)
StartChatContactRequest & WithParticipantDetails(ParticipantDetails &&value)
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
std::vector< T, Aws::Allocator< T > > Vector