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 Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventGridMqttClientCreatedOrUpdatedEventData from the JsonReader.Get the attributes property: The key-value attributes that are assigned to the client resource.Get the createdOn property: Time the client resource is created based on the provider's UTC time.getState()Get the state property: Configured state of the client.Get the updatedOn property: Time the client resource is last updated based on the provider's UTC time.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
getClientAuthenticationName, getClientName, getNamespaceNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getState
Get the state property: Configured state of the client. The value could be Enabled or Disabled.- Returns:
- the state value.
-
getCreatedOn
Get the createdOn property: Time the client resource is created based on the provider's UTC time.- Returns:
- the createdOn value.
-
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
Get the attributes property: The key-value attributes that are assigned to the client resource.- Returns:
- the attributes value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EventGridMqttClientEventData>- Overrides:
toJsonin classEventGridMqttClientEventData- 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.
-