Class EventListener
java.lang.Object
com.azure.resourcemanager.webpubsub.models.EventListener
A setting defines which kinds of events should be sent to which endpoint.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendpoint()
Get the endpoint property: An endpoint specifying where Web PubSub should send events to.filter()
Get the filter property: A base class for event filter which determines whether an event should be sent to an event listener.void
validate()
Validates the instance.withEndpoint
(EventListenerEndpoint endpoint) Set the endpoint property: An endpoint specifying where Web PubSub should send events to.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.
-
Constructor Details
-
EventListener
public EventListener()Creates an instance of EventListener class.
-
-
Method Details
-
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
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
Get the endpoint property: An endpoint specifying where Web PubSub should send events to.- Returns:
- the endpoint value.
-
withEndpoint
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.
-