Class SubscriptionValidationResponse
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.SubscriptionValidationResponse
-
public class SubscriptionValidationResponse extends Object
To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionValidationResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringvalidationResponse()Get the validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.SubscriptionValidationResponsewithValidationResponse(String validationResponse)Set the validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.
-
-
-
Method Detail
-
validationResponse
public String validationResponse()
Get the validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.- Returns:
- the validationResponse value
-
withValidationResponse
public SubscriptionValidationResponse withValidationResponse(String validationResponse)
Set the validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.- Parameters:
validationResponse- the validationResponse value to set- Returns:
- the SubscriptionValidationResponse object itself.
-
-