KeyVaultSecretExpiredEventData Class

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

Implements

public final class KeyVaultSecretExpiredEventData
implements JsonSerializable<KeyVaultSecretExpiredEventData>

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

Constructor Summary

Constructor Description
KeyVaultSecretExpiredEventData()

Creates an instance of KeyVaultSecretExpiredEventData class.

Method Summary

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

Reads an instance of KeyVaultSecretExpiredEventData from the JsonReader.

Float 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.

Float 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.

KeyVaultSecretExpiredEventData setExp(Float exp)

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

KeyVaultSecretExpiredEventData setId(String id)

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

KeyVaultSecretExpiredEventData setNbf(Float nbf)

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

KeyVaultSecretExpiredEventData setObjectName(String objectName)

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

KeyVaultSecretExpiredEventData setObjectType(String objectType)

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

KeyVaultSecretExpiredEventData setVaultName(String vaultName)

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

KeyVaultSecretExpiredEventData setVersion(String version)

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

KeyVaultSecretExpiredEventData

public KeyVaultSecretExpiredEventData()

Creates an instance of KeyVaultSecretExpiredEventData class.

Method Details

fromJson

public static KeyVaultSecretExpiredEventData fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultSecretExpiredEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultSecretExpiredEventData 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 KeyVaultSecretExpiredEventData.

getExp

public Float 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 Float 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.

setExp

public KeyVaultSecretExpiredEventData setExp(Float exp)

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

Parameters:

exp - the exp value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

setId

public KeyVaultSecretExpiredEventData setId(String id)

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

Parameters:

id - the id value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

setNbf

public KeyVaultSecretExpiredEventData setNbf(Float nbf)

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

Parameters:

nbf - the nbf value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

setObjectName

public KeyVaultSecretExpiredEventData setObjectName(String objectName)

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

Parameters:

objectName - the objectName value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

setObjectType

public KeyVaultSecretExpiredEventData setObjectType(String objectType)

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

Parameters:

objectType - the objectType value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

setVaultName

public KeyVaultSecretExpiredEventData setVaultName(String vaultName)

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

Parameters:

vaultName - the vaultName value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

setVersion

public KeyVaultSecretExpiredEventData setVersion(String version)

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

Parameters:

version - the version value to set.

Returns:

the KeyVaultSecretExpiredEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest