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

      • getBody

        public Object getBody()
        Get the body property: The content of the message from the device.
        Returns:
        the body value.
      • setBody

        public DeviceTelemetryEventProperties setBody​(Object body)
        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

        public Map<String,​String> 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

        public DeviceTelemetryEventProperties 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.
        Parameters:
        properties - the properties value to set.
        Returns:
        the DeviceTelemetryEventProperties object itself.
      • getSystemProperties

        public Map<String,​String> getSystemProperties()
        Get the systemProperties property: System properties help identify contents and source of the messages.
        Returns:
        the systemProperties value.
      • setSystemProperties

        public DeviceTelemetryEventProperties setSystemProperties​(Map<String,​String> systemProperties)
        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.