Class AppConfigurationSnapshotEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AppConfigurationSnapshotEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<AppConfigurationSnapshotEventData>
Direct Known Subclasses:
AppConfigurationSnapshotCreatedEventData, AppConfigurationSnapshotModifiedEventData

public class AppConfigurationSnapshotEventData extends Object implements com.azure.json.JsonSerializable<AppConfigurationSnapshotEventData>
Schema of common properties of snapshot events.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates an instance of AppConfigurationSnapshotEventData class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AppConfigurationSnapshotEventData from the JsonReader.
    Get the etag property: The etag representing the new state of the snapshot.
    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.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

    • AppConfigurationSnapshotEventData

      protected AppConfigurationSnapshotEventData()
      Creates an instance of AppConfigurationSnapshotEventData class.
  • Method Details

    • getName

      public String getName()
      Get the name property: The name of the snapshot.
      Returns:
      the name value.
    • getEtag

      public String getEtag()
      Get the etag property: The etag representing the new state of the snapshot.
      Returns:
      the etag value.
    • getSyncToken

      public String getSyncToken()
      Get the syncToken property: The sync token representing the server state after the event.
      Returns:
      the syncToken value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AppConfigurationSnapshotEventData>
      Throws:
      IOException
    • fromJson

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