Class IotHubDeviceDisconnectedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceConnectionStateEventProperties
com.azure.messaging.eventgrid.systemevents.IotHubDeviceDisconnectedEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<DeviceConnectionStateEventProperties>

public final class IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEventProperties
Event data for Microsoft.Devices.DeviceDisconnected event.
  • Method Details

    • getModuleId

      public String getModuleId()
      Get the moduleId property: The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = `@` ; $ '.
      Overrides:
      getModuleId in class DeviceConnectionStateEventProperties
      Returns:
      the moduleId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DeviceConnectionStateEventProperties>
      Overrides:
      toJson in class DeviceConnectionStateEventProperties
      Throws:
      IOException
    • fromJson

      public static IotHubDeviceDisconnectedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of IotHubDeviceDisconnectedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of IotHubDeviceDisconnectedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the IotHubDeviceDisconnectedEventData.