Class KeyVaultCertificateNearExpiryEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.KeyVaultCertificateNearExpiryEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultCertificateNearExpiryEventData>
public final class KeyVaultCertificateNearExpiryEventData
extends Object
implements com.azure.json.JsonSerializable<KeyVaultCertificateNearExpiryEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultCertificateNearExpiryEventData from the JsonReader.doublegetExp()Get the exp property: The expiration date of the object that triggered this event.getId()Get the id property: The id of the object that triggered this event.doublegetNbf()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.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
-
getId
Get the id property: The id of the object that triggered this event.- Returns:
- the id value.
-
getVaultName
Get the vaultName property: Key vault name of the object that triggered this event.- Returns:
- the vaultName value.
-
getObjectType
Get the objectType property: The type of the object that triggered this event.- Returns:
- the objectType value.
-
getObjectName
Get the objectName property: The name of the object that triggered this event.- Returns:
- the objectName value.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultCertificateNearExpiryEventData>- Throws:
IOException
-
fromJson
public static KeyVaultCertificateNearExpiryEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KeyVaultCertificateNearExpiryEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyVaultCertificateNearExpiryEventData 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 KeyVaultCertificateNearExpiryEventData.
-