EventHubAuthorizationRule.DefinitionStages.WithEventHub Interface

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 Type Method and Description
abstract WithAccessPolicy withExistingEventHub(EventHub eventHub)

Specifies that authorization rule needs to be created for the given event hub.

abstract WithAccessPolicy withExistingEventHub(String resourceGroupName, String namespaceName, String eventHubName)

Specifies that authorization rule needs to be created for the given event hub.

abstract WithAccessPolicy withExistingEventHubId(String eventHubResourceId)

Specifies that authorization rule needs to be created for the given event hub.

Method Details

withExistingEventHub

public abstract EventHubAuthorizationRule.DefinitionStages.WithAccessPolicy withExistingEventHub(EventHub eventHub)

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

withExistingEventHub

public abstract 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 name
namespaceName - event hub parent namespace name
eventHubName - event hub name

Returns:

the next stage of the definition

withExistingEventHubId

public abstract 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

Applies to