AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SendConnectorEventRequest.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/model/ConnectorEventOperation.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot-managed-integrations/model/MatterEndpoint.h>
13#include <aws/iot-managed-integrations/model/Device.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTManagedIntegrations
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTMANAGEDINTEGRATIONS_API SendConnectorEventRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SendConnectorEvent"; }
35
36 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
45 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
46 template<typename ConnectorIdT = Aws::String>
47 void SetConnectorId(ConnectorIdT&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::forward<ConnectorIdT>(value); }
48 template<typename ConnectorIdT = Aws::String>
49 SendConnectorEventRequest& WithConnectorId(ConnectorIdT&& value) { SetConnectorId(std::forward<ConnectorIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetUserId() const { return m_userId; }
57 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
58 template<typename UserIdT = Aws::String>
59 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
60 template<typename UserIdT = Aws::String>
61 SendConnectorEventRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
63
65
70 inline ConnectorEventOperation GetOperation() const { return m_operation; }
71 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
72 inline void SetOperation(ConnectorEventOperation value) { m_operationHasBeenSet = true; m_operation = value; }
75
77
83 inline const Aws::String& GetOperationVersion() const { return m_operationVersion; }
84 inline bool OperationVersionHasBeenSet() const { return m_operationVersionHasBeenSet; }
85 template<typename OperationVersionT = Aws::String>
86 void SetOperationVersion(OperationVersionT&& value) { m_operationVersionHasBeenSet = true; m_operationVersion = std::forward<OperationVersionT>(value); }
87 template<typename OperationVersionT = Aws::String>
88 SendConnectorEventRequest& WithOperationVersion(OperationVersionT&& value) { SetOperationVersion(std::forward<OperationVersionT>(value)); return *this;}
90
92
96 inline int GetStatusCode() const { return m_statusCode; }
97 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
98 inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
99 inline SendConnectorEventRequest& WithStatusCode(int value) { SetStatusCode(value); return *this;}
101
103
112 inline const Aws::String& GetMessage() const { return m_message; }
113 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
114 template<typename MessageT = Aws::String>
115 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
116 template<typename MessageT = Aws::String>
117 SendConnectorEventRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
119
121
124 inline const Aws::String& GetDeviceDiscoveryId() const { return m_deviceDiscoveryId; }
125 inline bool DeviceDiscoveryIdHasBeenSet() const { return m_deviceDiscoveryIdHasBeenSet; }
126 template<typename DeviceDiscoveryIdT = Aws::String>
127 void SetDeviceDiscoveryId(DeviceDiscoveryIdT&& value) { m_deviceDiscoveryIdHasBeenSet = true; m_deviceDiscoveryId = std::forward<DeviceDiscoveryIdT>(value); }
128 template<typename DeviceDiscoveryIdT = Aws::String>
129 SendConnectorEventRequest& WithDeviceDiscoveryId(DeviceDiscoveryIdT&& value) { SetDeviceDiscoveryId(std::forward<DeviceDiscoveryIdT>(value)); return *this;}
131
133
138 inline const Aws::String& GetConnectorDeviceId() const { return m_connectorDeviceId; }
139 inline bool ConnectorDeviceIdHasBeenSet() const { return m_connectorDeviceIdHasBeenSet; }
140 template<typename ConnectorDeviceIdT = Aws::String>
141 void SetConnectorDeviceId(ConnectorDeviceIdT&& value) { m_connectorDeviceIdHasBeenSet = true; m_connectorDeviceId = std::forward<ConnectorDeviceIdT>(value); }
142 template<typename ConnectorDeviceIdT = Aws::String>
143 SendConnectorEventRequest& WithConnectorDeviceId(ConnectorDeviceIdT&& value) { SetConnectorDeviceId(std::forward<ConnectorDeviceIdT>(value)); return *this;}
145
147
152 inline const Aws::String& GetTraceId() const { return m_traceId; }
153 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
154 template<typename TraceIdT = Aws::String>
155 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet = true; m_traceId = std::forward<TraceIdT>(value); }
156 template<typename TraceIdT = Aws::String>
157 SendConnectorEventRequest& WithTraceId(TraceIdT&& value) { SetTraceId(std::forward<TraceIdT>(value)); return *this;}
159
161
164 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
165 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
166 template<typename DevicesT = Aws::Vector<Device>>
167 void SetDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices = std::forward<DevicesT>(value); }
168 template<typename DevicesT = Aws::Vector<Device>>
169 SendConnectorEventRequest& WithDevices(DevicesT&& value) { SetDevices(std::forward<DevicesT>(value)); return *this;}
170 template<typename DevicesT = Device>
171 SendConnectorEventRequest& AddDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices.emplace_back(std::forward<DevicesT>(value)); return *this; }
173
175
178 inline const MatterEndpoint& GetMatterEndpoint() const { return m_matterEndpoint; }
179 inline bool MatterEndpointHasBeenSet() const { return m_matterEndpointHasBeenSet; }
180 template<typename MatterEndpointT = MatterEndpoint>
181 void SetMatterEndpoint(MatterEndpointT&& value) { m_matterEndpointHasBeenSet = true; m_matterEndpoint = std::forward<MatterEndpointT>(value); }
182 template<typename MatterEndpointT = MatterEndpoint>
183 SendConnectorEventRequest& WithMatterEndpoint(MatterEndpointT&& value) { SetMatterEndpoint(std::forward<MatterEndpointT>(value)); return *this;}
185 private:
186
187 Aws::String m_connectorId;
188 bool m_connectorIdHasBeenSet = false;
189
190 Aws::String m_userId;
191 bool m_userIdHasBeenSet = false;
192
194 bool m_operationHasBeenSet = false;
195
196 Aws::String m_operationVersion;
197 bool m_operationVersionHasBeenSet = false;
198
199 int m_statusCode{0};
200 bool m_statusCodeHasBeenSet = false;
201
202 Aws::String m_message;
203 bool m_messageHasBeenSet = false;
204
205 Aws::String m_deviceDiscoveryId;
206 bool m_deviceDiscoveryIdHasBeenSet = false;
207
208 Aws::String m_connectorDeviceId;
209 bool m_connectorDeviceIdHasBeenSet = false;
210
211 Aws::String m_traceId;
212 bool m_traceIdHasBeenSet = false;
213
214 Aws::Vector<Device> m_devices;
215 bool m_devicesHasBeenSet = false;
216
217 MatterEndpoint m_matterEndpoint;
218 bool m_matterEndpointHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace IoTManagedIntegrations
223} // 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