Class KeyVaultSecretNewVersionCreatedEventData

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

public final class KeyVaultSecretNewVersionCreatedEventData extends Object implements com.azure.json.JsonSerializable<KeyVaultSecretNewVersionCreatedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of KeyVaultSecretNewVersionCreatedEventData from the JsonReader.
    double
    Get the exp property: The expiration date of the object that triggered this event.
    Get the id property: The id of the object that triggered this event.
    double
    Get the nbf property: Not before date of the object that triggered this event.
    Get the objectName property: The name of the object that triggered this event.
    Get the objectType property: The type of the object that triggered this event.
    Get the vaultName property: Key vault name of the object that triggered this event.
    Get the version property: The version of the object that triggered this 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
  • Method Details

    • getId

      public String getId()
      Get the id property: The id of the object that triggered this event.
      Returns:
      the id value.
    • getVaultName

      public String getVaultName()
      Get the vaultName property: Key vault name of the object that triggered this event.
      Returns:
      the vaultName value.
    • getObjectType

      public String getObjectType()
      Get the objectType property: The type of the object that triggered this event.
      Returns:
      the objectType value.
    • getObjectName

      public String getObjectName()
      Get the objectName property: The name of the object that triggered this event.
      Returns:
      the objectName value.
    • getVersion

      public String getVersion()
      Get the version property: The version of the object that triggered this event.
      Returns:
      the version value.
    • getNbf

      public double getNbf()
      Get the nbf property: Not before date of the object that triggered this event.
      Returns:
      the nbf value.
    • getExp

      public double getExp()
      Get the exp property: The expiration date of the object that triggered this event.
      Returns:
      the exp value.
    • toJson

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

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