SubscriptionDeletedEventData Class

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

Implements

public final class SubscriptionDeletedEventData
implements JsonSerializable<SubscriptionDeletedEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event.

Constructor Summary

Constructor Description
SubscriptionDeletedEventData()

Creates an instance of SubscriptionDeletedEventData class.

Method Summary

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

Reads an instance of SubscriptionDeletedEventData from the JsonReader.

String getEventSubscriptionId()

Get the eventSubscriptionId property: The Azure resource ID of the deleted event subscription.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SubscriptionDeletedEventData

public SubscriptionDeletedEventData()

Creates an instance of SubscriptionDeletedEventData class.

Method Details

fromJson

public static SubscriptionDeletedEventData fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionDeletedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getEventSubscriptionId

public String getEventSubscriptionId()

Get the eventSubscriptionId property: The Azure resource ID of the deleted event subscription.

Returns:

the eventSubscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest