Class EventNameFilter
java.lang.Object
com.azure.resourcemanager.webpubsub.models.EventListenerFilter
com.azure.resourcemanager.webpubsub.models.EventNameFilter
Filter events by their name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the systemEvents property: Gets or sets a list of system events.Get the userEventPattern property: Gets or sets a matching pattern for event names.void
validate()
Validates the instance.withSystemEvents
(List<String> systemEvents) Set the systemEvents property: Gets or sets a list of system events.withUserEventPattern
(String userEventPattern) Set the userEventPattern property: Gets or sets a matching pattern for event names.
-
Constructor Details
-
EventNameFilter
public EventNameFilter()Creates an instance of EventNameFilter class.
-
-
Method Details
-
systemEvents
Get the systemEvents property: Gets or sets a list of system events. Supported events: "connected" and "disconnected". Blocking event "connect" is not supported because it requires a response.- Returns:
- the systemEvents value.
-
withSystemEvents
Set the systemEvents property: Gets or sets a list of system events. Supported events: "connected" and "disconnected". Blocking event "connect" is not supported because it requires a response.- Parameters:
systemEvents
- the systemEvents value to set.- Returns:
- the EventNameFilter object itself.
-
userEventPattern
Get the userEventPattern property: Gets or sets a matching pattern for event names. There are 3 kinds of patterns supported: 1. "*", it matches any event name 2. Combine multiple events with ",", for example "event1,event2", it matches events "event1" and "event2" 3. A single event name, for example, "event1", it matches "event1".- Returns:
- the userEventPattern value.
-
withUserEventPattern
Set the userEventPattern property: Gets or sets a matching pattern for event names. There are 3 kinds of patterns supported: 1. "*", it matches any event name 2. Combine multiple events with ",", for example "event1,event2", it matches events "event1" and "event2" 3. A single event name, for example, "event1", it matches "event1".- Parameters:
userEventPattern
- the userEventPattern value to set.- Returns:
- the EventNameFilter object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEventListenerFilter
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-