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
ConstructorsConstructorDescriptionCreates an instance of IotHubDeviceTelemetryEventData class. -
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()Creates an instance of IotHubDeviceTelemetryEventData class.
-
-
Method Details
-
setBody
Set the body property: The content of the message from the device.- Overrides:
setBodyin 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:
setPropertiesin 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:
setSystemPropertiesin classDeviceTelemetryEventProperties- Parameters:
systemProperties- the systemProperties value to set.- Returns:
- the DeviceTelemetryEventProperties object itself.
-