Class IotHubDeviceTelemetryEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceTelemetryEventProperties
com.azure.messaging.eventgrid.systemevents.IotHubDeviceTelemetryEventData
Event data for Microsoft.Devices.DeviceTelemetry event.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet the body property: The content of the message from the device.setProperties
(Map<String, String> properties) Set the properties property: Application properties are user-defined strings that can be added to the message.setSystemProperties
(Map<String, String> systemProperties) Set the systemProperties property: System properties help identify contents and source of the messages.Methods inherited from class com.azure.messaging.eventgrid.systemevents.DeviceTelemetryEventProperties
getBody, getProperties, getSystemProperties
-
Constructor Details
-
IotHubDeviceTelemetryEventData
public IotHubDeviceTelemetryEventData()
-
-
Method Details
-
setBody
Set the body property: The content of the message from the device.- Overrides:
setBody
in classDeviceTelemetryEventProperties
- Parameters:
body
- the body value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-
setProperties
Set the properties property: Application properties are user-defined strings that can be added to the message. These fields are optional.- Overrides:
setProperties
in classDeviceTelemetryEventProperties
- Parameters:
properties
- the properties value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-
setSystemProperties
Set the systemProperties property: System properties help identify contents and source of the messages.- Overrides:
setSystemProperties
in classDeviceTelemetryEventProperties
- Parameters:
systemProperties
- the systemProperties value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-