AppConfigurationKeyValueDeletedEventData Class

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

Implements

public final class AppConfigurationKeyValueDeletedEventData
implements JsonSerializable<AppConfigurationKeyValueDeletedEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event.

Constructor Summary

Constructor Description
AppConfigurationKeyValueDeletedEventData()

Creates an instance of AppConfigurationKeyValueDeletedEventData class.

Method Summary

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

Reads an instance of AppConfigurationKeyValueDeletedEventData from the JsonReader.

String getEtag()

Get the etag property: The etag representing the key-value that was deleted.

String getKey()

Get the key property: The key used to identify the key-value that was deleted.

String getLabel()

Get the label property: The label, if any, used to identify the key-value that was deleted.

String getSyncToken()

Get the syncToken property: The sync token representing the server state after the event.

AppConfigurationKeyValueDeletedEventData setEtag(String etag)

Set the etag property: The etag representing the key-value that was deleted.

AppConfigurationKeyValueDeletedEventData setKey(String key)

Set the key property: The key used to identify the key-value that was deleted.

AppConfigurationKeyValueDeletedEventData setLabel(String label)

Set the label property: The label, if any, used to identify the key-value that was deleted.

AppConfigurationKeyValueDeletedEventData setSyncToken(String syncToken)

Set the syncToken property: The sync token representing the server state after the event.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AppConfigurationKeyValueDeletedEventData

public AppConfigurationKeyValueDeletedEventData()

Creates an instance of AppConfigurationKeyValueDeletedEventData class.

Method Details

fromJson

public static AppConfigurationKeyValueDeletedEventData fromJson(JsonReader jsonReader)

Reads an instance of AppConfigurationKeyValueDeletedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getEtag

public String getEtag()

Get the etag property: The etag representing the key-value that was deleted.

Returns:

the etag value.

getKey

public String getKey()

Get the key property: The key used to identify the key-value that was deleted.

Returns:

the key value.

getLabel

public String getLabel()

Get the label property: The label, if any, used to identify the key-value that was deleted.

Returns:

the label value.

getSyncToken

public String getSyncToken()

Get the syncToken property: The sync token representing the server state after the event.

Returns:

the syncToken value.

setEtag

public AppConfigurationKeyValueDeletedEventData setEtag(String etag)

Set the etag property: The etag representing the key-value that was deleted.

Parameters:

etag - the etag value to set.

Returns:

the AppConfigurationKeyValueDeletedEventData object itself.

setKey

public AppConfigurationKeyValueDeletedEventData setKey(String key)

Set the key property: The key used to identify the key-value that was deleted.

Parameters:

key - the key value to set.

Returns:

the AppConfigurationKeyValueDeletedEventData object itself.

setLabel

public AppConfigurationKeyValueDeletedEventData setLabel(String label)

Set the label property: The label, if any, used to identify the key-value that was deleted.

Parameters:

label - the label value to set.

Returns:

the AppConfigurationKeyValueDeletedEventData object itself.

setSyncToken

public AppConfigurationKeyValueDeletedEventData setSyncToken(String syncToken)

Set the syncToken property: The sync token representing the server state after the event.

Parameters:

syncToken - the syncToken value to set.

Returns:

the AppConfigurationKeyValueDeletedEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest