你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

EventHubConsumerGroup.DefinitionStages.WithEventHub Interface

public static interface EventHubConsumerGroup.DefinitionStages.WithEventHub

The stage of the consumer group definition allowing to specify the event hub to be associated with it.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withExistingEventHub(EventHub eventHub)

Specifies the event hub for which consumer group needs to be created.

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

Specifies the event hub for which consumer group needs to be created.

abstract WithCreate withExistingEventHubId(String eventHubId)

Specifies the event hub for which consumer group needs to be created.

Method Details

withExistingEventHub

public abstract EventHubConsumerGroup.DefinitionStages.WithCreate withExistingEventHub(EventHub eventHub)

Specifies the event hub for which consumer group needs to be created.

Parameters:

eventHub - event hub

Returns:

next stage of the consumer group definition

withExistingEventHub

public abstract EventHubConsumerGroup.DefinitionStages.WithCreate withExistingEventHub(String resourceGroupName, String namespaceName, String eventHubName)

Specifies the event hub for which consumer group needs to be created.

Parameters:

resourceGroupName - event hub namespace resource group name
namespaceName - event hub namespace name
eventHubName - event hub name

Returns:

next stage of the consumer group definition

withExistingEventHubId

public abstract EventHubConsumerGroup.DefinitionStages.WithCreate withExistingEventHubId(String eventHubId)

Specifies the event hub for which consumer group needs to be created.

Parameters:

eventHubId - ARM resource id of event hub

Returns:

next stage of the consumer group definition

Applies to