Class EventGridMqttClientSessionDisconnectedEventData

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

public final class EventGridMqttClientSessionDisconnectedEventData extends EventGridMqttClientEventData
Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.
  • Method Details

    • getClientSessionName

      public String getClientSessionName()
      Get the clientSessionName property: Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.
      Returns:
      the clientSessionName value.
    • getSequenceNumber

      public long getSequenceNumber()
      Get the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event.
      Returns:
      the sequenceNumber value.
    • getDisconnectionReason

      public EventGridMqttClientDisconnectionReason getDisconnectionReason()
      Get the disconnectionReason property: Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.
      Returns:
      the disconnectionReason value.
    • toJson

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

      public static EventGridMqttClientSessionDisconnectedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EventGridMqttClientSessionDisconnectedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EventGridMqttClientSessionDisconnectedEventData 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 EventGridMqttClientSessionDisconnectedEventData.