Class EventHubEndpoint
java.lang.Object
com.azure.resourcemanager.webpubsub.models.EventListenerEndpoint
com.azure.resourcemanager.webpubsub.models.EventHubEndpoint
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
-
Method Summary
Modifier and TypeMethodDescriptionGet the eventHubName property: The name of the Event Hub.Get the fullyQualifiedNamespace property: The fully qualified namespace name of the Event Hub resource.void
validate()
Validates the instance.withEventHubName
(String eventHubName) Set the eventHubName property: The name of the Event Hub.withFullyQualifiedNamespace
(String fullyQualifiedNamespace) Set the fullyQualifiedNamespace property: The fully qualified namespace name of the Event Hub resource.
-
Constructor Details
-
EventHubEndpoint
public EventHubEndpoint()Creates an instance of EventHubEndpoint class.
-
-
Method Details
-
fullyQualifiedNamespace
Get the fullyQualifiedNamespace property: The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".- Returns:
- the fullyQualifiedNamespace value.
-
withFullyQualifiedNamespace
Set the fullyQualifiedNamespace property: The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".- Parameters:
fullyQualifiedNamespace
- the fullyQualifiedNamespace value to set.- Returns:
- the EventHubEndpoint object itself.
-
eventHubName
Get the eventHubName property: The name of the Event Hub.- Returns:
- the eventHubName value.
-
withEventHubName
Set the eventHubName property: The name of the Event Hub.- Parameters:
eventHubName
- the eventHubName value to set.- Returns:
- the EventHubEndpoint object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEventListenerEndpoint
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-