Class WebPubSubHubProperties
java.lang.Object
com.azure.resourcemanager.webpubsub.models.WebPubSubHubProperties
Properties of a hub.
-
Constructor Summary
ConstructorDescriptionCreates an instance of WebPubSubHubProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the anonymousConnectPolicy property: The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny".Get the eventHandlers property: Event handler of a hub.Get the eventListeners property: Event listener settings for forwarding your client events to listeners.void
validate()
Validates the instance.withAnonymousConnectPolicy
(String anonymousConnectPolicy) Set the anonymousConnectPolicy property: The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny".withEventHandlers
(List<EventHandler> eventHandlers) Set the eventHandlers property: Event handler of a hub.withEventListeners
(List<EventListener> eventListeners) Set the eventListeners property: Event listener settings for forwarding your client events to listeners.
-
Constructor Details
-
WebPubSubHubProperties
public WebPubSubHubProperties()Creates an instance of WebPubSubHubProperties class.
-
-
Method Details
-
eventHandlers
Get the eventHandlers property: Event handler of a hub.- Returns:
- the eventHandlers value.
-
withEventHandlers
Set the eventHandlers property: Event handler of a hub.- Parameters:
eventHandlers
- the eventHandlers value to set.- Returns:
- the WebPubSubHubProperties object itself.
-
eventListeners
Get the eventListeners property: Event listener settings for forwarding your client events to listeners. Event listener is transparent to Web PubSub clients, and it doesn't return any result to clients nor interrupt the lifetime of clients. One event can be sent to multiple listeners, as long as it matches the filters in those listeners. The order of the array elements doesn't matter. Maximum count of event listeners among all hubs is 10.- Returns:
- the eventListeners value.
-
withEventListeners
Set the eventListeners property: Event listener settings for forwarding your client events to listeners. Event listener is transparent to Web PubSub clients, and it doesn't return any result to clients nor interrupt the lifetime of clients. One event can be sent to multiple listeners, as long as it matches the filters in those listeners. The order of the array elements doesn't matter. Maximum count of event listeners among all hubs is 10.- Parameters:
eventListeners
- the eventListeners value to set.- Returns:
- the WebPubSubHubProperties object itself.
-
anonymousConnectPolicy
Get the anonymousConnectPolicy property: The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny".- Returns:
- the anonymousConnectPolicy value.
-
withAnonymousConnectPolicy
Set the anonymousConnectPolicy property: The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny".- Parameters:
anonymousConnectPolicy
- the anonymousConnectPolicy value to set.- Returns:
- the WebPubSubHubProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-