AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendChatIntegrationEventRequest.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/connect/model/ChatEvent.h>
11#include <aws/connect/model/NewSessionDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SendChatIntegrationEvent"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetSourceId() const{ return m_sourceId; }
44 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
45 inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; }
46 inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); }
47 inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); }
48 inline SendChatIntegrationEventRequest& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
49 inline SendChatIntegrationEventRequest& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
50 inline SendChatIntegrationEventRequest& WithSourceId(const char* value) { SetSourceId(value); return *this;}
52
54
60 inline const Aws::String& GetDestinationId() const{ return m_destinationId; }
61 inline bool DestinationIdHasBeenSet() const { return m_destinationIdHasBeenSet; }
62 inline void SetDestinationId(const Aws::String& value) { m_destinationIdHasBeenSet = true; m_destinationId = value; }
63 inline void SetDestinationId(Aws::String&& value) { m_destinationIdHasBeenSet = true; m_destinationId = std::move(value); }
64 inline void SetDestinationId(const char* value) { m_destinationIdHasBeenSet = true; m_destinationId.assign(value); }
66 inline SendChatIntegrationEventRequest& WithDestinationId(Aws::String&& value) { SetDestinationId(std::move(value)); return *this;}
67 inline SendChatIntegrationEventRequest& WithDestinationId(const char* value) { SetDestinationId(value); return *this;}
69
71
75 inline const Aws::String& GetSubtype() const{ return m_subtype; }
76 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
77 inline void SetSubtype(const Aws::String& value) { m_subtypeHasBeenSet = true; m_subtype = value; }
78 inline void SetSubtype(Aws::String&& value) { m_subtypeHasBeenSet = true; m_subtype = std::move(value); }
79 inline void SetSubtype(const char* value) { m_subtypeHasBeenSet = true; m_subtype.assign(value); }
80 inline SendChatIntegrationEventRequest& WithSubtype(const Aws::String& value) { SetSubtype(value); return *this;}
81 inline SendChatIntegrationEventRequest& WithSubtype(Aws::String&& value) { SetSubtype(std::move(value)); return *this;}
82 inline SendChatIntegrationEventRequest& WithSubtype(const char* value) { SetSubtype(value); return *this;}
84
86
89 inline const ChatEvent& GetEvent() const{ return m_event; }
90 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
91 inline void SetEvent(const ChatEvent& value) { m_eventHasBeenSet = true; m_event = value; }
92 inline void SetEvent(ChatEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
93 inline SendChatIntegrationEventRequest& WithEvent(const ChatEvent& value) { SetEvent(value); return *this;}
94 inline SendChatIntegrationEventRequest& WithEvent(ChatEvent&& value) { SetEvent(std::move(value)); return *this;}
96
98
102 inline const NewSessionDetails& GetNewSessionDetails() const{ return m_newSessionDetails; }
103 inline bool NewSessionDetailsHasBeenSet() const { return m_newSessionDetailsHasBeenSet; }
104 inline void SetNewSessionDetails(const NewSessionDetails& value) { m_newSessionDetailsHasBeenSet = true; m_newSessionDetails = value; }
105 inline void SetNewSessionDetails(NewSessionDetails&& value) { m_newSessionDetailsHasBeenSet = true; m_newSessionDetails = std::move(value); }
109 private:
110
111 Aws::String m_sourceId;
112 bool m_sourceIdHasBeenSet = false;
113
114 Aws::String m_destinationId;
115 bool m_destinationIdHasBeenSet = false;
116
117 Aws::String m_subtype;
118 bool m_subtypeHasBeenSet = false;
119
120 ChatEvent m_event;
121 bool m_eventHasBeenSet = false;
122
123 NewSessionDetails m_newSessionDetails;
124 bool m_newSessionDetailsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Connect
129} // namespace Aws
SendChatIntegrationEventRequest & WithDestinationId(const char *value)
SendChatIntegrationEventRequest & WithSourceId(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SendChatIntegrationEventRequest & WithSubtype(const char *value)
SendChatIntegrationEventRequest & WithEvent(const ChatEvent &value)
SendChatIntegrationEventRequest & WithNewSessionDetails(const NewSessionDetails &value)
SendChatIntegrationEventRequest & WithSubtype(Aws::String &&value)
SendChatIntegrationEventRequest & WithDestinationId(Aws::String &&value)
SendChatIntegrationEventRequest & WithSourceId(const char *value)
SendChatIntegrationEventRequest & WithNewSessionDetails(NewSessionDetails &&value)
SendChatIntegrationEventRequest & WithEvent(ChatEvent &&value)
SendChatIntegrationEventRequest & WithDestinationId(const Aws::String &value)
SendChatIntegrationEventRequest & WithSubtype(const Aws::String &value)
SendChatIntegrationEventRequest & WithSourceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String