AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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:
26 AWS_CONNECT_API SendChatIntegrationEventRequest() = default;
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 template<typename SourceIdT = Aws::String>
46 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
47 template<typename SourceIdT = Aws::String>
48 SendChatIntegrationEventRequest& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
50
52
59 inline const Aws::String& GetDestinationId() const { return m_destinationId; }
60 inline bool DestinationIdHasBeenSet() const { return m_destinationIdHasBeenSet; }
61 template<typename DestinationIdT = Aws::String>
62 void SetDestinationId(DestinationIdT&& value) { m_destinationIdHasBeenSet = true; m_destinationId = std::forward<DestinationIdT>(value); }
63 template<typename DestinationIdT = Aws::String>
64 SendChatIntegrationEventRequest& WithDestinationId(DestinationIdT&& value) { SetDestinationId(std::forward<DestinationIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetSubtype() const { return m_subtype; }
73 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
74 template<typename SubtypeT = Aws::String>
75 void SetSubtype(SubtypeT&& value) { m_subtypeHasBeenSet = true; m_subtype = std::forward<SubtypeT>(value); }
76 template<typename SubtypeT = Aws::String>
77 SendChatIntegrationEventRequest& WithSubtype(SubtypeT&& value) { SetSubtype(std::forward<SubtypeT>(value)); return *this;}
79
81
84 inline const ChatEvent& GetEvent() const { return m_event; }
85 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
86 template<typename EventT = ChatEvent>
87 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
88 template<typename EventT = ChatEvent>
89 SendChatIntegrationEventRequest& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
91
93
97 inline const NewSessionDetails& GetNewSessionDetails() const { return m_newSessionDetails; }
98 inline bool NewSessionDetailsHasBeenSet() const { return m_newSessionDetailsHasBeenSet; }
99 template<typename NewSessionDetailsT = NewSessionDetails>
100 void SetNewSessionDetails(NewSessionDetailsT&& value) { m_newSessionDetailsHasBeenSet = true; m_newSessionDetails = std::forward<NewSessionDetailsT>(value); }
101 template<typename NewSessionDetailsT = NewSessionDetails>
102 SendChatIntegrationEventRequest& WithNewSessionDetails(NewSessionDetailsT&& value) { SetNewSessionDetails(std::forward<NewSessionDetailsT>(value)); return *this;}
104 private:
105
106 Aws::String m_sourceId;
107 bool m_sourceIdHasBeenSet = false;
108
109 Aws::String m_destinationId;
110 bool m_destinationIdHasBeenSet = false;
111
112 Aws::String m_subtype;
113 bool m_subtypeHasBeenSet = false;
114
115 ChatEvent m_event;
116 bool m_eventHasBeenSet = false;
117
118 NewSessionDetails m_newSessionDetails;
119 bool m_newSessionDetailsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Connect
124} // 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