Class IotHubDeviceTelemetryEventData
- java.lang.Object
-
- com.azure.messaging.eventgrid.systemevents.DeviceTelemetryEventProperties
-
- com.azure.messaging.eventgrid.systemevents.IotHubDeviceTelemetryEventData
-
public final class IotHubDeviceTelemetryEventData extends DeviceTelemetryEventProperties
Event data for Microsoft.Devices.DeviceTelemetry event.
-
-
Constructor Summary
Constructors Constructor Description IotHubDeviceTelemetryEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IotHubDeviceTelemetryEventData
setBody(Object body)
Set the body property: The content of the message from the device.IotHubDeviceTelemetryEventData
setProperties(Map<String,String> properties)
Set the properties property: Application properties are user-defined strings that can be added to the message.IotHubDeviceTelemetryEventData
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
-
-
-
-
Method Detail
-
setBody
public IotHubDeviceTelemetryEventData setBody(Object body)
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
public IotHubDeviceTelemetryEventData setProperties(Map<String,String> properties)
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
public IotHubDeviceTelemetryEventData setSystemProperties(Map<String,String> systemProperties)
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.
-
-