Class EventGridMqttClientSessionDisconnectedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientSessionDisconnectedEventData

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

    • EventGridMqttClientSessionDisconnectedEventData

      public EventGridMqttClientSessionDisconnectedEventData()
      Creates an instance of EventGridMqttClientSessionDisconnectedEventData class.
  • 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.
    • setClientSessionName

      public EventGridMqttClientSessionDisconnectedEventData setClientSessionName(String clientSessionName)
      Set 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.
      Parameters:
      clientSessionName - the clientSessionName value to set.
      Returns:
      the EventGridMqttClientSessionDisconnectedEventData object itself.
    • 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.
    • setSequenceNumber

      public EventGridMqttClientSessionDisconnectedEventData setSequenceNumber(Long sequenceNumber)
      Set 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.
      Parameters:
      sequenceNumber - the sequenceNumber value to set.
      Returns:
      the EventGridMqttClientSessionDisconnectedEventData object itself.
    • 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.
    • setDisconnectionReason

      Set 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.
      Parameters:
      disconnectionReason - the disconnectionReason value to set.
      Returns:
      the EventGridMqttClientSessionDisconnectedEventData object itself.
    • setClientAuthenticationName

      public EventGridMqttClientSessionDisconnectedEventData setClientAuthenticationName(String clientAuthenticationName)
      Set the clientAuthenticationName property: Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.
      Overrides:
      setClientAuthenticationName in class EventGridMqttClientEventData
      Parameters:
      clientAuthenticationName - the clientAuthenticationName value to set.
      Returns:
      the EventGridMqttClientEventData object itself.
    • setClientName

      public EventGridMqttClientSessionDisconnectedEventData setClientName(String clientName)
      Set the clientName property: Name of the client resource in the Event Grid namespace.
      Overrides:
      setClientName in class EventGridMqttClientEventData
      Parameters:
      clientName - the clientName value to set.
      Returns:
      the EventGridMqttClientEventData object itself.
    • setNamespaceName

      public EventGridMqttClientSessionDisconnectedEventData setNamespaceName(String namespaceName)
      Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.
      Overrides:
      setNamespaceName in class EventGridMqttClientEventData
      Parameters:
      namespaceName - the namespaceName value to set.
      Returns:
      the EventGridMqttClientEventData object itself.