AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartOutboundChatContactRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/connect/model/Endpoint.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/connect/model/ParticipantDetails.h>
13#include <aws/connect/model/ChatMessage.h>
14#include <aws/core/utils/memory/stl/AWSVector.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:
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 "StartOutboundChatContact"; }
38
39 AWS_CONNECT_API Aws::String SerializePayload() const override;
40
41
43
44 inline const Endpoint& GetSourceEndpoint() const{ return m_sourceEndpoint; }
45 inline bool SourceEndpointHasBeenSet() const { return m_sourceEndpointHasBeenSet; }
46 inline void SetSourceEndpoint(const Endpoint& value) { m_sourceEndpointHasBeenSet = true; m_sourceEndpoint = value; }
47 inline void SetSourceEndpoint(Endpoint&& value) { m_sourceEndpointHasBeenSet = true; m_sourceEndpoint = std::move(value); }
49 inline StartOutboundChatContactRequest& WithSourceEndpoint(Endpoint&& value) { SetSourceEndpoint(std::move(value)); return *this;}
51
53
54 inline const Endpoint& GetDestinationEndpoint() const{ return m_destinationEndpoint; }
55 inline bool DestinationEndpointHasBeenSet() const { return m_destinationEndpointHasBeenSet; }
56 inline void SetDestinationEndpoint(const Endpoint& value) { m_destinationEndpointHasBeenSet = true; m_destinationEndpoint = value; }
57 inline void SetDestinationEndpoint(Endpoint&& value) { m_destinationEndpointHasBeenSet = true; m_destinationEndpoint = std::move(value); }
61
63
67 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
68 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
69 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
70 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
71 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
72 inline StartOutboundChatContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
73 inline StartOutboundChatContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
74 inline StartOutboundChatContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
76
78
86 inline const Aws::Map<Aws::String, SegmentAttributeValue>& GetSegmentAttributes() const{ return m_segmentAttributes; }
87 inline bool SegmentAttributesHasBeenSet() const { return m_segmentAttributesHasBeenSet; }
88 inline void SetSegmentAttributes(const Aws::Map<Aws::String, SegmentAttributeValue>& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes = value; }
89 inline void SetSegmentAttributes(Aws::Map<Aws::String, SegmentAttributeValue>&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes = std::move(value); }
92 inline StartOutboundChatContactRequest& AddSegmentAttributes(const Aws::String& key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, value); return *this; }
93 inline StartOutboundChatContactRequest& AddSegmentAttributes(Aws::String&& key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(std::move(key), value); return *this; }
94 inline StartOutboundChatContactRequest& AddSegmentAttributes(const Aws::String& key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, std::move(value)); return *this; }
95 inline StartOutboundChatContactRequest& AddSegmentAttributes(Aws::String&& key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(std::move(key), std::move(value)); return *this; }
96 inline StartOutboundChatContactRequest& AddSegmentAttributes(const char* key, SegmentAttributeValue&& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, std::move(value)); return *this; }
97 inline StartOutboundChatContactRequest& AddSegmentAttributes(const char* key, const SegmentAttributeValue& value) { m_segmentAttributesHasBeenSet = true; m_segmentAttributes.emplace(key, value); return *this; }
99
101
106 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
107 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
108 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
109 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
112 inline StartOutboundChatContactRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
113 inline StartOutboundChatContactRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
114 inline StartOutboundChatContactRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
115 inline StartOutboundChatContactRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
116 inline StartOutboundChatContactRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
117 inline StartOutboundChatContactRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
118 inline StartOutboundChatContactRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
120
122
131 inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
132 inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
133 inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; }
134 inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); }
135 inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); }
137 inline StartOutboundChatContactRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
138 inline StartOutboundChatContactRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
140
142
147 inline int GetChatDurationInMinutes() const{ return m_chatDurationInMinutes; }
148 inline bool ChatDurationInMinutesHasBeenSet() const { return m_chatDurationInMinutesHasBeenSet; }
149 inline void SetChatDurationInMinutes(int value) { m_chatDurationInMinutesHasBeenSet = true; m_chatDurationInMinutes = value; }
152
154
155 inline const ParticipantDetails& GetParticipantDetails() const{ return m_participantDetails; }
156 inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; }
157 inline void SetParticipantDetails(const ParticipantDetails& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = value; }
158 inline void SetParticipantDetails(ParticipantDetails&& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = std::move(value); }
162
164
165 inline const ChatMessage& GetInitialSystemMessage() const{ return m_initialSystemMessage; }
166 inline bool InitialSystemMessageHasBeenSet() const { return m_initialSystemMessageHasBeenSet; }
167 inline void SetInitialSystemMessage(const ChatMessage& value) { m_initialSystemMessageHasBeenSet = true; m_initialSystemMessage = value; }
168 inline void SetInitialSystemMessage(ChatMessage&& value) { m_initialSystemMessageHasBeenSet = true; m_initialSystemMessage = std::move(value); }
172
174
178 inline const Aws::String& GetRelatedContactId() const{ return m_relatedContactId; }
179 inline bool RelatedContactIdHasBeenSet() const { return m_relatedContactIdHasBeenSet; }
180 inline void SetRelatedContactId(const Aws::String& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = value; }
181 inline void SetRelatedContactId(Aws::String&& value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId = std::move(value); }
182 inline void SetRelatedContactId(const char* value) { m_relatedContactIdHasBeenSet = true; m_relatedContactId.assign(value); }
184 inline StartOutboundChatContactRequest& WithRelatedContactId(Aws::String&& value) { SetRelatedContactId(std::move(value)); return *this;}
185 inline StartOutboundChatContactRequest& WithRelatedContactId(const char* value) { SetRelatedContactId(value); return *this;}
187
189
204 inline const Aws::Vector<Aws::String>& GetSupportedMessagingContentTypes() const{ return m_supportedMessagingContentTypes; }
205 inline bool SupportedMessagingContentTypesHasBeenSet() const { return m_supportedMessagingContentTypesHasBeenSet; }
206 inline void SetSupportedMessagingContentTypes(const Aws::Vector<Aws::String>& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes = value; }
207 inline void SetSupportedMessagingContentTypes(Aws::Vector<Aws::String>&& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes = std::move(value); }
210 inline StartOutboundChatContactRequest& AddSupportedMessagingContentTypes(const Aws::String& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes.push_back(value); return *this; }
211 inline StartOutboundChatContactRequest& AddSupportedMessagingContentTypes(Aws::String&& value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes.push_back(std::move(value)); return *this; }
212 inline StartOutboundChatContactRequest& AddSupportedMessagingContentTypes(const char* value) { m_supportedMessagingContentTypesHasBeenSet = true; m_supportedMessagingContentTypes.push_back(value); return *this; }
214
216
224 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
225 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
226 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
227 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
228 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
229 inline StartOutboundChatContactRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
230 inline StartOutboundChatContactRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
231 inline StartOutboundChatContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
233 private:
234
235 Endpoint m_sourceEndpoint;
236 bool m_sourceEndpointHasBeenSet = false;
237
238 Endpoint m_destinationEndpoint;
239 bool m_destinationEndpointHasBeenSet = false;
240
241 Aws::String m_instanceId;
242 bool m_instanceIdHasBeenSet = false;
243
245 bool m_segmentAttributesHasBeenSet = false;
246
248 bool m_attributesHasBeenSet = false;
249
250 Aws::String m_contactFlowId;
251 bool m_contactFlowIdHasBeenSet = false;
252
253 int m_chatDurationInMinutes;
254 bool m_chatDurationInMinutesHasBeenSet = false;
255
256 ParticipantDetails m_participantDetails;
257 bool m_participantDetailsHasBeenSet = false;
258
259 ChatMessage m_initialSystemMessage;
260 bool m_initialSystemMessageHasBeenSet = false;
261
262 Aws::String m_relatedContactId;
263 bool m_relatedContactIdHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_supportedMessagingContentTypes;
266 bool m_supportedMessagingContentTypesHasBeenSet = false;
267
268 Aws::String m_clientToken;
269 bool m_clientTokenHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace Connect
274} // namespace Aws
StartOutboundChatContactRequest & WithInstanceId(const char *value)
StartOutboundChatContactRequest & AddSegmentAttributes(const Aws::String &key, const SegmentAttributeValue &value)
void SetSupportedMessagingContentTypes(Aws::Vector< Aws::String > &&value)
StartOutboundChatContactRequest & WithSupportedMessagingContentTypes(const Aws::Vector< Aws::String > &value)
StartOutboundChatContactRequest & WithSupportedMessagingContentTypes(Aws::Vector< Aws::String > &&value)
void SetSegmentAttributes(const Aws::Map< Aws::String, SegmentAttributeValue > &value)
StartOutboundChatContactRequest & WithInstanceId(Aws::String &&value)
StartOutboundChatContactRequest & WithContactFlowId(Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
StartOutboundChatContactRequest & WithInitialSystemMessage(const ChatMessage &value)
StartOutboundChatContactRequest & WithRelatedContactId(Aws::String &&value)
StartOutboundChatContactRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
StartOutboundChatContactRequest & AddSegmentAttributes(const char *key, SegmentAttributeValue &&value)
StartOutboundChatContactRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
StartOutboundChatContactRequest & WithChatDurationInMinutes(int value)
StartOutboundChatContactRequest & AddAttributes(Aws::String &&key, const char *value)
StartOutboundChatContactRequest & AddSegmentAttributes(Aws::String &&key, const SegmentAttributeValue &value)
StartOutboundChatContactRequest & WithParticipantDetails(const ParticipantDetails &value)
StartOutboundChatContactRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
StartOutboundChatContactRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, SegmentAttributeValue > & GetSegmentAttributes() const
StartOutboundChatContactRequest & AddSupportedMessagingContentTypes(const Aws::String &value)
StartOutboundChatContactRequest & WithSourceEndpoint(Endpoint &&value)
StartOutboundChatContactRequest & WithClientToken(const char *value)
StartOutboundChatContactRequest & AddSegmentAttributes(const Aws::String &key, SegmentAttributeValue &&value)
StartOutboundChatContactRequest & WithSourceEndpoint(const Endpoint &value)
StartOutboundChatContactRequest & WithContactFlowId(const char *value)
StartOutboundChatContactRequest & WithRelatedContactId(const Aws::String &value)
StartOutboundChatContactRequest & WithSegmentAttributes(const Aws::Map< Aws::String, SegmentAttributeValue > &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
StartOutboundChatContactRequest & WithClientToken(const Aws::String &value)
StartOutboundChatContactRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
StartOutboundChatContactRequest & AddAttributes(const char *key, Aws::String &&value)
StartOutboundChatContactRequest & AddSegmentAttributes(Aws::String &&key, SegmentAttributeValue &&value)
StartOutboundChatContactRequest & AddSupportedMessagingContentTypes(Aws::String &&value)
StartOutboundChatContactRequest & WithDestinationEndpoint(Endpoint &&value)
StartOutboundChatContactRequest & AddAttributes(const char *key, const char *value)
StartOutboundChatContactRequest & WithSegmentAttributes(Aws::Map< Aws::String, SegmentAttributeValue > &&value)
StartOutboundChatContactRequest & WithClientToken(Aws::String &&value)
void SetSupportedMessagingContentTypes(const Aws::Vector< Aws::String > &value)
StartOutboundChatContactRequest & WithParticipantDetails(ParticipantDetails &&value)
StartOutboundChatContactRequest & WithDestinationEndpoint(const Endpoint &value)
StartOutboundChatContactRequest & WithInitialSystemMessage(ChatMessage &&value)
StartOutboundChatContactRequest & AddSupportedMessagingContentTypes(const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetSupportedMessagingContentTypes() const
StartOutboundChatContactRequest & WithRelatedContactId(const char *value)
StartOutboundChatContactRequest & AddSegmentAttributes(const char *key, const SegmentAttributeValue &value)
StartOutboundChatContactRequest & WithInstanceId(const Aws::String &value)
void SetSegmentAttributes(Aws::Map< Aws::String, SegmentAttributeValue > &&value)
StartOutboundChatContactRequest & WithContactFlowId(const Aws::String &value)
StartOutboundChatContactRequest & AddAttributes(Aws::String &&key, const Aws::String &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