Class AppConfigurationSnapshotCreatedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AppConfigurationSnapshotEventData
com.azure.messaging.eventgrid.systemevents.AppConfigurationSnapshotCreatedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AppConfigurationSnapshotEventData>
public final class AppConfigurationSnapshotCreatedEventData
extends AppConfigurationSnapshotEventData
Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.SnapshotCreated event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AppConfigurationSnapshotCreatedEventData from the JsonReader.getEtag()Get the etag property: The etag representing the new state of the snapshot.getName()Get the name property: The name of the snapshot.Get the syncToken property: The sync token representing the server state after the event.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods 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
-
getSyncToken
Get the syncToken property: The sync token representing the server state after the event.- Overrides:
getSyncTokenin classAppConfigurationSnapshotEventData- Returns:
- the syncToken value.
-
getEtag
Get the etag property: The etag representing the new state of the snapshot.- Overrides:
getEtagin classAppConfigurationSnapshotEventData- Returns:
- the etag value.
-
getName
Get the name property: The name of the snapshot.- Overrides:
getNamein classAppConfigurationSnapshotEventData- Returns:
- the name value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AppConfigurationSnapshotEventData>- Overrides:
toJsonin classAppConfigurationSnapshotEventData- Throws:
IOException
-
fromJson
public static AppConfigurationSnapshotCreatedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AppConfigurationSnapshotCreatedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AppConfigurationSnapshotCreatedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AppConfigurationSnapshotCreatedEventData.
-