Class EventGridMqttClientCreatedOrUpdatedEventData

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

public final class EventGridMqttClientCreatedOrUpdatedEventData extends EventGridMqttClientEventData
Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.
  • Method Details

    • getState

      public EventGridMqttClientState getState()
      Get the state property: Configured state of the client. The value could be Enabled or Disabled.
      Returns:
      the state value.
    • getCreatedOn

      public OffsetDateTime getCreatedOn()
      Get the createdOn property: Time the client resource is created based on the provider's UTC time.
      Returns:
      the createdOn value.
    • getUpdatedOn

      public OffsetDateTime getUpdatedOn()
      Get the updatedOn property: Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property.
      Returns:
      the updatedOn value.
    • getAttributes

      public Map<String,String> getAttributes()
      Get the attributes property: The key-value attributes that are assigned to the client resource.
      Returns:
      the attributes 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 EventGridMqttClientCreatedOrUpdatedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EventGridMqttClientCreatedOrUpdatedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EventGridMqttClientCreatedOrUpdatedEventData 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 EventGridMqttClientCreatedOrUpdatedEventData.