AWS SDK for C++  1.9.153
AWS SDK for C++
StartChatContactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace Connect
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "StartChatContact"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 
49  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 
67  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
68 
73  inline StartChatContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
74 
79  inline StartChatContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
80 
85  inline StartChatContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
86 
87 
98  inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; }
99 
110  inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; }
111 
122  inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; }
123 
134  inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); }
135 
146  inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); }
147 
158  inline StartChatContactRequest& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;}
159 
170  inline StartChatContactRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;}
171 
182  inline StartChatContactRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;}
183 
184 
192  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
193 
201  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
202 
210  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
211 
219  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
220 
228  inline StartChatContactRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
229 
237  inline StartChatContactRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
238 
246  inline StartChatContactRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
247 
255  inline StartChatContactRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
256 
264  inline StartChatContactRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
265 
273  inline StartChatContactRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
274 
282  inline StartChatContactRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
283 
291  inline StartChatContactRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
292 
300  inline StartChatContactRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
301 
302 
306  inline const ParticipantDetails& GetParticipantDetails() const{ return m_participantDetails; }
307 
311  inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; }
312 
316  inline void SetParticipantDetails(const ParticipantDetails& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = value; }
317 
321  inline void SetParticipantDetails(ParticipantDetails&& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = std::move(value); }
322 
326  inline StartChatContactRequest& WithParticipantDetails(const ParticipantDetails& value) { SetParticipantDetails(value); return *this;}
327 
331  inline StartChatContactRequest& WithParticipantDetails(ParticipantDetails&& value) { SetParticipantDetails(std::move(value)); return *this;}
332 
333 
337  inline const ChatMessage& GetInitialMessage() const{ return m_initialMessage; }
338 
342  inline bool InitialMessageHasBeenSet() const { return m_initialMessageHasBeenSet; }
343 
347  inline void SetInitialMessage(const ChatMessage& value) { m_initialMessageHasBeenSet = true; m_initialMessage = value; }
348 
352  inline void SetInitialMessage(ChatMessage&& value) { m_initialMessageHasBeenSet = true; m_initialMessage = std::move(value); }
353 
357  inline StartChatContactRequest& WithInitialMessage(const ChatMessage& value) { SetInitialMessage(value); return *this;}
358 
362  inline StartChatContactRequest& WithInitialMessage(ChatMessage&& value) { SetInitialMessage(std::move(value)); return *this;}
363 
364 
369  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
370 
375  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
376 
381  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
382 
387  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
388 
393  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
394 
399  inline StartChatContactRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
400 
405  inline StartChatContactRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
406 
411  inline StartChatContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
412 
413  private:
414 
415  Aws::String m_instanceId;
416  bool m_instanceIdHasBeenSet;
417 
418  Aws::String m_contactFlowId;
419  bool m_contactFlowIdHasBeenSet;
420 
422  bool m_attributesHasBeenSet;
423 
424  ParticipantDetails m_participantDetails;
425  bool m_participantDetailsHasBeenSet;
426 
427  ChatMessage m_initialMessage;
428  bool m_initialMessageHasBeenSet;
429 
430  Aws::String m_clientToken;
431  bool m_clientTokenHasBeenSet;
432  };
433 
434 } // namespace Model
435 } // namespace Connect
436 } // namespace Aws
Aws::Connect::Model::StartChatContactRequest::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: StartChatContactRequest.h:192
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(Aws::String &&key, const char *value)
Definition: StartChatContactRequest.h:291
Aws::Connect::Model::ChatMessage
Definition: ChatMessage.h:32
Aws::Connect::Model::StartChatContactRequest::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: StartChatContactRequest.h:210
Aws::Connect::Model::StartChatContactRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: StartChatContactRequest.h:43
Aws::Connect::Model::StartChatContactRequest::SetParticipantDetails
void SetParticipantDetails(const ParticipantDetails &value)
Definition: StartChatContactRequest.h:316
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: StartChatContactRequest.h:264
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: StartChatContactRequest.h:246
Aws::Connect::Model::StartChatContactRequest::WithInstanceId
StartChatContactRequest & WithInstanceId(const Aws::String &value)
Definition: StartChatContactRequest.h:73
Aws::Connect::Model::StartChatContactRequest::WithAttributes
StartChatContactRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: StartChatContactRequest.h:237
Aws::Connect::Model::StartChatContactRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: StartChatContactRequest.h:201
Aws::Connect::Model::StartChatContactRequest::GetContactFlowId
const Aws::String & GetContactFlowId() const
Definition: StartChatContactRequest.h:98
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(const char *key, Aws::String &&value)
Definition: StartChatContactRequest.h:282
Aws::Connect::Model::StartChatContactRequest::ParticipantDetailsHasBeenSet
bool ParticipantDetailsHasBeenSet() const
Definition: StartChatContactRequest.h:311
Aws::Connect::Model::StartChatContactRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: StartChatContactRequest.h:61
Aws::Connect::Model::StartChatContactRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: StartChatContactRequest.h:67
Aws::Connect::Model::StartChatContactRequest::SetContactFlowId
void SetContactFlowId(const Aws::String &value)
Definition: StartChatContactRequest.h:122
Aws::Connect::Model::StartChatContactRequest::SetContactFlowId
void SetContactFlowId(Aws::String &&value)
Definition: StartChatContactRequest.h:134
ChatMessage.h
Aws::Connect::Model::StartChatContactRequest::SetContactFlowId
void SetContactFlowId(const char *value)
Definition: StartChatContactRequest.h:146
Aws::Connect::Model::StartChatContactRequest::WithInitialMessage
StartChatContactRequest & WithInitialMessage(const ChatMessage &value)
Definition: StartChatContactRequest.h:357
Aws::Connect::Model::StartChatContactRequest::WithAttributes
StartChatContactRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: StartChatContactRequest.h:228
Aws::Connect::Model::StartChatContactRequest::WithInitialMessage
StartChatContactRequest & WithInitialMessage(ChatMessage &&value)
Definition: StartChatContactRequest.h:362
Aws::Connect::Model::StartChatContactRequest::GetParticipantDetails
const ParticipantDetails & GetParticipantDetails() const
Definition: StartChatContactRequest.h:306
Aws::Connect::Model::StartChatContactRequest::GetInitialMessage
const ChatMessage & GetInitialMessage() const
Definition: StartChatContactRequest.h:337
Aws::Connect::Model::StartChatContactRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: StartChatContactRequest.h:387
Aws::Connect::Model::StartChatContactRequest::InitialMessageHasBeenSet
bool InitialMessageHasBeenSet() const
Definition: StartChatContactRequest.h:342
Aws::Connect::Model::StartChatContactRequest::WithInstanceId
StartChatContactRequest & WithInstanceId(const char *value)
Definition: StartChatContactRequest.h:85
Aws::Connect::Model::ParticipantDetails
Definition: ParticipantDetails.h:32
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(const char *key, const char *value)
Definition: StartChatContactRequest.h:300
Aws::Connect::Model::StartChatContactRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: StartChatContactRequest.h:375
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::StartChatContactRequest::WithClientToken
StartChatContactRequest & WithClientToken(const char *value)
Definition: StartChatContactRequest.h:411
Aws::Connect::Model::StartChatContactRequest::ContactFlowIdHasBeenSet
bool ContactFlowIdHasBeenSet() const
Definition: StartChatContactRequest.h:110
Aws::Connect::Model::StartChatContactRequest::WithContactFlowId
StartChatContactRequest & WithContactFlowId(Aws::String &&value)
Definition: StartChatContactRequest.h:170
Aws::Connect::Model::StartChatContactRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: StartChatContactRequest.h:381
AWSString.h
Aws::Connect::Model::StartChatContactRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: StartChatContactRequest.h:369
Aws::Connect::Model::StartChatContactRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: StartChatContactRequest.h:49
Aws::Connect::Model::StartChatContactRequest::StartChatContactRequest
StartChatContactRequest()
Aws::Connect::Model::StartChatContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::StartChatContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartChatContactRequest.h:34
Aws::Connect::Model::StartChatContactRequest::WithParticipantDetails
StartChatContactRequest & WithParticipantDetails(const ParticipantDetails &value)
Definition: StartChatContactRequest.h:326
Aws::Connect::Model::StartChatContactRequest::SetInitialMessage
void SetInitialMessage(ChatMessage &&value)
Definition: StartChatContactRequest.h:352
Aws::Connect::Model::StartChatContactRequest::WithContactFlowId
StartChatContactRequest & WithContactFlowId(const Aws::String &value)
Definition: StartChatContactRequest.h:158
ParticipantDetails.h
Aws::Connect::Model::StartChatContactRequest::SetClientToken
void SetClientToken(const char *value)
Definition: StartChatContactRequest.h:393
Aws::Connect::Model::StartChatContactRequest::SetParticipantDetails
void SetParticipantDetails(ParticipantDetails &&value)
Definition: StartChatContactRequest.h:321
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::StartChatContactRequest::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: StartChatContactRequest.h:219
Aws::Connect::Model::StartChatContactRequest::WithClientToken
StartChatContactRequest & WithClientToken(Aws::String &&value)
Definition: StartChatContactRequest.h:405
Aws::Connect::Model::StartChatContactRequest::WithClientToken
StartChatContactRequest & WithClientToken(const Aws::String &value)
Definition: StartChatContactRequest.h:399
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::StartChatContactRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: StartChatContactRequest.h:55
Aws::Connect::Model::StartChatContactRequest::WithParticipantDetails
StartChatContactRequest & WithParticipantDetails(ParticipantDetails &&value)
Definition: StartChatContactRequest.h:331
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: StartChatContactRequest.h:255
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::StartChatContactRequest::AddAttributes
StartChatContactRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: StartChatContactRequest.h:273
UUID.h
Connect_EXPORTS.h
AWSMap.h
Aws::Connect::Model::StartChatContactRequest::WithContactFlowId
StartChatContactRequest & WithContactFlowId(const char *value)
Definition: StartChatContactRequest.h:182
ConnectRequest.h
Aws::Connect::Model::StartChatContactRequest::SetInitialMessage
void SetInitialMessage(const ChatMessage &value)
Definition: StartChatContactRequest.h:347
Aws::Connect::Model::StartChatContactRequest::WithInstanceId
StartChatContactRequest & WithInstanceId(Aws::String &&value)
Definition: StartChatContactRequest.h:79
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Connect::Model::StartChatContactRequest
Definition: StartChatContactRequest.h:26