Class DeviceTelemetryEventProperties
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceTelemetryEventProperties
- Direct Known Subclasses:
IotHubDeviceTelemetryEventData
Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Get the body property: The content of the message from the device.Get the properties property: Application properties are user-defined strings that can be added to the message.Get the systemProperties property: System properties help identify contents and source of the messages.Set 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.
-
Constructor Details
-
DeviceTelemetryEventProperties
public DeviceTelemetryEventProperties()
-
-
Method Details
-
getBody
Get the body property: The content of the message from the device.- Returns:
- the body value.
-
setBody
Set the body property: The content of the message from the device.- Parameters:
body
- the body value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-
getProperties
Get the properties property: Application properties are user-defined strings that can be added to the message. These fields are optional.- Returns:
- the properties value.
-
setProperties
Set the properties property: Application properties are user-defined strings that can be added to the message. These fields are optional.- Parameters:
properties
- the properties value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-
getSystemProperties
Get the systemProperties property: System properties help identify contents and source of the messages.- Returns:
- the systemProperties value.
-
setSystemProperties
Set the systemProperties property: System properties help identify contents and source of the messages.- Parameters:
systemProperties
- the systemProperties value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-