Class DeviceTelemetryEventProperties
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.DeviceTelemetryEventProperties
-
- Direct Known Subclasses:
IotHubDeviceTelemetryEventData
public class DeviceTelemetryEventProperties extends Object
Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry).
-
-
Constructor Summary
Constructors Constructor Description DeviceTelemetryEventProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectbody()Get the content of the message from the device.Map<String,String>properties()Get application properties are user-defined strings that can be added to the message.Map<String,String>systemProperties()Get system properties help identify contents and source of the messages.DeviceTelemetryEventPropertieswithBody(Object body)Set the content of the message from the device.DeviceTelemetryEventPropertieswithProperties(Map<String,String> properties)Set application properties are user-defined strings that can be added to the message.DeviceTelemetryEventPropertieswithSystemProperties(Map<String,String> systemProperties)Set system properties help identify contents and source of the messages.
-
-
-
Method Detail
-
body
public Object body()
Get the content of the message from the device.- Returns:
- the body value
-
withBody
public DeviceTelemetryEventProperties withBody(Object body)
Set the content of the message from the device.- Parameters:
body- the body value to set- Returns:
- the DeviceTelemetryEventProperties object itself.
-
properties
public Map<String,String> properties()
Get application properties are user-defined strings that can be added to the message. These fields are optional.- Returns:
- the properties value
-
withProperties
public DeviceTelemetryEventProperties withProperties(Map<String,String> properties)
Set 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.
-
systemProperties
public Map<String,String> systemProperties()
Get system properties help identify contents and source of the messages.- Returns:
- the systemProperties value
-
withSystemProperties
public DeviceTelemetryEventProperties withSystemProperties(Map<String,String> systemProperties)
Set system properties help identify contents and source of the messages.- Parameters:
systemProperties- the systemProperties value to set- Returns:
- the DeviceTelemetryEventProperties object itself.
-
-