EventNameFilter Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. EventListenerFilter - com.
azure. resourcemanager. webpubsub. models. EventNameFilter
- com.
- com.
public final class EventNameFilter
extends EventListenerFilter
Filter events by their name.
Constructor Summary
| Constructor | Description |
|---|---|
| EventNameFilter() |
Creates an instance of Event |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event |
| List<String> |
systemEvents()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Event |
type()
Get the type property: The type property. |
| String |
userEventPattern()
Get the user |
| void |
validate()
Validates the instance. |
|
Event |
withSystemEvents(List<String> systemEvents)
Set the system |
|
Event |
withUserEventPattern(String userEventPattern)
Set the user |
Methods inherited from EventListenerFilter
Methods inherited from java.lang.Object
Constructor Details
EventNameFilter
public EventNameFilter()
Creates an instance of EventNameFilter class.
Method Details
fromJson
public static EventNameFilter fromJson(JsonReader jsonReader)
Reads an instance of EventNameFilter from the JsonReader.
Parameters:
Returns:
Throws:
systemEvents
public List<String> 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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
EventNameFilter.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public EventListenerFilterDiscriminator type()
Get the type property: The type property.
Overrides:
EventNameFilter.type()Returns:
userEventPattern
public String 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:
validate
public void validate()
Validates the instance.
Overrides:
EventNameFilter.validate()withSystemEvents
public EventNameFilter withSystemEvents(List<String> systemEvents)
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:
Returns:
withUserEventPattern
public EventNameFilter withUserEventPattern(String userEventPattern)
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:
Returns: