SubscriptionValidationEventData Class

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

Implements

public final class SubscriptionValidationEventData
implements JsonSerializable<SubscriptionValidationEventData>

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

Constructor Summary

Constructor Description
SubscriptionValidationEventData()

Creates an instance of SubscriptionValidationEventData class.

Method Summary

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

Reads an instance of SubscriptionValidationEventData from the JsonReader.

String getValidationCode()

Get the validationCode property: The validation code sent by Azure Event Grid to validate an event subscription.

String getValidationUrl()

Get the validationUrl property: The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview).

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SubscriptionValidationEventData

public SubscriptionValidationEventData()

Creates an instance of SubscriptionValidationEventData class.

Method Details

fromJson

public static SubscriptionValidationEventData fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionValidationEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getValidationCode

public String getValidationCode()

Get the validationCode property: The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).

Returns:

the validationCode value.

getValidationUrl

public String getValidationUrl()

Get the validationUrl property: The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).

Returns:

the validationUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest