AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SendChatIntegrationEventRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ChatEvent.h>
10#include <aws/connect/model/NewSessionDetails.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API SendChatIntegrationEventRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SendChatIntegrationEvent"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetSourceId() const { return m_sourceId; }
40 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
41 template <typename SourceIdT = Aws::String>
42 void SetSourceId(SourceIdT&& value) {
43 m_sourceIdHasBeenSet = true;
44 m_sourceId = std::forward<SourceIdT>(value);
45 }
46 template <typename SourceIdT = Aws::String>
48 SetSourceId(std::forward<SourceIdT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetDestinationId() const { return m_destinationId; }
62 inline bool DestinationIdHasBeenSet() const { return m_destinationIdHasBeenSet; }
63 template <typename DestinationIdT = Aws::String>
64 void SetDestinationId(DestinationIdT&& value) {
65 m_destinationIdHasBeenSet = true;
66 m_destinationId = std::forward<DestinationIdT>(value);
67 }
68 template <typename DestinationIdT = Aws::String>
70 SetDestinationId(std::forward<DestinationIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetSubtype() const { return m_subtype; }
81 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
82 template <typename SubtypeT = Aws::String>
83 void SetSubtype(SubtypeT&& value) {
84 m_subtypeHasBeenSet = true;
85 m_subtype = std::forward<SubtypeT>(value);
86 }
87 template <typename SubtypeT = Aws::String>
89 SetSubtype(std::forward<SubtypeT>(value));
90 return *this;
91 }
93
95
98 inline const ChatEvent& GetEvent() const { return m_event; }
99 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
100 template <typename EventT = ChatEvent>
101 void SetEvent(EventT&& value) {
102 m_eventHasBeenSet = true;
103 m_event = std::forward<EventT>(value);
104 }
105 template <typename EventT = ChatEvent>
107 SetEvent(std::forward<EventT>(value));
108 return *this;
109 }
111
113
117 inline const NewSessionDetails& GetNewSessionDetails() const { return m_newSessionDetails; }
118 inline bool NewSessionDetailsHasBeenSet() const { return m_newSessionDetailsHasBeenSet; }
119 template <typename NewSessionDetailsT = NewSessionDetails>
120 void SetNewSessionDetails(NewSessionDetailsT&& value) {
121 m_newSessionDetailsHasBeenSet = true;
122 m_newSessionDetails = std::forward<NewSessionDetailsT>(value);
123 }
124 template <typename NewSessionDetailsT = NewSessionDetails>
126 SetNewSessionDetails(std::forward<NewSessionDetailsT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_sourceId;
132
133 Aws::String m_destinationId;
134
135 Aws::String m_subtype;
136
137 ChatEvent m_event;
138
139 NewSessionDetails m_newSessionDetails;
140 bool m_sourceIdHasBeenSet = false;
141 bool m_destinationIdHasBeenSet = false;
142 bool m_subtypeHasBeenSet = false;
143 bool m_eventHasBeenSet = false;
144 bool m_newSessionDetailsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Connect
149} // namespace Aws
SendChatIntegrationEventRequest & WithNewSessionDetails(NewSessionDetailsT &&value)
SendChatIntegrationEventRequest & WithSourceId(SourceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SendChatIntegrationEventRequest & WithSubtype(SubtypeT &&value)
AWS_CONNECT_API SendChatIntegrationEventRequest()=default
SendChatIntegrationEventRequest & WithEvent(EventT &&value)
SendChatIntegrationEventRequest & WithDestinationId(DestinationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String