Class EventGridMqttClientEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<EventGridMqttClientEventData>
Direct Known Subclasses:
EventGridMqttClientCreatedOrUpdatedEventData, EventGridMqttClientDeletedEventData, EventGridMqttClientSessionConnectedEventData, EventGridMqttClientSessionDisconnectedEventData

public class EventGridMqttClientEventData extends Object implements com.azure.json.JsonSerializable<EventGridMqttClientEventData>
Schema of the Data property of an EventGridEvent for MQTT Client state changes.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    EventGridMqttClientEventData(String clientAuthenticationName, String clientName, String namespaceName)
    Creates an instance of EventGridMqttClientEventData class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of EventGridMqttClientEventData from the JsonReader.
    Get the clientAuthenticationName property: Unique identifier for the MQTT client that the client presents to the service for authentication.
    Get the clientName property: Name of the client resource in the Event Grid namespace.
    Get the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • EventGridMqttClientEventData

      protected EventGridMqttClientEventData(String clientAuthenticationName, String clientName, String namespaceName)
      Creates an instance of EventGridMqttClientEventData class.
      Parameters:
      clientAuthenticationName - the clientAuthenticationName value to set.
      clientName - the clientName value to set.
      namespaceName - the namespaceName value to set.
  • Method Details

    • getClientAuthenticationName

      public String getClientAuthenticationName()
      Get 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.
      Returns:
      the clientAuthenticationName value.
    • getClientName

      public String getClientName()
      Get the clientName property: Name of the client resource in the Event Grid namespace.
      Returns:
      the clientName value.
    • getNamespaceName

      public String getNamespaceName()
      Get the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.
      Returns:
      the namespaceName 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>
      Throws:
      IOException
    • fromJson

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