Share via


KeyVaultKeyExpiredEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.KeyVaultKeyExpiredEventData

Implements

public final class KeyVaultKeyExpiredEventData
implements JsonSerializable<KeyVaultKeyExpiredEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event.

Method Summary

Modifier and Type Method and Description
static KeyVaultKeyExpiredEventData fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultKeyExpiredEventData from the JsonReader.

double getExp()

Get the exp property: The expiration date of the object that triggered this event.

String getId()

Get the id property: The id of the object that triggered this event.

double getNbf()

Get the nbf property: Not before date of the object that triggered this event.

String getObjectName()

Get the objectName property: The name of the object that triggered this event.

String getObjectType()

Get the objectType property: The type of the object that triggered this event.

String getVaultName()

Get the vaultName property: Key vault name of the object that triggered this event.

String getVersion()

Get the version property: The version of the object that triggered this event.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static KeyVaultKeyExpiredEventData fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultKeyExpiredEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultKeyExpiredEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getExp

public double getExp()

Get the exp property: The expiration date of the object that triggered this event.

Returns:

the exp value.

getId

public String getId()

Get the id property: The id of the object that triggered this event.

Returns:

the id value.

getNbf

public double getNbf()

Get the nbf property: Not before date of the object that triggered this event.

Returns:

the nbf value.

getObjectName

public String getObjectName()

Get the objectName property: The name of the object that triggered this event.

Returns:

the objectName value.

getObjectType

public String getObjectType()

Get the objectType property: The type of the object that triggered this event.

Returns:

the objectType value.

getVaultName

public String getVaultName()

Get the vaultName property: Key vault name of the object that triggered this event.

Returns:

the vaultName value.

getVersion

public String getVersion()

Get the version property: The version of the object that triggered this event.

Returns:

the version value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to