Class 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 Detail

      • SubscriptionValidationResponse

        public SubscriptionValidationResponse()
    • 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.