Class ServiceBusClientBuilder.ServiceBusRuleManagerBuilder
java.lang.Object
com.azure.messaging.servicebus.ServiceBusClientBuilder.ServiceBusRuleManagerBuilder
- Enclosing class:
ServiceBusClientBuilder
Builder for creating
ServiceBusRuleManagerAsyncClient to manage Service Bus subscription rules.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates an asynchronousServiceBusRuleManagerAsyncClientfor managing rules of the specific subscription.Creates a synchronousServiceBusRuleManagerClientfor managing rules of the specific subscription.subscriptionName(String subscriptionName) Sets the name of the subscription in the topic to manage its rules.Sets the name of the topic.
-
Method Details
-
topicName
Sets the name of the topic.subscriptionName(String)must also be set.- Parameters:
topicName- Name of the topic.- Returns:
- The modified
ServiceBusClientBuilder.ServiceBusRuleManagerBuilderobject. - See Also:
-
subscriptionName
public ServiceBusClientBuilder.ServiceBusRuleManagerBuilder subscriptionName(String subscriptionName) Sets the name of the subscription in the topic to manage its rules.topicName(String)must also be set.- Parameters:
subscriptionName- Name of the subscription.- Returns:
- The modified
ServiceBusClientBuilder.ServiceBusRuleManagerBuilderobject. - See Also:
-
buildAsyncClient
Creates an asynchronousServiceBusRuleManagerAsyncClientfor managing rules of the specific subscription.- Returns:
- A new
ServiceBusRuleManagerAsyncClientthat manages rules for specific subscription. - Throws:
IllegalStateException- iftopicNameorsubscriptionNameis null or empty. It is also thrown if the Service BusconnectionStringcontains anEntityPaththat does not match one set intopicName.
-
buildClient
Creates a synchronousServiceBusRuleManagerClientfor managing rules of the specific subscription.- Returns:
- A new
ServiceBusRuleManagerClientthat manages rules for specific subscription. - Throws:
IllegalStateException- iftopicNameorsubscriptionNameis null or empty. It is also thrown if the Service BusconnectionStringcontains anEntityPaththat does not match one set intopicName.
-