AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SendConnectorEventRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/ConnectorEventOperation.h>
12#include <aws/iot-managed-integrations/model/Device.h>
13#include <aws/iot-managed-integrations/model/MatterEndpoint.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTManagedIntegrations {
19namespace Model {
20
24 public:
25 AWS_IOTMANAGEDINTEGRATIONS_API SendConnectorEventRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SendConnectorEvent"; }
32
33 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
41 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
42 template <typename ConnectorIdT = Aws::String>
43 void SetConnectorId(ConnectorIdT&& value) {
44 m_connectorIdHasBeenSet = true;
45 m_connectorId = std::forward<ConnectorIdT>(value);
46 }
47 template <typename ConnectorIdT = Aws::String>
49 SetConnectorId(std::forward<ConnectorIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUserId() const { return m_userId; }
59 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
60 template <typename UserIdT = Aws::String>
61 void SetUserId(UserIdT&& value) {
62 m_userIdHasBeenSet = true;
63 m_userId = std::forward<UserIdT>(value);
64 }
65 template <typename UserIdT = Aws::String>
67 SetUserId(std::forward<UserIdT>(value));
68 return *this;
69 }
71
73
78 inline ConnectorEventOperation GetOperation() const { return m_operation; }
79 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
81 m_operationHasBeenSet = true;
82 m_operation = value;
83 }
85 SetOperation(value);
86 return *this;
87 }
89
91
97 inline const Aws::String& GetOperationVersion() const { return m_operationVersion; }
98 inline bool OperationVersionHasBeenSet() const { return m_operationVersionHasBeenSet; }
99 template <typename OperationVersionT = Aws::String>
100 void SetOperationVersion(OperationVersionT&& value) {
101 m_operationVersionHasBeenSet = true;
102 m_operationVersion = std::forward<OperationVersionT>(value);
103 }
104 template <typename OperationVersionT = Aws::String>
106 SetOperationVersion(std::forward<OperationVersionT>(value));
107 return *this;
108 }
110
112
116 inline int GetStatusCode() const { return m_statusCode; }
117 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
118 inline void SetStatusCode(int value) {
119 m_statusCodeHasBeenSet = true;
120 m_statusCode = value;
121 }
123 SetStatusCode(value);
124 return *this;
125 }
127
129
138 inline const Aws::String& GetMessage() const { return m_message; }
139 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
140 template <typename MessageT = Aws::String>
141 void SetMessage(MessageT&& value) {
142 m_messageHasBeenSet = true;
143 m_message = std::forward<MessageT>(value);
144 }
145 template <typename MessageT = Aws::String>
147 SetMessage(std::forward<MessageT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetDeviceDiscoveryId() const { return m_deviceDiscoveryId; }
157 inline bool DeviceDiscoveryIdHasBeenSet() const { return m_deviceDiscoveryIdHasBeenSet; }
158 template <typename DeviceDiscoveryIdT = Aws::String>
159 void SetDeviceDiscoveryId(DeviceDiscoveryIdT&& value) {
160 m_deviceDiscoveryIdHasBeenSet = true;
161 m_deviceDiscoveryId = std::forward<DeviceDiscoveryIdT>(value);
162 }
163 template <typename DeviceDiscoveryIdT = Aws::String>
165 SetDeviceDiscoveryId(std::forward<DeviceDiscoveryIdT>(value));
166 return *this;
167 }
169
171
176 inline const Aws::String& GetConnectorDeviceId() const { return m_connectorDeviceId; }
177 inline bool ConnectorDeviceIdHasBeenSet() const { return m_connectorDeviceIdHasBeenSet; }
178 template <typename ConnectorDeviceIdT = Aws::String>
179 void SetConnectorDeviceId(ConnectorDeviceIdT&& value) {
180 m_connectorDeviceIdHasBeenSet = true;
181 m_connectorDeviceId = std::forward<ConnectorDeviceIdT>(value);
182 }
183 template <typename ConnectorDeviceIdT = Aws::String>
185 SetConnectorDeviceId(std::forward<ConnectorDeviceIdT>(value));
186 return *this;
187 }
189
191
196 inline const Aws::String& GetTraceId() const { return m_traceId; }
197 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
198 template <typename TraceIdT = Aws::String>
199 void SetTraceId(TraceIdT&& value) {
200 m_traceIdHasBeenSet = true;
201 m_traceId = std::forward<TraceIdT>(value);
202 }
203 template <typename TraceIdT = Aws::String>
205 SetTraceId(std::forward<TraceIdT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
215 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
216 template <typename DevicesT = Aws::Vector<Device>>
217 void SetDevices(DevicesT&& value) {
218 m_devicesHasBeenSet = true;
219 m_devices = std::forward<DevicesT>(value);
220 }
221 template <typename DevicesT = Aws::Vector<Device>>
223 SetDevices(std::forward<DevicesT>(value));
224 return *this;
225 }
226 template <typename DevicesT = Device>
228 m_devicesHasBeenSet = true;
229 m_devices.emplace_back(std::forward<DevicesT>(value));
230 return *this;
231 }
233
235
238 inline const MatterEndpoint& GetMatterEndpoint() const { return m_matterEndpoint; }
239 inline bool MatterEndpointHasBeenSet() const { return m_matterEndpointHasBeenSet; }
240 template <typename MatterEndpointT = MatterEndpoint>
241 void SetMatterEndpoint(MatterEndpointT&& value) {
242 m_matterEndpointHasBeenSet = true;
243 m_matterEndpoint = std::forward<MatterEndpointT>(value);
244 }
245 template <typename MatterEndpointT = MatterEndpoint>
247 SetMatterEndpoint(std::forward<MatterEndpointT>(value));
248 return *this;
249 }
251 private:
252 Aws::String m_connectorId;
253
254 Aws::String m_userId;
255
257
258 Aws::String m_operationVersion;
259
260 int m_statusCode{0};
261
262 Aws::String m_message;
263
264 Aws::String m_deviceDiscoveryId;
265
266 Aws::String m_connectorDeviceId;
267
268 Aws::String m_traceId;
269
270 Aws::Vector<Device> m_devices;
271
272 MatterEndpoint m_matterEndpoint;
273 bool m_connectorIdHasBeenSet = false;
274 bool m_userIdHasBeenSet = false;
275 bool m_operationHasBeenSet = false;
276 bool m_operationVersionHasBeenSet = false;
277 bool m_statusCodeHasBeenSet = false;
278 bool m_messageHasBeenSet = false;
279 bool m_deviceDiscoveryIdHasBeenSet = false;
280 bool m_connectorDeviceIdHasBeenSet = false;
281 bool m_traceIdHasBeenSet = false;
282 bool m_devicesHasBeenSet = false;
283 bool m_matterEndpointHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace IoTManagedIntegrations
288} // namespace Aws
SendConnectorEventRequest & WithOperation(ConnectorEventOperation value)
SendConnectorEventRequest & WithOperationVersion(OperationVersionT &&value)
SendConnectorEventRequest & WithConnectorDeviceId(ConnectorDeviceIdT &&value)
SendConnectorEventRequest & WithDeviceDiscoveryId(DeviceDiscoveryIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
AWS_IOTMANAGEDINTEGRATIONS_API SendConnectorEventRequest()=default
SendConnectorEventRequest & WithMatterEndpoint(MatterEndpointT &&value)
SendConnectorEventRequest & WithConnectorId(ConnectorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector