ServiceBusClientBuilder.ServiceBusRuleManagerBuilder Class

  • java.lang.Object
    • com.azure.messaging.servicebus.ServiceBusClientBuilder.ServiceBusRuleManagerBuilder

public final class ServiceBusClientBuilder.ServiceBusRuleManagerBuilder

Builder for creating ServiceBusRuleManagerAsyncClient to manage Service Bus subscription rules.

Method Summary

Modifier and Type Method and Description
ServiceBusRuleManagerAsyncClient buildAsyncClient()

Creates an asynchronous ServiceBusRuleManagerAsyncClient for managing rules of the specific subscription.

ServiceBusRuleManagerClient buildClient()

Creates a synchronous ServiceBusRuleManagerClient for managing rules of the specific subscription.

ServiceBusRuleManagerBuilder subscriptionName(String subscriptionName)

Sets the name of the subscription in the topic to manage its rules.

ServiceBusRuleManagerBuilder topicName(String topicName)

Sets the name of the topic.

Methods inherited from java.lang.Object

Method Details

buildAsyncClient

public ServiceBusRuleManagerAsyncClient buildAsyncClient()

Creates an asynchronous ServiceBusRuleManagerAsyncClient for managing rules of the specific subscription.

Returns:

A new ServiceBusRuleManagerAsyncClient that manages rules for specific subscription.

buildClient

public ServiceBusRuleManagerClient buildClient()

Creates a synchronous ServiceBusRuleManagerClient for managing rules of the specific subscription.

Returns:

A new ServiceBusRuleManagerClient that manages rules for specific subscription.

subscriptionName

public ServiceBusClientBuilder.ServiceBusRuleManagerBuilder subscriptionName(String subscriptionName)

Sets the name of the subscription in the topic to manage its rules. topicName(String topicName) must also be set.

Parameters:

subscriptionName - Name of the subscription.

Returns:

The modified ServiceBusRuleManagerBuilder object.

topicName

public ServiceBusClientBuilder.ServiceBusRuleManagerBuilder topicName(String topicName)

Sets the name of the topic. subscriptionName(String subscriptionName) must also be set.

Parameters:

topicName - Name of the topic.

Returns:

The modified ServiceBusRuleManagerBuilder object.

Applies to