AWS SDK for C++

AWS SDK for C++ Version 1.11.837

Loading...
Searching...
No Matches
SendOutboundWebNotificationRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/WebNotificationContent.h>
10#include <aws/connect/model/WebNotificationSource.h>
11#include <aws/connect/model/WidgetDestination.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Connect {
20namespace Model {
21
25 public:
26 AWS_CONNECT_API SendOutboundWebNotificationRequest() = 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 "SendOutboundWebNotification"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetClientToken() const { return m_clientToken; }
65 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
66 template <typename ClientTokenT = Aws::String>
67 void SetClientToken(ClientTokenT&& value) {
68 m_clientTokenHasBeenSet = true;
69 m_clientToken = std::forward<ClientTokenT>(value);
70 }
71 template <typename ClientTokenT = Aws::String>
73 SetClientToken(std::forward<ClientTokenT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetBrowserId() const { return m_browserId; }
84 inline bool BrowserIdHasBeenSet() const { return m_browserIdHasBeenSet; }
85 template <typename BrowserIdT = Aws::String>
86 void SetBrowserId(BrowserIdT&& value) {
87 m_browserIdHasBeenSet = true;
88 m_browserId = std::forward<BrowserIdT>(value);
89 }
90 template <typename BrowserIdT = Aws::String>
92 SetBrowserId(std::forward<BrowserIdT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetSessionId() const { return m_sessionId; }
103 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
104 template <typename SessionIdT = Aws::String>
105 void SetSessionId(SessionIdT&& value) {
106 m_sessionIdHasBeenSet = true;
107 m_sessionId = std::forward<SessionIdT>(value);
108 }
109 template <typename SessionIdT = Aws::String>
111 SetSessionId(std::forward<SessionIdT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
123 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
124 template <typename ExpiresAtT = Aws::Utils::DateTime>
125 void SetExpiresAt(ExpiresAtT&& value) {
126 m_expiresAtHasBeenSet = true;
127 m_expiresAt = std::forward<ExpiresAtT>(value);
128 }
129 template <typename ExpiresAtT = Aws::Utils::DateTime>
131 SetExpiresAt(std::forward<ExpiresAtT>(value));
132 return *this;
133 }
135
137
142 inline const WebNotificationSource& GetSource() const { return m_source; }
143 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
144 template <typename SourceT = WebNotificationSource>
145 void SetSource(SourceT&& value) {
146 m_sourceHasBeenSet = true;
147 m_source = std::forward<SourceT>(value);
148 }
149 template <typename SourceT = WebNotificationSource>
151 SetSource(std::forward<SourceT>(value));
152 return *this;
153 }
155
157
161 inline const WidgetDestination& GetDestination() const { return m_destination; }
162 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
163 template <typename DestinationT = WidgetDestination>
164 void SetDestination(DestinationT&& value) {
165 m_destinationHasBeenSet = true;
166 m_destination = std::forward<DestinationT>(value);
167 }
168 template <typename DestinationT = WidgetDestination>
170 SetDestination(std::forward<DestinationT>(value));
171 return *this;
172 }
174
176
180 inline const WebNotificationContent& GetContent() const { return m_content; }
181 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
182 template <typename ContentT = WebNotificationContent>
183 void SetContent(ContentT&& value) {
184 m_contentHasBeenSet = true;
185 m_content = std::forward<ContentT>(value);
186 }
187 template <typename ContentT = WebNotificationContent>
189 SetContent(std::forward<ContentT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_instanceId;
195
197
198 Aws::String m_browserId;
199
200 Aws::String m_sessionId;
201
202 Aws::Utils::DateTime m_expiresAt{};
203
204 WebNotificationSource m_source;
205
206 WidgetDestination m_destination;
207
208 WebNotificationContent m_content;
209 bool m_instanceIdHasBeenSet = false;
210 bool m_clientTokenHasBeenSet = true;
211 bool m_browserIdHasBeenSet = false;
212 bool m_sessionIdHasBeenSet = false;
213 bool m_expiresAtHasBeenSet = false;
214 bool m_sourceHasBeenSet = false;
215 bool m_destinationHasBeenSet = false;
216 bool m_contentHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace Connect
221} // namespace Aws
SendOutboundWebNotificationRequest & WithDestination(DestinationT &&value)
SendOutboundWebNotificationRequest & WithSessionId(SessionIdT &&value)
SendOutboundWebNotificationRequest & WithSource(SourceT &&value)
SendOutboundWebNotificationRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SendOutboundWebNotificationRequest & WithContent(ContentT &&value)
SendOutboundWebNotificationRequest & WithExpiresAt(ExpiresAtT &&value)
SendOutboundWebNotificationRequest & WithClientToken(ClientTokenT &&value)
SendOutboundWebNotificationRequest & WithBrowserId(BrowserIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String