Interface EventHubAuthorizationRule.DefinitionStages.WithEventHub
- All Known Subinterfaces:
EventHubAuthorizationRule.Definition
,EventHubAuthorizationRule.DefinitionStages.Blank
- Enclosing interface:
- EventHubAuthorizationRule.DefinitionStages
public static interface EventHubAuthorizationRule.DefinitionStages.WithEventHub
Stage of the authorization rule definition allowing to specify the event for which rule needs to be created.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingEventHub
(EventHub eventHub) Specifies that authorization rule needs to be created for the given event hub.withExistingEventHub
(String resourceGroupName, String namespaceName, String eventHubName) Specifies that authorization rule needs to be created for the given event hub.withExistingEventHubId
(String eventHubResourceId) Specifies that authorization rule needs to be created for the given event hub.
-
Method Details
-
withExistingEventHubId
EventHubAuthorizationRule.DefinitionStages.WithAccessPolicy withExistingEventHubId(String eventHubResourceId) Specifies that authorization rule needs to be created for the given event hub.- Parameters:
eventHubResourceId
- the resource id of the event Hub- Returns:
- the next stage of the definition
-
withExistingEventHub
EventHubAuthorizationRule.DefinitionStages.WithAccessPolicy withExistingEventHub(String resourceGroupName, String namespaceName, String eventHubName) Specifies that authorization rule needs to be created for the given event hub.- Parameters:
resourceGroupName
- event hub namespace resource group namenamespaceName
- event hub parent namespace nameeventHubName
- event hub name- Returns:
- the next stage of the definition
-
withExistingEventHub
Specifies that authorization rule needs to be created for the given event hub.- Parameters:
eventHub
- the event hub- Returns:
- the next stage of the definition
-