Class 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 Detail

      • DeviceTelemetryEventProperties

        public DeviceTelemetryEventProperties()
    • 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.