Class EventListener

java.lang.Object
com.azure.resourcemanager.webpubsub.models.EventListener

public final class EventListener extends Object
A setting defines which kinds of events should be sent to which endpoint.
  • Constructor Details

    • EventListener

      public EventListener()
      Creates an instance of EventListener class.
  • Method Details

    • filter

      public EventListenerFilter filter()
      Get the filter property: A base class for event filter which determines whether an event should be sent to an event listener.
      Returns:
      the filter value.
    • withFilter

      public EventListener withFilter(EventListenerFilter filter)
      Set the filter property: A base class for event filter which determines whether an event should be sent to an event listener.
      Parameters:
      filter - the filter value to set.
      Returns:
      the EventListener object itself.
    • endpoint

      public EventListenerEndpoint endpoint()
      Get the endpoint property: An endpoint specifying where Web PubSub should send events to.
      Returns:
      the endpoint value.
    • withEndpoint

      public EventListener withEndpoint(EventListenerEndpoint endpoint)
      Set the endpoint property: An endpoint specifying where Web PubSub should send events to.
      Parameters:
      endpoint - the endpoint value to set.
      Returns:
      the EventListener object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.