EventHubEndpoint Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. EventListenerEndpoint - com.
azure. resourcemanager. webpubsub. models. EventHubEndpoint
- com.
- com.
public final class EventHubEndpoint
extends EventListenerEndpoint
An Event Hub endpoint. The managed identity of Web PubSub service must be enabled, and the identity should have the "Azure Event Hubs Data sender" role to access Event Hub.
Constructor Summary
| Constructor | Description |
|---|---|
| EventHubEndpoint() |
Creates an instance of Event |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
eventHubName()
Get the event |
| String |
fullyQualifiedNamespace()
Get the fully |
| void |
validate()
Validates the instance. |
|
Event |
withEventHubName(String eventHubName)
Set the event |
|
Event |
withFullyQualifiedNamespace(String fullyQualifiedNamespace)
Set the fully |
Methods inherited from EventListenerEndpoint
Methods inherited from java.lang.Object
Constructor Details
EventHubEndpoint
public EventHubEndpoint()
Creates an instance of EventHubEndpoint class.
Method Details
eventHubName
public String eventHubName()
Get the eventHubName property: The name of the Event Hub.
Returns:
fullyQualifiedNamespace
public String fullyQualifiedNamespace()
Get the fullyQualifiedNamespace property: The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".
Returns:
validate
public void validate()
Validates the instance.
Overrides:
EventHubEndpoint.validate()withEventHubName
public EventHubEndpoint withEventHubName(String eventHubName)
Set the eventHubName property: The name of the Event Hub.
Parameters:
Returns:
withFullyQualifiedNamespace
public EventHubEndpoint withFullyQualifiedNamespace(String fullyQualifiedNamespace)
Set the fullyQualifiedNamespace property: The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".
Parameters:
Returns: