scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of ServiceBus service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ServiceBus service API instance.
+ */
+ public ServiceBusManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.servicebus.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ServiceBusManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Namespaces. */
+ public Namespaces namespaces() {
+ if (this.namespaces == null) {
+ this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
+ }
+ return namespaces;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of PrivateLinkResources. */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of DisasterRecoveryConfigs. */
+ public DisasterRecoveryConfigs disasterRecoveryConfigs() {
+ if (this.disasterRecoveryConfigs == null) {
+ this.disasterRecoveryConfigs =
+ new DisasterRecoveryConfigsImpl(clientObject.getDisasterRecoveryConfigs(), this);
+ }
+ return disasterRecoveryConfigs;
+ }
+
+ /** @return Resource collection API of MigrationConfigs. */
+ public MigrationConfigs migrationConfigs() {
+ if (this.migrationConfigs == null) {
+ this.migrationConfigs = new MigrationConfigsImpl(clientObject.getMigrationConfigs(), this);
+ }
+ return migrationConfigs;
+ }
+
+ /** @return Resource collection API of Queues. */
+ public Queues queues() {
+ if (this.queues == null) {
+ this.queues = new QueuesImpl(clientObject.getQueues(), this);
+ }
+ return queues;
+ }
+
+ /** @return Resource collection API of Topics. */
+ public Topics topics() {
+ if (this.topics == null) {
+ this.topics = new TopicsImpl(clientObject.getTopics(), this);
+ }
+ return topics;
+ }
+
+ /** @return Resource collection API of Rules. */
+ public Rules rules() {
+ if (this.rules == null) {
+ this.rules = new RulesImpl(clientObject.getRules(), this);
+ }
+ return rules;
+ }
+
+ /** @return Resource collection API of Subscriptions. */
+ public Subscriptions subscriptions() {
+ if (this.subscriptions == null) {
+ this.subscriptions = new SubscriptionsImpl(clientObject.getSubscriptions(), this);
+ }
+ return subscriptions;
+ }
+
+ /**
+ * @return Wrapped service client ServiceBusManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public ServiceBusManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/DisasterRecoveryConfigsClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/DisasterRecoveryConfigsClient.java
new file mode 100644
index 000000000000..ba0615def81f
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/DisasterRecoveryConfigsClient.java
@@ -0,0 +1,329 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.ArmDisasterRecoveryInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBAuthorizationRuleInner;
+import com.azure.resourcemanager.servicebus.generated.models.CheckNameAvailability;
+import com.azure.resourcemanager.servicebus.generated.models.FailoverProperties;
+
+/** An instance of this class provides access to all the operations defined in DisasterRecoveryConfigsClient. */
+public interface DisasterRecoveryConfigsClient {
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmDisasterRecoveryInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters);
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String alias,
+ ArmDisasterRecoveryInner parameters,
+ Context context);
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmDisasterRecoveryInner get(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void breakPairing(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response breakPairingWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void failOver(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response failOverWithResponse(
+ String resourceGroupName, String namespaceName, String alias, FailoverProperties parameters, Context context);
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName);
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context);
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName);
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context);
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters);
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/MigrationConfigsClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/MigrationConfigsClient.java
new file mode 100644
index 000000000000..a0f47a9e249e
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/MigrationConfigsClient.java
@@ -0,0 +1,247 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.MigrationConfigPropertiesInner;
+import com.azure.resourcemanager.servicebus.generated.models.MigrationConfigurationName;
+
+/** An instance of this class provides access to all the operations defined in MigrationConfigsClient. */
+public interface MigrationConfigsClient {
+ /**
+ * Gets all migrationConfigurations.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all migrationConfigurations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets all migrationConfigurations.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all migrationConfigurations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param parameters Parameters required to create Migration Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of single item in List or Get Migration Config operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MigrationConfigPropertiesInner> beginCreateAndStartMigration(
+ String resourceGroupName,
+ String namespaceName,
+ MigrationConfigurationName configName,
+ MigrationConfigPropertiesInner parameters);
+
+ /**
+ * Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param parameters Parameters required to create Migration Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of single item in List or Get Migration Config operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MigrationConfigPropertiesInner> beginCreateAndStartMigration(
+ String resourceGroupName,
+ String namespaceName,
+ MigrationConfigurationName configName,
+ MigrationConfigPropertiesInner parameters,
+ Context context);
+
+ /**
+ * Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param parameters Parameters required to create Migration Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Migration Config operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationConfigPropertiesInner createAndStartMigration(
+ String resourceGroupName,
+ String namespaceName,
+ MigrationConfigurationName configName,
+ MigrationConfigPropertiesInner parameters);
+
+ /**
+ * Creates Migration configuration and starts migration of entities from Standard to Premium namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param parameters Parameters required to create Migration Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Migration Config operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationConfigPropertiesInner createAndStartMigration(
+ String resourceGroupName,
+ String namespaceName,
+ MigrationConfigurationName configName,
+ MigrationConfigPropertiesInner parameters,
+ Context context);
+
+ /**
+ * Deletes a MigrationConfiguration.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
+
+ /**
+ * Deletes a MigrationConfiguration.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, MigrationConfigurationName configName, Context context);
+
+ /**
+ * Retrieves Migration Config.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Migration Config operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationConfigPropertiesInner get(
+ String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
+
+ /**
+ * Retrieves Migration Config.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Migration Config operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, MigrationConfigurationName configName, Context context);
+
+ /**
+ * This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any
+ * entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when
+ * entity migration is in-progress.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void completeMigration(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
+
+ /**
+ * This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any
+ * entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when
+ * entity migration is in-progress.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response completeMigrationWithResponse(
+ String resourceGroupName, String namespaceName, MigrationConfigurationName configName, Context context);
+
+ /**
+ * This operation reverts Migration.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void revert(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
+
+ /**
+ * This operation reverts Migration.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param configName The configuration name. Should always be "$default".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response revertWithResponse(
+ String resourceGroupName, String namespaceName, MigrationConfigurationName configName, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/NamespacesClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/NamespacesClient.java
new file mode 100644
index 000000000000..ba070a60797b
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/NamespacesClient.java
@@ -0,0 +1,561 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.NetworkRuleSetInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBAuthorizationRuleInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBNamespaceInner;
+import com.azure.resourcemanager.servicebus.generated.models.CheckNameAvailability;
+import com.azure.resourcemanager.servicebus.generated.models.RegenerateAccessKeyParameters;
+import com.azure.resourcemanager.servicebus.generated.models.SBNamespaceUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in NamespacesClient. */
+public interface NamespacesClient {
+ /**
+ * Gets all the available namespaces within the subscription, irrespective of the resource groups.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the available namespaces within the subscription, irrespective of the resource groups as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all the available namespaces within the subscription, irrespective of the resource groups.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the available namespaces within the subscription, irrespective of the resource groups as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets the available namespaces within a resource group.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the available namespaces within a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets the available namespaces within a resource group.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the available namespaces within a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. This
+ * operation is idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of description of a namespace resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SBNamespaceInner> beginCreateOrUpdate(
+ String resourceGroupName, String namespaceName, SBNamespaceInner parameters);
+
+ /**
+ * Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. This
+ * operation is idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of description of a namespace resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SBNamespaceInner> beginCreateOrUpdate(
+ String resourceGroupName, String namespaceName, SBNamespaceInner parameters, Context context);
+
+ /**
+ * Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. This
+ * operation is idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, SBNamespaceInner parameters);
+
+ /**
+ * Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. This
+ * operation is idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to create a namespace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBNamespaceInner createOrUpdate(
+ String resourceGroupName, String namespaceName, SBNamespaceInner parameters, Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Gets a description for the specified namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a description for the specified namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets a description for the specified namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a description for the specified namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to update a namespace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBNamespaceInner update(String resourceGroupName, String namespaceName, SBNamespaceUpdateParameters parameters);
+
+ /**
+ * Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters supplied to update a namespace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String namespaceName, SBNamespaceUpdateParameters parameters, Context context);
+
+ /**
+ * Create or update NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters The Namespace IpFilterRule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of NetworkRuleSet resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkRuleSetInner createOrUpdateNetworkRuleSet(
+ String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters);
+
+ /**
+ * Create or update NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters The Namespace IpFilterRule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of NetworkRuleSet resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateNetworkRuleSetWithResponse(
+ String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters, Context context);
+
+ /**
+ * Gets NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return networkRuleSet for a Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkRuleSetInner getNetworkRuleSet(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return networkRuleSet for a Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getNetworkRuleSetWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Gets list of NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of NetworkRuleSet for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listNetworkRuleSets(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets list of NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of NetworkRuleSet for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listNetworkRuleSets(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates an authorization rule for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access authorization rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner createOrUpdateAuthorizationRule(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ SBAuthorizationRuleInner parameters);
+
+ /**
+ * Creates or updates an authorization rule for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access authorization rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ SBAuthorizationRuleInner parameters,
+ Context context);
+
+ /**
+ * Deletes a namespace authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Deletes a namespace authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
+
+ /**
+ * Regenerates the primary or secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the authorization rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner regenerateKeys(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters);
+
+ /**
+ * Regenerates the primary or secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the authorization rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters,
+ Context context);
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailability parameters);
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ CheckNameAvailability parameters, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/OperationsClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/OperationsClient.java
new file mode 100644
index 000000000000..550b1b2f38a0
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available ServiceBus REST API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list ServiceBus operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available ServiceBus REST API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list ServiceBus operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..9b30bf57886e
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the available PrivateEndpointConnections within a namespace as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the available PrivateEndpointConnections within a namespace as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates PrivateEndpointConnections of service namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of the PrivateEndpointConnection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String namespaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters);
+
+ /**
+ * Creates or updates PrivateEndpointConnections of service namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return properties of the PrivateEndpointConnection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters,
+ Context context);
+
+ /**
+ * Deletes an existing Private Endpoint Connection.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes an existing Private Endpoint Connection.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String namespaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes an existing Private Endpoint Connection.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes an existing Private Endpoint Connection.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets a description for the specified Private Endpoint Connection.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a description for the specified Private Endpoint Connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Gets a description for the specified Private Endpoint Connection.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a description for the specified Private Endpoint Connection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String privateEndpointConnectionName, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/PrivateLinkResourcesClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..1396e47ab5c0
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.PrivateLinkResourcesListResultInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets lists of resources that supports Privatelinks.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return lists of resources that supports Privatelinks.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourcesListResultInner get(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets lists of resources that supports Privatelinks.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return lists of resources that supports Privatelinks along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/QueuesClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/QueuesClient.java
new file mode 100644
index 000000000000..68e08396a5f6
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/QueuesClient.java
@@ -0,0 +1,371 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBAuthorizationRuleInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBQueueInner;
+import com.azure.resourcemanager.servicebus.generated.models.RegenerateAccessKeyParameters;
+
+/** An instance of this class provides access to all the operations defined in QueuesClient. */
+public interface QueuesClient {
+ /**
+ * Gets all authorization rules for a queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all authorization rules for a queue as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String queueName);
+
+ /**
+ * Gets all authorization rules for a queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all authorization rules for a queue as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String queueName, Context context);
+
+ /**
+ * Creates an authorization rule for a queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access authorization rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner createOrUpdateAuthorizationRule(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ SBAuthorizationRuleInner parameters);
+
+ /**
+ * Creates an authorization rule for a queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access authorization rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ SBAuthorizationRuleInner parameters,
+ Context context);
+
+ /**
+ * Deletes a queue authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAuthorizationRule(
+ String resourceGroupName, String namespaceName, String queueName, String authorizationRuleName);
+
+ /**
+ * Deletes a queue authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Gets an authorization rule for a queue by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a queue by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String queueName, String authorizationRuleName);
+
+ /**
+ * Gets an authorization rule for a queue by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a queue by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Primary and secondary connection strings to the queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(
+ String resourceGroupName, String namespaceName, String queueName, String authorizationRuleName);
+
+ /**
+ * Primary and secondary connection strings to the queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Regenerates the primary or secondary connection strings to the queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the authorization rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner regenerateKeys(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters);
+
+ /**
+ * Regenerates the primary or secondary connection strings to the queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the authorization rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String queueName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters,
+ Context context);
+
+ /**
+ * Gets the queues within a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the queues within a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets the queues within a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the queues within a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context);
+
+ /**
+ * Creates or updates a Service Bus queue. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param parameters Parameters supplied to create or update a queue resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of queue Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBQueueInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String queueName, SBQueueInner parameters);
+
+ /**
+ * Creates or updates a Service Bus queue. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param parameters Parameters supplied to create or update a queue resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of queue Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String namespaceName, String queueName, SBQueueInner parameters, Context context);
+
+ /**
+ * Deletes a queue from the specified namespace in a resource group.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String queueName);
+
+ /**
+ * Deletes a queue from the specified namespace in a resource group.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String queueName, Context context);
+
+ /**
+ * Returns a description for the specified queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of queue Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBQueueInner get(String resourceGroupName, String namespaceName, String queueName);
+
+ /**
+ * Returns a description for the specified queue.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param queueName The queue name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of queue Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String queueName, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/RulesClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/RulesClient.java
new file mode 100644
index 000000000000..6e04a7ddcd03
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/RulesClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.RuleInner;
+
+/** An instance of this class provides access to all the operations defined in RulesClient. */
+public interface RulesClient {
+ /**
+ * List all the rules within given topic-subscription.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of the List rule operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscriptions(
+ String resourceGroupName, String namespaceName, String topicName, String subscriptionName);
+
+ /**
+ * List all the rules within given topic-subscription.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of the List rule operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscriptions(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ Integer skip,
+ Integer top,
+ Context context);
+
+ /**
+ * Creates a new rule and updates an existing rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param ruleName The rule name.
+ * @param parameters Parameters supplied to create a rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of Rule Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RuleInner createOrUpdate(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ String ruleName,
+ RuleInner parameters);
+
+ /**
+ * Creates a new rule and updates an existing rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param ruleName The rule name.
+ * @param parameters Parameters supplied to create a rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of Rule Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ String ruleName,
+ RuleInner parameters,
+ Context context);
+
+ /**
+ * Deletes an existing rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param ruleName The rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName, String namespaceName, String topicName, String subscriptionName, String ruleName);
+
+ /**
+ * Deletes an existing rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param ruleName The rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ String ruleName,
+ Context context);
+
+ /**
+ * Retrieves the description for the specified rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param ruleName The rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of Rule Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RuleInner get(
+ String resourceGroupName, String namespaceName, String topicName, String subscriptionName, String ruleName);
+
+ /**
+ * Retrieves the description for the specified rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param ruleName The rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of Rule Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ String ruleName,
+ Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/ServiceBusManagementClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/ServiceBusManagementClient.java
new file mode 100644
index 000000000000..13583bd732e5
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/ServiceBusManagementClient.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ServiceBusManagementClient class. */
+public interface ServiceBusManagementClient {
+ /**
+ * Gets Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the NamespacesClient object to access its operations.
+ *
+ * @return the NamespacesClient object.
+ */
+ NamespacesClient getNamespaces();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the DisasterRecoveryConfigsClient object to access its operations.
+ *
+ * @return the DisasterRecoveryConfigsClient object.
+ */
+ DisasterRecoveryConfigsClient getDisasterRecoveryConfigs();
+
+ /**
+ * Gets the MigrationConfigsClient object to access its operations.
+ *
+ * @return the MigrationConfigsClient object.
+ */
+ MigrationConfigsClient getMigrationConfigs();
+
+ /**
+ * Gets the QueuesClient object to access its operations.
+ *
+ * @return the QueuesClient object.
+ */
+ QueuesClient getQueues();
+
+ /**
+ * Gets the TopicsClient object to access its operations.
+ *
+ * @return the TopicsClient object.
+ */
+ TopicsClient getTopics();
+
+ /**
+ * Gets the RulesClient object to access its operations.
+ *
+ * @return the RulesClient object.
+ */
+ RulesClient getRules();
+
+ /**
+ * Gets the SubscriptionsClient object to access its operations.
+ *
+ * @return the SubscriptionsClient object.
+ */
+ SubscriptionsClient getSubscriptions();
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/SubscriptionsClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/SubscriptionsClient.java
new file mode 100644
index 000000000000..3560da60a9d9
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/SubscriptionsClient.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBSubscriptionInner;
+
+/** An instance of this class provides access to all the operations defined in SubscriptionsClient. */
+public interface SubscriptionsClient {
+ /**
+ * List all the subscriptions under a specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to the List Subscriptions operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByTopic(String resourceGroupName, String namespaceName, String topicName);
+
+ /**
+ * List all the subscriptions under a specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to the List Subscriptions operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByTopic(
+ String resourceGroupName, String namespaceName, String topicName, Integer skip, Integer top, Context context);
+
+ /**
+ * Creates a topic subscription.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param parameters Parameters supplied to create a subscription resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of subscription resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBSubscriptionInner createOrUpdate(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ SBSubscriptionInner parameters);
+
+ /**
+ * Creates a topic subscription.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param parameters Parameters supplied to create a subscription resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of subscription resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String subscriptionName,
+ SBSubscriptionInner parameters,
+ Context context);
+
+ /**
+ * Deletes a subscription from the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String topicName, String subscriptionName);
+
+ /**
+ * Deletes a subscription from the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String topicName, String subscriptionName, Context context);
+
+ /**
+ * Returns a subscription description for the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of subscription resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBSubscriptionInner get(String resourceGroupName, String namespaceName, String topicName, String subscriptionName);
+
+ /**
+ * Returns a subscription description for the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param subscriptionName The subscription name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of subscription resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String topicName, String subscriptionName, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/TopicsClient.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/TopicsClient.java
new file mode 100644
index 000000000000..cd881196a95a
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/TopicsClient.java
@@ -0,0 +1,371 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBAuthorizationRuleInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBTopicInner;
+import com.azure.resourcemanager.servicebus.generated.models.RegenerateAccessKeyParameters;
+
+/** An instance of this class provides access to all the operations defined in TopicsClient. */
+public interface TopicsClient {
+ /**
+ * Gets authorization rules for a topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return authorization rules for a topic as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String topicName);
+
+ /**
+ * Gets authorization rules for a topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return authorization rules for a topic as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String topicName, Context context);
+
+ /**
+ * Creates an authorization rule for the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access authorization rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner createOrUpdateAuthorizationRule(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ SBAuthorizationRuleInner parameters);
+
+ /**
+ * Creates an authorization rule for the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access authorization rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ SBAuthorizationRuleInner parameters,
+ Context context);
+
+ /**
+ * Returns the specified authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBAuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String topicName, String authorizationRuleName);
+
+ /**
+ * Returns the specified authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a namespace authorization rule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Deletes a topic authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAuthorizationRule(
+ String resourceGroupName, String namespaceName, String topicName, String authorizationRuleName);
+
+ /**
+ * Deletes a topic authorization rule.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Gets the primary and secondary connection strings for the topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the topic.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(
+ String resourceGroupName, String namespaceName, String topicName, String authorizationRuleName);
+
+ /**
+ * Gets the primary and secondary connection strings for the topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the topic along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Regenerates primary or secondary connection strings for the topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the authorization rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner regenerateKeys(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters);
+
+ /**
+ * Regenerates primary or secondary connection strings for the topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the authorization rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return namespace/ServiceBus Connection String along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String topicName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters,
+ Context context);
+
+ /**
+ * Gets all the topics in a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the topics in a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets all the topics in a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the topics in a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context);
+
+ /**
+ * Creates a topic in the specified namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param parameters Parameters supplied to create a topic resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of topic resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBTopicInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String topicName, SBTopicInner parameters);
+
+ /**
+ * Creates a topic in the specified namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param parameters Parameters supplied to create a topic resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of topic resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String namespaceName, String topicName, SBTopicInner parameters, Context context);
+
+ /**
+ * Deletes a topic from the specified namespace and resource group.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String namespaceName, String topicName);
+
+ /**
+ * Deletes a topic from the specified namespace and resource group.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String topicName, Context context);
+
+ /**
+ * Returns a description for the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of topic resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SBTopicInner get(String resourceGroupName, String namespaceName, String topicName);
+
+ /**
+ * Returns a description for the specified topic.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param topicName The topic name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of topic resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String topicName, Context context);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/AccessKeysInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/AccessKeysInner.java
new file mode 100644
index 000000000000..0a76f549b005
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/AccessKeysInner.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Namespace/ServiceBus Connection String. */
+@Immutable
+public final class AccessKeysInner {
+ /*
+ * Primary connection string of the created namespace authorization rule.
+ */
+ @JsonProperty(value = "primaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryConnectionString;
+
+ /*
+ * Secondary connection string of the created namespace authorization rule.
+ */
+ @JsonProperty(value = "secondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryConnectionString;
+
+ /*
+ * Primary connection string of the alias if GEO DR is enabled
+ */
+ @JsonProperty(value = "aliasPrimaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String aliasPrimaryConnectionString;
+
+ /*
+ * Secondary connection string of the alias if GEO DR is enabled
+ */
+ @JsonProperty(value = "aliasSecondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String aliasSecondaryConnectionString;
+
+ /*
+ * A base64-encoded 256-bit primary key for signing and validating the SAS
+ * token.
+ */
+ @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryKey;
+
+ /*
+ * A base64-encoded 256-bit primary key for signing and validating the SAS
+ * token.
+ */
+ @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryKey;
+
+ /*
+ * A string that describes the authorization rule.
+ */
+ @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY)
+ private String keyName;
+
+ /**
+ * Get the primaryConnectionString property: Primary connection string of the created namespace authorization rule.
+ *
+ * @return the primaryConnectionString value.
+ */
+ public String primaryConnectionString() {
+ return this.primaryConnectionString;
+ }
+
+ /**
+ * Get the secondaryConnectionString property: Secondary connection string of the created namespace authorization
+ * rule.
+ *
+ * @return the secondaryConnectionString value.
+ */
+ public String secondaryConnectionString() {
+ return this.secondaryConnectionString;
+ }
+
+ /**
+ * Get the aliasPrimaryConnectionString property: Primary connection string of the alias if GEO DR is enabled.
+ *
+ * @return the aliasPrimaryConnectionString value.
+ */
+ public String aliasPrimaryConnectionString() {
+ return this.aliasPrimaryConnectionString;
+ }
+
+ /**
+ * Get the aliasSecondaryConnectionString property: Secondary connection string of the alias if GEO DR is enabled.
+ *
+ * @return the aliasSecondaryConnectionString value.
+ */
+ public String aliasSecondaryConnectionString() {
+ return this.aliasSecondaryConnectionString;
+ }
+
+ /**
+ * Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
+ *
+ * @return the primaryKey value.
+ */
+ public String primaryKey() {
+ return this.primaryKey;
+ }
+
+ /**
+ * Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
+ *
+ * @return the secondaryKey value.
+ */
+ public String secondaryKey() {
+ return this.secondaryKey;
+ }
+
+ /**
+ * Get the keyName property: A string that describes the authorization rule.
+ *
+ * @return the keyName value.
+ */
+ public String keyName() {
+ return this.keyName;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/ArmDisasterRecoveryInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/ArmDisasterRecoveryInner.java
new file mode 100644
index 000000000000..84be52b71595
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/ArmDisasterRecoveryInner.java
@@ -0,0 +1,151 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.ProvisioningStateDR;
+import com.azure.resourcemanager.servicebus.generated.models.RoleDisasterRecovery;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Single item in List or Get Alias(Disaster Recovery configuration) operation. */
+@Fluent
+public final class ArmDisasterRecoveryInner extends ProxyResource {
+ /*
+ * Properties required to the Create Or Update Alias(Disaster Recovery
+ * configurations)
+ */
+ @JsonProperty(value = "properties")
+ private ArmDisasterRecoveryProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties required to the Create Or Update Alias(Disaster Recovery
+ * configurations).
+ *
+ * @return the innerProperties value.
+ */
+ private ArmDisasterRecoveryProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible
+ * values 'Accepted' or 'Succeeded' or 'Failed'.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateDR provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value.
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().pendingReplicationOperationsCount();
+ }
+
+ /**
+ * Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @return the partnerNamespace value.
+ */
+ public String partnerNamespace() {
+ return this.innerProperties() == null ? null : this.innerProperties().partnerNamespace();
+ }
+
+ /**
+ * Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @param partnerNamespace the partnerNamespace value to set.
+ * @return the ArmDisasterRecoveryInner object itself.
+ */
+ public ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArmDisasterRecoveryProperties();
+ }
+ this.innerProperties().withPartnerNamespace(partnerNamespace);
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.innerProperties() == null ? null : this.innerProperties().alternateName();
+ }
+
+ /**
+ * Set the alternateName property: Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the ArmDisasterRecoveryInner object itself.
+ */
+ public ArmDisasterRecoveryInner withAlternateName(String alternateName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArmDisasterRecoveryProperties();
+ }
+ this.innerProperties().withAlternateName(alternateName);
+ return this;
+ }
+
+ /**
+ * Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or
+ * 'Secondary'.
+ *
+ * @return the role value.
+ */
+ public RoleDisasterRecovery role() {
+ return this.innerProperties() == null ? null : this.innerProperties().role();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/ArmDisasterRecoveryProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/ArmDisasterRecoveryProperties.java
new file mode 100644
index 000000000000..f92daf1e7ecf
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/ArmDisasterRecoveryProperties.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.ProvisioningStateDR;
+import com.azure.resourcemanager.servicebus.generated.models.RoleDisasterRecovery;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties required to the Create Or Update Alias(Disaster Recovery configurations). */
+@Fluent
+public final class ArmDisasterRecoveryProperties {
+ /*
+ * Provisioning state of the Alias(Disaster Recovery configuration) -
+ * possible values 'Accepted' or 'Succeeded' or 'Failed'
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateDR provisioningState;
+
+ /*
+ * Number of entities pending to be replicated.
+ */
+ @JsonProperty(value = "pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long pendingReplicationOperationsCount;
+
+ /*
+ * ARM Id of the Primary/Secondary eventhub namespace name, which is part
+ * of GEO DR pairing
+ */
+ @JsonProperty(value = "partnerNamespace")
+ private String partnerNamespace;
+
+ /*
+ * Primary/Secondary eventhub namespace name, which is part of GEO DR
+ * pairing
+ */
+ @JsonProperty(value = "alternateName")
+ private String alternateName;
+
+ /*
+ * role of namespace in GEO DR - possible values 'Primary' or
+ * 'PrimaryNotReplicating' or 'Secondary'
+ */
+ @JsonProperty(value = "role", access = JsonProperty.Access.WRITE_ONLY)
+ private RoleDisasterRecovery role;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible
+ * values 'Accepted' or 'Succeeded' or 'Failed'.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateDR provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value.
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.pendingReplicationOperationsCount;
+ }
+
+ /**
+ * Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @return the partnerNamespace value.
+ */
+ public String partnerNamespace() {
+ return this.partnerNamespace;
+ }
+
+ /**
+ * Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @param partnerNamespace the partnerNamespace value to set.
+ * @return the ArmDisasterRecoveryProperties object itself.
+ */
+ public ArmDisasterRecoveryProperties withPartnerNamespace(String partnerNamespace) {
+ this.partnerNamespace = partnerNamespace;
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.alternateName;
+ }
+
+ /**
+ * Set the alternateName property: Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the ArmDisasterRecoveryProperties object itself.
+ */
+ public ArmDisasterRecoveryProperties withAlternateName(String alternateName) {
+ this.alternateName = alternateName;
+ return this;
+ }
+
+ /**
+ * Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or
+ * 'Secondary'.
+ *
+ * @return the role value.
+ */
+ public RoleDisasterRecovery role() {
+ return this.role;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/CheckNameAvailabilityResultInner.java
new file mode 100644
index 000000000000..5bb08f4144f1
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/CheckNameAvailabilityResultInner.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.UnavailableReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Description of a Check Name availability request properties. */
+@Fluent
+public final class CheckNameAvailabilityResultInner {
+ /*
+ * The detailed info regarding the reason associated with the namespace.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /*
+ * Value indicating namespace is availability, true if the namespace is
+ * available; otherwise, false.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The reason for unavailability of a namespace.
+ */
+ @JsonProperty(value = "reason")
+ private UnavailableReason reason;
+
+ /**
+ * Get the message property: The detailed info regarding the reason associated with the namespace.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the nameAvailable property: Value indicating namespace is availability, true if the namespace is available;
+ * otherwise, false.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Value indicating namespace is availability, true if the namespace is available;
+ * otherwise, false.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the CheckNameAvailabilityResultInner object itself.
+ */
+ public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: The reason for unavailability of a namespace.
+ *
+ * @return the reason value.
+ */
+ public UnavailableReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: The reason for unavailability of a namespace.
+ *
+ * @param reason the reason value to set.
+ * @return the CheckNameAvailabilityResultInner object itself.
+ */
+ public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Encryption.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Encryption.java
new file mode 100644
index 000000000000..d1b1ed5a4f87
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Encryption.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.KeySource;
+import com.azure.resourcemanager.servicebus.generated.models.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties to configure Encryption. */
+@Fluent
+public final class Encryption {
+ /*
+ * Properties of KeyVault
+ */
+ @JsonProperty(value = "keyVaultProperties")
+ private List keyVaultProperties;
+
+ /*
+ * Enumerates the possible value of keySource for Encryption
+ */
+ @JsonProperty(value = "keySource")
+ private KeySource keySource;
+
+ /*
+ * Enable Infrastructure Encryption (Double Encryption)
+ */
+ @JsonProperty(value = "requireInfrastructureEncryption")
+ private Boolean requireInfrastructureEncryption;
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.keyVaultProperties;
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withKeyVaultProperties(List keyVaultProperties) {
+ this.keyVaultProperties = keyVaultProperties;
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.keySource;
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withKeySource(KeySource keySource) {
+ this.keySource = keySource;
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.requireInfrastructureEncryption;
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ this.requireInfrastructureEncryption = requireInfrastructureEncryption;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyVaultProperties() != null) {
+ keyVaultProperties().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/FailoverPropertiesProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/FailoverPropertiesProperties.java
new file mode 100644
index 000000000000..421f807539b9
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/FailoverPropertiesProperties.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Safe failover is to indicate the service should wait for pending replication to finish before switching to the
+ * secondary.
+ */
+@Fluent
+public final class FailoverPropertiesProperties {
+ /*
+ * Safe failover is to indicate the service should wait for pending
+ * replication to finish before switching to the secondary.
+ */
+ @JsonProperty(value = "IsSafeFailover")
+ private Boolean isSafeFailover;
+
+ /**
+ * Get the isSafeFailover property: Safe failover is to indicate the service should wait for pending replication to
+ * finish before switching to the secondary.
+ *
+ * @return the isSafeFailover value.
+ */
+ public Boolean isSafeFailover() {
+ return this.isSafeFailover;
+ }
+
+ /**
+ * Set the isSafeFailover property: Safe failover is to indicate the service should wait for pending replication to
+ * finish before switching to the secondary.
+ *
+ * @param isSafeFailover the isSafeFailover value to set.
+ * @return the FailoverPropertiesProperties object itself.
+ */
+ public FailoverPropertiesProperties withIsSafeFailover(Boolean isSafeFailover) {
+ this.isSafeFailover = isSafeFailover;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Identity.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Identity.java
new file mode 100644
index 000000000000..d58086085e36
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Identity.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.servicebus.generated.models.UserAssignedIdentity;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Properties to configure User Assigned Identities for Bring your Own Keys. */
+@Fluent
+public class Identity {
+ /*
+ * ObjectId from the KeyVault
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /*
+ * TenantId from the KeyVault
+ */
+ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantId;
+
+ /*
+ * Type of managed service identity.
+ */
+ @JsonProperty(value = "type")
+ private ManagedServiceIdentityType type;
+
+ /*
+ * Properties for User Assigned Identities
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map userAssignedIdentities;
+
+ /**
+ * Get the principalId property: ObjectId from the KeyVault.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the tenantId property: TenantId from the KeyVault.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the type property: Type of managed service identity.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Type of managed service identity.
+ *
+ * @param type the type value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withType(ManagedServiceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (userAssignedIdentities() != null) {
+ userAssignedIdentities()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/MigrationConfigPropertiesInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/MigrationConfigPropertiesInner.java
new file mode 100644
index 000000000000..778a54458c00
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/MigrationConfigPropertiesInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Single item in List or Get Migration Config operation. */
+@Fluent
+public final class MigrationConfigPropertiesInner extends ProxyResource {
+ /*
+ * Properties required to the Create Migration Configuration
+ */
+ @JsonProperty(value = "properties")
+ private MigrationConfigPropertiesProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties required to the Create Migration Configuration.
+ *
+ * @return the innerProperties value.
+ */
+ private MigrationConfigPropertiesProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of Migration Configuration.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value.
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().pendingReplicationOperationsCount();
+ }
+
+ /**
+ * Get the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for
+ * migration.
+ *
+ * @return the targetNamespace value.
+ */
+ public String targetNamespace() {
+ return this.innerProperties() == null ? null : this.innerProperties().targetNamespace();
+ }
+
+ /**
+ * Set the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for
+ * migration.
+ *
+ * @param targetNamespace the targetNamespace value to set.
+ * @return the MigrationConfigPropertiesInner object itself.
+ */
+ public MigrationConfigPropertiesInner withTargetNamespace(String targetNamespace) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MigrationConfigPropertiesProperties();
+ }
+ this.innerProperties().withTargetNamespace(targetNamespace);
+ return this;
+ }
+
+ /**
+ * Get the postMigrationName property: Name to access Standard Namespace after migration.
+ *
+ * @return the postMigrationName value.
+ */
+ public String postMigrationName() {
+ return this.innerProperties() == null ? null : this.innerProperties().postMigrationName();
+ }
+
+ /**
+ * Set the postMigrationName property: Name to access Standard Namespace after migration.
+ *
+ * @param postMigrationName the postMigrationName value to set.
+ * @return the MigrationConfigPropertiesInner object itself.
+ */
+ public MigrationConfigPropertiesInner withPostMigrationName(String postMigrationName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MigrationConfigPropertiesProperties();
+ }
+ this.innerProperties().withPostMigrationName(postMigrationName);
+ return this;
+ }
+
+ /**
+ * Get the migrationState property: State in which Standard to Premium Migration is, possible values : Unknown,
+ * Reverting, Completing, Initiating, Syncing, Active.
+ *
+ * @return the migrationState value.
+ */
+ public String migrationState() {
+ return this.innerProperties() == null ? null : this.innerProperties().migrationState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/MigrationConfigPropertiesProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/MigrationConfigPropertiesProperties.java
new file mode 100644
index 000000000000..9b8cb103e0f1
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/MigrationConfigPropertiesProperties.java
@@ -0,0 +1,137 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties required to the Create Migration Configuration. */
+@Fluent
+public final class MigrationConfigPropertiesProperties {
+ /*
+ * Provisioning state of Migration Configuration
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * Number of entities pending to be replicated.
+ */
+ @JsonProperty(value = "pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long pendingReplicationOperationsCount;
+
+ /*
+ * Existing premium Namespace ARM Id name which has no entities, will be
+ * used for migration
+ */
+ @JsonProperty(value = "targetNamespace", required = true)
+ private String targetNamespace;
+
+ /*
+ * Name to access Standard Namespace after migration
+ */
+ @JsonProperty(value = "postMigrationName", required = true)
+ private String postMigrationName;
+
+ /*
+ * State in which Standard to Premium Migration is, possible values :
+ * Unknown, Reverting, Completing, Initiating, Syncing, Active
+ */
+ @JsonProperty(value = "migrationState", access = JsonProperty.Access.WRITE_ONLY)
+ private String migrationState;
+
+ /**
+ * Get the provisioningState property: Provisioning state of Migration Configuration.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value.
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.pendingReplicationOperationsCount;
+ }
+
+ /**
+ * Get the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for
+ * migration.
+ *
+ * @return the targetNamespace value.
+ */
+ public String targetNamespace() {
+ return this.targetNamespace;
+ }
+
+ /**
+ * Set the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for
+ * migration.
+ *
+ * @param targetNamespace the targetNamespace value to set.
+ * @return the MigrationConfigPropertiesProperties object itself.
+ */
+ public MigrationConfigPropertiesProperties withTargetNamespace(String targetNamespace) {
+ this.targetNamespace = targetNamespace;
+ return this;
+ }
+
+ /**
+ * Get the postMigrationName property: Name to access Standard Namespace after migration.
+ *
+ * @return the postMigrationName value.
+ */
+ public String postMigrationName() {
+ return this.postMigrationName;
+ }
+
+ /**
+ * Set the postMigrationName property: Name to access Standard Namespace after migration.
+ *
+ * @param postMigrationName the postMigrationName value to set.
+ * @return the MigrationConfigPropertiesProperties object itself.
+ */
+ public MigrationConfigPropertiesProperties withPostMigrationName(String postMigrationName) {
+ this.postMigrationName = postMigrationName;
+ return this;
+ }
+
+ /**
+ * Get the migrationState property: State in which Standard to Premium Migration is, possible values : Unknown,
+ * Reverting, Completing, Initiating, Syncing, Active.
+ *
+ * @return the migrationState value.
+ */
+ public String migrationState() {
+ return this.migrationState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (targetNamespace() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property targetNamespace in model MigrationConfigPropertiesProperties"));
+ }
+ if (postMigrationName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property postMigrationName in model MigrationConfigPropertiesProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(MigrationConfigPropertiesProperties.class);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/NetworkRuleSetInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/NetworkRuleSetInner.java
new file mode 100644
index 000000000000..3b663ccb91e8
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/NetworkRuleSetInner.java
@@ -0,0 +1,194 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.DefaultAction;
+import com.azure.resourcemanager.servicebus.generated.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.servicebus.generated.models.NWRuleSetVirtualNetworkRules;
+import com.azure.resourcemanager.servicebus.generated.models.PublicNetworkAccessFlag;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Description of NetworkRuleSet resource. */
+@Fluent
+public final class NetworkRuleSetInner extends ProxyResource {
+ /*
+ * NetworkRuleSet properties
+ */
+ @JsonProperty(value = "properties")
+ private NetworkRuleSetProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: NetworkRuleSet properties.
+ *
+ * @return the innerProperties value.
+ */
+ private NetworkRuleSetProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @return the trustedServiceAccessEnabled value.
+ */
+ public Boolean trustedServiceAccessEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().trustedServiceAccessEnabled();
+ }
+
+ /**
+ * Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @param trustedServiceAccessEnabled the trustedServiceAccessEnabled value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withTrustedServiceAccessEnabled(trustedServiceAccessEnabled);
+ return this;
+ }
+
+ /**
+ * Get the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @return the defaultAction value.
+ */
+ public DefaultAction defaultAction() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultAction();
+ }
+
+ /**
+ * Set the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @param defaultAction the defaultAction value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withDefaultAction(DefaultAction defaultAction) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withDefaultAction(defaultAction);
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkRules();
+ }
+
+ /**
+ * Set the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withVirtualNetworkRules(List virtualNetworkRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withVirtualNetworkRules(virtualNetworkRules);
+ return this;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipRules();
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withIpRules(List ipRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withIpRules(ipRules);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessFlag publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withPublicNetworkAccess(PublicNetworkAccessFlag publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/NetworkRuleSetProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/NetworkRuleSetProperties.java
new file mode 100644
index 000000000000..0588c5a7c4f0
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/NetworkRuleSetProperties.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.DefaultAction;
+import com.azure.resourcemanager.servicebus.generated.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.servicebus.generated.models.NWRuleSetVirtualNetworkRules;
+import com.azure.resourcemanager.servicebus.generated.models.PublicNetworkAccessFlag;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** NetworkRuleSet properties. */
+@Fluent
+public final class NetworkRuleSetProperties {
+ /*
+ * Value that indicates whether Trusted Service Access is Enabled or not.
+ */
+ @JsonProperty(value = "trustedServiceAccessEnabled")
+ private Boolean trustedServiceAccessEnabled;
+
+ /*
+ * Default Action for Network Rule Set
+ */
+ @JsonProperty(value = "defaultAction")
+ private DefaultAction defaultAction;
+
+ /*
+ * List VirtualNetwork Rules
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /*
+ * List of IpRules
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /*
+ * This determines if traffic is allowed over public network. By default it
+ * is enabled.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessFlag publicNetworkAccess;
+
+ /**
+ * Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @return the trustedServiceAccessEnabled value.
+ */
+ public Boolean trustedServiceAccessEnabled() {
+ return this.trustedServiceAccessEnabled;
+ }
+
+ /**
+ * Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @param trustedServiceAccessEnabled the trustedServiceAccessEnabled value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled) {
+ this.trustedServiceAccessEnabled = trustedServiceAccessEnabled;
+ return this;
+ }
+
+ /**
+ * Get the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @return the defaultAction value.
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @param defaultAction the defaultAction value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withVirtualNetworkRules(List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessFlag publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withPublicNetworkAccess(PublicNetworkAccessFlag publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (virtualNetworkRules() != null) {
+ virtualNetworkRules().forEach(e -> e.validate());
+ }
+ if (ipRules() != null) {
+ ipRules().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/OperationInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..820de660fd52
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/OperationInner.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A Service Bus REST API operation. */
+@Fluent
+public final class OperationInner {
+ /*
+ * Operation name: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Indicates whether the operation is a data action
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * Display of the operation
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Origin of the operation
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Properties of the operation
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: Display of the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Display of the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: Origin of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Origin of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Properties of the operation.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the operation.
+ *
+ * @param properties the properties value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withProperties(Object properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateEndpointConnectionInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..ddfc4a5894a3
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.ConnectionState;
+import com.azure.resourcemanager.servicebus.generated.models.EndPointProvisioningState;
+import com.azure.resourcemanager.servicebus.generated.models.PrivateEndpoint;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the PrivateEndpointConnection. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Properties of the PrivateEndpointConnection.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties of the PrivateEndpointConnection.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public ConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ ConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @return the provisioningState value.
+ */
+ public EndPointProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withProvisioningState(EndPointProvisioningState provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..2d0831c9374b
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.ConnectionState;
+import com.azure.resourcemanager.servicebus.generated.models.EndPointProvisioningState;
+import com.azure.resourcemanager.servicebus.generated.models.PrivateEndpoint;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the private endpoint connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The Private Endpoint resource for this Connection.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * Details about the state of the connection.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private ConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * Provisioning state of the Private Endpoint Connection.
+ */
+ @JsonProperty(value = "provisioningState")
+ private EndPointProvisioningState provisioningState;
+
+ /**
+ * Get the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public ConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ ConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @return the provisioningState value.
+ */
+ public EndPointProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withProvisioningState(EndPointProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateLinkResourceProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..c1e1489bf62c
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of PrivateLinkResource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The groupId property.
+ */
+ @JsonProperty(value = "groupId")
+ private String groupId;
+
+ /*
+ * Required Members
+ */
+ @JsonProperty(value = "requiredMembers")
+ private List requiredMembers;
+
+ /*
+ * Required Zone Names
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: The groupId property.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the groupId property: The groupId property.
+ *
+ * @param groupId the groupId value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the requiredMembers property: Required Members.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Set the requiredMembers property: Required Members.
+ *
+ * @param requiredMembers the requiredMembers value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredMembers(List requiredMembers) {
+ this.requiredMembers = requiredMembers;
+ return this;
+ }
+
+ /**
+ * Get the requiredZoneNames property: Required Zone Names.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: Required Zone Names.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateLinkResourcesListResultInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateLinkResourcesListResultInner.java
new file mode 100644
index 000000000000..d0c54df667e8
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/PrivateLinkResourcesListResultInner.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.PrivateLinkResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Result of the List private link resources operation. */
+@Fluent
+public final class PrivateLinkResourcesListResultInner {
+ /*
+ * A collection of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * A link for the next page of private link resources.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /**
+ * Get the value property: A collection of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: A collection of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourcesListResultInner object itself.
+ */
+ public PrivateLinkResourcesListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: A link for the next page of private link resources.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: A link for the next page of private link resources.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the PrivateLinkResourcesListResultInner object itself.
+ */
+ public PrivateLinkResourcesListResultInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/RuleInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/RuleInner.java
new file mode 100644
index 000000000000..501738815baf
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/RuleInner.java
@@ -0,0 +1,168 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.Action;
+import com.azure.resourcemanager.servicebus.generated.models.CorrelationFilter;
+import com.azure.resourcemanager.servicebus.generated.models.FilterType;
+import com.azure.resourcemanager.servicebus.generated.models.SqlFilter;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Description of Rule Resource. */
+@Fluent
+public final class RuleInner extends ProxyResource {
+ /*
+ * Properties of Rule resource
+ */
+ @JsonProperty(value = "properties")
+ private Ruleproperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties of Rule resource.
+ *
+ * @return the innerProperties value.
+ */
+ private Ruleproperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the action property: Represents the filter actions which are allowed for the transformation of a message that
+ * have been matched by a filter expression.
+ *
+ * @return the action value.
+ */
+ public Action action() {
+ return this.innerProperties() == null ? null : this.innerProperties().action();
+ }
+
+ /**
+ * Set the action property: Represents the filter actions which are allowed for the transformation of a message that
+ * have been matched by a filter expression.
+ *
+ * @param action the action value to set.
+ * @return the RuleInner object itself.
+ */
+ public RuleInner withAction(Action action) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new Ruleproperties();
+ }
+ this.innerProperties().withAction(action);
+ return this;
+ }
+
+ /**
+ * Get the filterType property: Filter type that is evaluated against a BrokeredMessage.
+ *
+ * @return the filterType value.
+ */
+ public FilterType filterType() {
+ return this.innerProperties() == null ? null : this.innerProperties().filterType();
+ }
+
+ /**
+ * Set the filterType property: Filter type that is evaluated against a BrokeredMessage.
+ *
+ * @param filterType the filterType value to set.
+ * @return the RuleInner object itself.
+ */
+ public RuleInner withFilterType(FilterType filterType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new Ruleproperties();
+ }
+ this.innerProperties().withFilterType(filterType);
+ return this;
+ }
+
+ /**
+ * Get the sqlFilter property: Properties of sqlFilter.
+ *
+ * @return the sqlFilter value.
+ */
+ public SqlFilter sqlFilter() {
+ return this.innerProperties() == null ? null : this.innerProperties().sqlFilter();
+ }
+
+ /**
+ * Set the sqlFilter property: Properties of sqlFilter.
+ *
+ * @param sqlFilter the sqlFilter value to set.
+ * @return the RuleInner object itself.
+ */
+ public RuleInner withSqlFilter(SqlFilter sqlFilter) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new Ruleproperties();
+ }
+ this.innerProperties().withSqlFilter(sqlFilter);
+ return this;
+ }
+
+ /**
+ * Get the correlationFilter property: Properties of correlationFilter.
+ *
+ * @return the correlationFilter value.
+ */
+ public CorrelationFilter correlationFilter() {
+ return this.innerProperties() == null ? null : this.innerProperties().correlationFilter();
+ }
+
+ /**
+ * Set the correlationFilter property: Properties of correlationFilter.
+ *
+ * @param correlationFilter the correlationFilter value to set.
+ * @return the RuleInner object itself.
+ */
+ public RuleInner withCorrelationFilter(CorrelationFilter correlationFilter) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new Ruleproperties();
+ }
+ this.innerProperties().withCorrelationFilter(correlationFilter);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Ruleproperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Ruleproperties.java
new file mode 100644
index 000000000000..444e1e83f3b2
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/Ruleproperties.java
@@ -0,0 +1,140 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.Action;
+import com.azure.resourcemanager.servicebus.generated.models.CorrelationFilter;
+import com.azure.resourcemanager.servicebus.generated.models.FilterType;
+import com.azure.resourcemanager.servicebus.generated.models.SqlFilter;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Description of Rule Resource. */
+@Fluent
+public final class Ruleproperties {
+ /*
+ * Represents the filter actions which are allowed for the transformation
+ * of a message that have been matched by a filter expression.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /*
+ * Filter type that is evaluated against a BrokeredMessage.
+ */
+ @JsonProperty(value = "filterType")
+ private FilterType filterType;
+
+ /*
+ * Properties of sqlFilter
+ */
+ @JsonProperty(value = "sqlFilter")
+ private SqlFilter sqlFilter;
+
+ /*
+ * Properties of correlationFilter
+ */
+ @JsonProperty(value = "correlationFilter")
+ private CorrelationFilter correlationFilter;
+
+ /**
+ * Get the action property: Represents the filter actions which are allowed for the transformation of a message that
+ * have been matched by a filter expression.
+ *
+ * @return the action value.
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action property: Represents the filter actions which are allowed for the transformation of a message that
+ * have been matched by a filter expression.
+ *
+ * @param action the action value to set.
+ * @return the Ruleproperties object itself.
+ */
+ public Ruleproperties withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get the filterType property: Filter type that is evaluated against a BrokeredMessage.
+ *
+ * @return the filterType value.
+ */
+ public FilterType filterType() {
+ return this.filterType;
+ }
+
+ /**
+ * Set the filterType property: Filter type that is evaluated against a BrokeredMessage.
+ *
+ * @param filterType the filterType value to set.
+ * @return the Ruleproperties object itself.
+ */
+ public Ruleproperties withFilterType(FilterType filterType) {
+ this.filterType = filterType;
+ return this;
+ }
+
+ /**
+ * Get the sqlFilter property: Properties of sqlFilter.
+ *
+ * @return the sqlFilter value.
+ */
+ public SqlFilter sqlFilter() {
+ return this.sqlFilter;
+ }
+
+ /**
+ * Set the sqlFilter property: Properties of sqlFilter.
+ *
+ * @param sqlFilter the sqlFilter value to set.
+ * @return the Ruleproperties object itself.
+ */
+ public Ruleproperties withSqlFilter(SqlFilter sqlFilter) {
+ this.sqlFilter = sqlFilter;
+ return this;
+ }
+
+ /**
+ * Get the correlationFilter property: Properties of correlationFilter.
+ *
+ * @return the correlationFilter value.
+ */
+ public CorrelationFilter correlationFilter() {
+ return this.correlationFilter;
+ }
+
+ /**
+ * Set the correlationFilter property: Properties of correlationFilter.
+ *
+ * @param correlationFilter the correlationFilter value to set.
+ * @return the Ruleproperties object itself.
+ */
+ public Ruleproperties withCorrelationFilter(CorrelationFilter correlationFilter) {
+ this.correlationFilter = correlationFilter;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (action() != null) {
+ action().validate();
+ }
+ if (sqlFilter() != null) {
+ sqlFilter().validate();
+ }
+ if (correlationFilter() != null) {
+ correlationFilter().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBAuthorizationRuleInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBAuthorizationRuleInner.java
new file mode 100644
index 000000000000..d8d0bc8b6568
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBAuthorizationRuleInner.java
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.AccessRights;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Description of a namespace authorization rule. */
+@Fluent
+public final class SBAuthorizationRuleInner extends ProxyResource {
+ /*
+ * AuthorizationRule properties.
+ */
+ @JsonProperty(value = "properties")
+ private SBAuthorizationRuleProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: AuthorizationRule properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SBAuthorizationRuleProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the rights property: The rights associated with the rule.
+ *
+ * @return the rights value.
+ */
+ public List rights() {
+ return this.innerProperties() == null ? null : this.innerProperties().rights();
+ }
+
+ /**
+ * Set the rights property: The rights associated with the rule.
+ *
+ * @param rights the rights value to set.
+ * @return the SBAuthorizationRuleInner object itself.
+ */
+ public SBAuthorizationRuleInner withRights(List rights) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBAuthorizationRuleProperties();
+ }
+ this.innerProperties().withRights(rights);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBAuthorizationRuleProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBAuthorizationRuleProperties.java
new file mode 100644
index 000000000000..830e9a6d2a5c
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBAuthorizationRuleProperties.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.servicebus.generated.models.AccessRights;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** AuthorizationRule properties. */
+@Fluent
+public final class SBAuthorizationRuleProperties {
+ /*
+ * The rights associated with the rule.
+ */
+ @JsonProperty(value = "rights", required = true)
+ private List rights;
+
+ /**
+ * Get the rights property: The rights associated with the rule.
+ *
+ * @return the rights value.
+ */
+ public List rights() {
+ return this.rights;
+ }
+
+ /**
+ * Set the rights property: The rights associated with the rule.
+ *
+ * @param rights the rights value to set.
+ * @return the SBAuthorizationRuleProperties object itself.
+ */
+ public SBAuthorizationRuleProperties withRights(List rights) {
+ this.rights = rights;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (rights() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property rights in model SBAuthorizationRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SBAuthorizationRuleProperties.class);
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceInner.java
new file mode 100644
index 000000000000..f781394fa5e7
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceInner.java
@@ -0,0 +1,406 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.KeySource;
+import com.azure.resourcemanager.servicebus.generated.models.KeyVaultProperties;
+import com.azure.resourcemanager.servicebus.generated.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.servicebus.generated.models.SBSku;
+import com.azure.resourcemanager.servicebus.generated.models.UserAssignedIdentity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Description of a namespace resource. */
+@Fluent
+public final class SBNamespaceInner extends Resource {
+ /*
+ * Properties of SKU
+ */
+ @JsonProperty(value = "sku")
+ private SBSku sku;
+
+ /*
+ * Properties of BYOK Identity description
+ */
+ @JsonProperty(value = "identity")
+ private Identity innerIdentity;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Properties of the namespace.
+ */
+ @JsonProperty(value = "properties")
+ private SBNamespaceProperties innerProperties;
+
+ /**
+ * Get the sku property: Properties of SKU.
+ *
+ * @return the sku value.
+ */
+ public SBSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Properties of SKU.
+ *
+ * @param sku the sku value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withSku(SBSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the innerIdentity property: Properties of BYOK Identity description.
+ *
+ * @return the innerIdentity value.
+ */
+ private Identity innerIdentity() {
+ return this.innerIdentity;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the namespace.
+ *
+ * @return the innerProperties value.
+ */
+ private SBNamespaceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SBNamespaceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SBNamespaceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the principalId property: ObjectId from the KeyVault.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().principalId();
+ }
+
+ /**
+ * Get the tenantId property: TenantId from the KeyVault.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().tenantId();
+ }
+
+ /**
+ * Get the type property: Type of managed service identity.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType typeIdentityType() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().type();
+ }
+
+ /**
+ * Set the type property: Type of managed service identity.
+ *
+ * @param type the type value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withTypeIdentityType(ManagedServiceIdentityType type) {
+ if (this.innerIdentity() == null) {
+ this.innerIdentity = new Identity();
+ }
+ this.innerIdentity().withType(type);
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().userAssignedIdentities();
+ }
+
+ /**
+ * Set the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withUserAssignedIdentities(Map userAssignedIdentities) {
+ if (this.innerIdentity() == null) {
+ this.innerIdentity = new Identity();
+ }
+ this.innerIdentity().withUserAssignedIdentities(userAssignedIdentities);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the namespace.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: Status of the namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the createdAt property: The time the namespace was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The time the namespace was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the serviceBusEndpoint property: Endpoint you can use to perform Service Bus operations.
+ *
+ * @return the serviceBusEndpoint value.
+ */
+ public String serviceBusEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceBusEndpoint();
+ }
+
+ /**
+ * Get the metricId property: Identifier for Azure Insights metrics.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricId();
+ }
+
+ /**
+ * Get the zoneRedundant property: Enabling this property creates a Premium Service Bus Namespace in regions
+ * supported availability zones.
+ *
+ * @return the zoneRedundant value.
+ */
+ public Boolean zoneRedundant() {
+ return this.innerProperties() == null ? null : this.innerProperties().zoneRedundant();
+ }
+
+ /**
+ * Set the zoneRedundant property: Enabling this property creates a Premium Service Bus Namespace in regions
+ * supported availability zones.
+ *
+ * @param zoneRedundant the zoneRedundant value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withZoneRedundant(Boolean zoneRedundant) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withZoneRedundant(zoneRedundant);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withPrivateEndpointConnections(
+ List privateEndpointConnections) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withPrivateEndpointConnections(privateEndpointConnections);
+ return this;
+ }
+
+ /**
+ * Get the disableLocalAuth property: This property disables SAS authentication for the Service Bus namespace.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.innerProperties() == null ? null : this.innerProperties().disableLocalAuth();
+ }
+
+ /**
+ * Set the disableLocalAuth property: This property disables SAS authentication for the Service Bus namespace.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withDisableLocalAuth(Boolean disableLocalAuth) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withDisableLocalAuth(disableLocalAuth);
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name for namespace.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.innerProperties() == null ? null : this.innerProperties().alternateName();
+ }
+
+ /**
+ * Set the alternateName property: Alternate name for namespace.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withAlternateName(String alternateName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withAlternateName(alternateName);
+ return this;
+ }
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultProperties();
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withKeyVaultProperties(List keyVaultProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withKeyVaultProperties(keyVaultProperties);
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.innerProperties() == null ? null : this.innerProperties().keySource();
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withKeySource(KeySource keySource) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withKeySource(keySource);
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().requireInfrastructureEncryption();
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the SBNamespaceInner object itself.
+ */
+ public SBNamespaceInner withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBNamespaceProperties();
+ }
+ this.innerProperties().withRequireInfrastructureEncryption(requireInfrastructureEncryption);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (innerIdentity() != null) {
+ innerIdentity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceProperties.java
new file mode 100644
index 000000000000..0987ec111b8f
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceProperties.java
@@ -0,0 +1,312 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.KeySource;
+import com.azure.resourcemanager.servicebus.generated.models.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Properties of the namespace. */
+@Fluent
+public final class SBNamespaceProperties {
+ /*
+ * Provisioning state of the namespace.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * Status of the namespace.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * The time the namespace was created
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The time the namespace was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Endpoint you can use to perform Service Bus operations.
+ */
+ @JsonProperty(value = "serviceBusEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceBusEndpoint;
+
+ /*
+ * Identifier for Azure Insights metrics
+ */
+ @JsonProperty(value = "metricId", access = JsonProperty.Access.WRITE_ONLY)
+ private String metricId;
+
+ /*
+ * Enabling this property creates a Premium Service Bus Namespace in
+ * regions supported availability zones.
+ */
+ @JsonProperty(value = "zoneRedundant")
+ private Boolean zoneRedundant;
+
+ /*
+ * Properties of BYOK Encryption description
+ */
+ @JsonProperty(value = "encryption")
+ private Encryption innerEncryption;
+
+ /*
+ * List of private endpoint connections.
+ */
+ @JsonProperty(value = "privateEndpointConnections")
+ private List privateEndpointConnections;
+
+ /*
+ * This property disables SAS authentication for the Service Bus namespace.
+ */
+ @JsonProperty(value = "disableLocalAuth")
+ private Boolean disableLocalAuth;
+
+ /*
+ * Alternate name for namespace
+ */
+ @JsonProperty(value = "alternateName")
+ private String alternateName;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the namespace.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: Status of the namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the createdAt property: The time the namespace was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The time the namespace was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the serviceBusEndpoint property: Endpoint you can use to perform Service Bus operations.
+ *
+ * @return the serviceBusEndpoint value.
+ */
+ public String serviceBusEndpoint() {
+ return this.serviceBusEndpoint;
+ }
+
+ /**
+ * Get the metricId property: Identifier for Azure Insights metrics.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.metricId;
+ }
+
+ /**
+ * Get the zoneRedundant property: Enabling this property creates a Premium Service Bus Namespace in regions
+ * supported availability zones.
+ *
+ * @return the zoneRedundant value.
+ */
+ public Boolean zoneRedundant() {
+ return this.zoneRedundant;
+ }
+
+ /**
+ * Set the zoneRedundant property: Enabling this property creates a Premium Service Bus Namespace in regions
+ * supported availability zones.
+ *
+ * @param zoneRedundant the zoneRedundant value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withZoneRedundant(Boolean zoneRedundant) {
+ this.zoneRedundant = zoneRedundant;
+ return this;
+ }
+
+ /**
+ * Get the innerEncryption property: Properties of BYOK Encryption description.
+ *
+ * @return the innerEncryption value.
+ */
+ private Encryption innerEncryption() {
+ return this.innerEncryption;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withPrivateEndpointConnections(
+ List privateEndpointConnections) {
+ this.privateEndpointConnections = privateEndpointConnections;
+ return this;
+ }
+
+ /**
+ * Get the disableLocalAuth property: This property disables SAS authentication for the Service Bus namespace.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.disableLocalAuth;
+ }
+
+ /**
+ * Set the disableLocalAuth property: This property disables SAS authentication for the Service Bus namespace.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withDisableLocalAuth(Boolean disableLocalAuth) {
+ this.disableLocalAuth = disableLocalAuth;
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name for namespace.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.alternateName;
+ }
+
+ /**
+ * Set the alternateName property: Alternate name for namespace.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withAlternateName(String alternateName) {
+ this.alternateName = alternateName;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().keyVaultProperties();
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withKeyVaultProperties(List keyVaultProperties) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withKeyVaultProperties(keyVaultProperties);
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().keySource();
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withKeySource(KeySource keySource) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withKeySource(keySource);
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().requireInfrastructureEncryption();
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the SBNamespaceProperties object itself.
+ */
+ public SBNamespaceProperties withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withRequireInfrastructureEncryption(requireInfrastructureEncryption);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerEncryption() != null) {
+ innerEncryption().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceUpdateProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceUpdateProperties.java
new file mode 100644
index 000000000000..c04544e42259
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBNamespaceUpdateProperties.java
@@ -0,0 +1,283 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.KeySource;
+import com.azure.resourcemanager.servicebus.generated.models.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Properties of the namespace. */
+@Fluent
+public final class SBNamespaceUpdateProperties {
+ /*
+ * Provisioning state of the namespace.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * Status of the namespace.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * The time the namespace was created
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The time the namespace was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Endpoint you can use to perform Service Bus operations.
+ */
+ @JsonProperty(value = "serviceBusEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceBusEndpoint;
+
+ /*
+ * Identifier for Azure Insights metrics
+ */
+ @JsonProperty(value = "metricId", access = JsonProperty.Access.WRITE_ONLY)
+ private String metricId;
+
+ /*
+ * Properties of BYOK Encryption description
+ */
+ @JsonProperty(value = "encryption")
+ private Encryption innerEncryption;
+
+ /*
+ * List of private endpoint connections.
+ */
+ @JsonProperty(value = "privateEndpointConnections")
+ private List privateEndpointConnections;
+
+ /*
+ * This property disables SAS authentication for the Service Bus namespace.
+ */
+ @JsonProperty(value = "disableLocalAuth")
+ private Boolean disableLocalAuth;
+
+ /*
+ * Alternate name for namespace
+ */
+ @JsonProperty(value = "alternateName")
+ private String alternateName;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the namespace.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: Status of the namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the createdAt property: The time the namespace was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The time the namespace was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the serviceBusEndpoint property: Endpoint you can use to perform Service Bus operations.
+ *
+ * @return the serviceBusEndpoint value.
+ */
+ public String serviceBusEndpoint() {
+ return this.serviceBusEndpoint;
+ }
+
+ /**
+ * Get the metricId property: Identifier for Azure Insights metrics.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.metricId;
+ }
+
+ /**
+ * Get the innerEncryption property: Properties of BYOK Encryption description.
+ *
+ * @return the innerEncryption value.
+ */
+ private Encryption innerEncryption() {
+ return this.innerEncryption;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the SBNamespaceUpdateProperties object itself.
+ */
+ public SBNamespaceUpdateProperties withPrivateEndpointConnections(
+ List privateEndpointConnections) {
+ this.privateEndpointConnections = privateEndpointConnections;
+ return this;
+ }
+
+ /**
+ * Get the disableLocalAuth property: This property disables SAS authentication for the Service Bus namespace.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.disableLocalAuth;
+ }
+
+ /**
+ * Set the disableLocalAuth property: This property disables SAS authentication for the Service Bus namespace.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the SBNamespaceUpdateProperties object itself.
+ */
+ public SBNamespaceUpdateProperties withDisableLocalAuth(Boolean disableLocalAuth) {
+ this.disableLocalAuth = disableLocalAuth;
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name for namespace.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.alternateName;
+ }
+
+ /**
+ * Set the alternateName property: Alternate name for namespace.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the SBNamespaceUpdateProperties object itself.
+ */
+ public SBNamespaceUpdateProperties withAlternateName(String alternateName) {
+ this.alternateName = alternateName;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().keyVaultProperties();
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the SBNamespaceUpdateProperties object itself.
+ */
+ public SBNamespaceUpdateProperties withKeyVaultProperties(List keyVaultProperties) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withKeyVaultProperties(keyVaultProperties);
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().keySource();
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the SBNamespaceUpdateProperties object itself.
+ */
+ public SBNamespaceUpdateProperties withKeySource(KeySource keySource) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withKeySource(keySource);
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().requireInfrastructureEncryption();
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the SBNamespaceUpdateProperties object itself.
+ */
+ public SBNamespaceUpdateProperties withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withRequireInfrastructureEncryption(requireInfrastructureEncryption);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerEncryption() != null) {
+ innerEncryption().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBQueueInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBQueueInner.java
new file mode 100644
index 000000000000..c2c297a14969
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBQueueInner.java
@@ -0,0 +1,523 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.EntityStatus;
+import com.azure.resourcemanager.servicebus.generated.models.MessageCountDetails;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** Description of queue Resource. */
+@Fluent
+public final class SBQueueInner extends ProxyResource {
+ /*
+ * Queue Properties
+ */
+ @JsonProperty(value = "properties")
+ private SBQueueProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Queue Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SBQueueProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the countDetails property: Message Count Details.
+ *
+ * @return the countDetails value.
+ */
+ public MessageCountDetails countDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().countDetails();
+ }
+
+ /**
+ * Get the createdAt property: The exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the accessedAt property: Last time a message was sent, or the last time there was a receive request to this
+ * queue.
+ *
+ * @return the accessedAt value.
+ */
+ public OffsetDateTime accessedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().accessedAt();
+ }
+
+ /**
+ * Get the sizeInBytes property: The size of the queue, in bytes.
+ *
+ * @return the sizeInBytes value.
+ */
+ public Long sizeInBytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().sizeInBytes();
+ }
+
+ /**
+ * Get the messageCount property: The number of messages in the queue.
+ *
+ * @return the messageCount value.
+ */
+ public Long messageCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().messageCount();
+ }
+
+ /**
+ * Get the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the
+ * message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1
+ * minute.
+ *
+ * @return the lockDuration value.
+ */
+ public Duration lockDuration() {
+ return this.innerProperties() == null ? null : this.innerProperties().lockDuration();
+ }
+
+ /**
+ * Set the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the
+ * message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1
+ * minute.
+ *
+ * @param lockDuration the lockDuration value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withLockDuration(Duration lockDuration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withLockDuration(lockDuration);
+ return this;
+ }
+
+ /**
+ * Get the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory
+ * allocated for the queue. Default is 1024.
+ *
+ * @return the maxSizeInMegabytes value.
+ */
+ public Integer maxSizeInMegabytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxSizeInMegabytes();
+ }
+
+ /**
+ * Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory
+ * allocated for the queue. Default is 1024.
+ *
+ * @param maxSizeInMegabytes the maxSizeInMegabytes value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withMaxSizeInMegabytes(Integer maxSizeInMegabytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withMaxSizeInMegabytes(maxSizeInMegabytes);
+ return this;
+ }
+
+ /**
+ * Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the queue. This property is only used in Premium today and default is 1024.
+ *
+ * @return the maxMessageSizeInKilobytes value.
+ */
+ public Long maxMessageSizeInKilobytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxMessageSizeInKilobytes();
+ }
+
+ /**
+ * Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the queue. This property is only used in Premium today and default is 1024.
+ *
+ * @param maxMessageSizeInKilobytes the maxMessageSizeInKilobytes value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withMaxMessageSizeInKilobytes(maxMessageSizeInKilobytes);
+ return this;
+ }
+
+ /**
+ * Get the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
+ *
+ * @return the requiresDuplicateDetection value.
+ */
+ public Boolean requiresDuplicateDetection() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiresDuplicateDetection();
+ }
+
+ /**
+ * Set the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
+ *
+ * @param requiresDuplicateDetection the requiresDuplicateDetection value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withRequiresDuplicateDetection(Boolean requiresDuplicateDetection) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withRequiresDuplicateDetection(requiresDuplicateDetection);
+ return this;
+ }
+
+ /**
+ * Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
+ *
+ * @return the requiresSession value.
+ */
+ public Boolean requiresSession() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiresSession();
+ }
+
+ /**
+ * Set the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
+ *
+ * @param requiresSession the requiresSession value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withRequiresSession(Boolean requiresSession) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withRequiresSession(requiresSession);
+ return this;
+ }
+
+ /**
+ * Get the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @return the defaultMessageTimeToLive value.
+ */
+ public Duration defaultMessageTimeToLive() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultMessageTimeToLive();
+ }
+
+ /**
+ * Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @param defaultMessageTimeToLive the defaultMessageTimeToLive value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withDefaultMessageTimeToLive(defaultMessageTimeToLive);
+ return this;
+ }
+
+ /**
+ * Get the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter
+ * support when a message expires.
+ *
+ * @return the deadLetteringOnMessageExpiration value.
+ */
+ public Boolean deadLetteringOnMessageExpiration() {
+ return this.innerProperties() == null ? null : this.innerProperties().deadLetteringOnMessageExpiration();
+ }
+
+ /**
+ * Set the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter
+ * support when a message expires.
+ *
+ * @param deadLetteringOnMessageExpiration the deadLetteringOnMessageExpiration value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withDeadLetteringOnMessageExpiration(deadLetteringOnMessageExpiration);
+ return this;
+ }
+
+ /**
+ * Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @return the duplicateDetectionHistoryTimeWindow value.
+ */
+ public Duration duplicateDetectionHistoryTimeWindow() {
+ return this.innerProperties() == null ? null : this.innerProperties().duplicateDetectionHistoryTimeWindow();
+ }
+
+ /**
+ * Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @param duplicateDetectionHistoryTimeWindow the duplicateDetectionHistoryTimeWindow value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withDuplicateDetectionHistoryTimeWindow(duplicateDetectionHistoryTimeWindow);
+ return this;
+ }
+
+ /**
+ * Get the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this
+ * number of deliveries. default value is 10.
+ *
+ * @return the maxDeliveryCount value.
+ */
+ public Integer maxDeliveryCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxDeliveryCount();
+ }
+
+ /**
+ * Set the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this
+ * number of deliveries. default value is 10.
+ *
+ * @param maxDeliveryCount the maxDeliveryCount value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withMaxDeliveryCount(Integer maxDeliveryCount) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withMaxDeliveryCount(maxDeliveryCount);
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @param status the status value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withStatus(EntityStatus status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withStatus(status);
+ return this;
+ }
+
+ /**
+ * Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @return the enableBatchedOperations value.
+ */
+ public Boolean enableBatchedOperations() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableBatchedOperations();
+ }
+
+ /**
+ * Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @param enableBatchedOperations the enableBatchedOperations value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withEnableBatchedOperations(Boolean enableBatchedOperations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withEnableBatchedOperations(enableBatchedOperations);
+ return this;
+ }
+
+ /**
+ * Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @return the autoDeleteOnIdle value.
+ */
+ public Duration autoDeleteOnIdle() {
+ return this.innerProperties() == null ? null : this.innerProperties().autoDeleteOnIdle();
+ }
+
+ /**
+ * Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @param autoDeleteOnIdle the autoDeleteOnIdle value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withAutoDeleteOnIdle(Duration autoDeleteOnIdle) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withAutoDeleteOnIdle(autoDeleteOnIdle);
+ return this;
+ }
+
+ /**
+ * Get the enablePartitioning property: A value that indicates whether the queue is to be partitioned across
+ * multiple message brokers.
+ *
+ * @return the enablePartitioning value.
+ */
+ public Boolean enablePartitioning() {
+ return this.innerProperties() == null ? null : this.innerProperties().enablePartitioning();
+ }
+
+ /**
+ * Set the enablePartitioning property: A value that indicates whether the queue is to be partitioned across
+ * multiple message brokers.
+ *
+ * @param enablePartitioning the enablePartitioning value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withEnablePartitioning(Boolean enablePartitioning) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withEnablePartitioning(enablePartitioning);
+ return this;
+ }
+
+ /**
+ * Get the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue
+ * holds a message in memory temporarily before writing it to persistent storage.
+ *
+ * @return the enableExpress value.
+ */
+ public Boolean enableExpress() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableExpress();
+ }
+
+ /**
+ * Set the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue
+ * holds a message in memory temporarily before writing it to persistent storage.
+ *
+ * @param enableExpress the enableExpress value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withEnableExpress(Boolean enableExpress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withEnableExpress(enableExpress);
+ return this;
+ }
+
+ /**
+ * Get the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @return the forwardTo value.
+ */
+ public String forwardTo() {
+ return this.innerProperties() == null ? null : this.innerProperties().forwardTo();
+ }
+
+ /**
+ * Set the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @param forwardTo the forwardTo value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withForwardTo(String forwardTo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withForwardTo(forwardTo);
+ return this;
+ }
+
+ /**
+ * Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @return the forwardDeadLetteredMessagesTo value.
+ */
+ public String forwardDeadLetteredMessagesTo() {
+ return this.innerProperties() == null ? null : this.innerProperties().forwardDeadLetteredMessagesTo();
+ }
+
+ /**
+ * Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @param forwardDeadLetteredMessagesTo the forwardDeadLetteredMessagesTo value to set.
+ * @return the SBQueueInner object itself.
+ */
+ public SBQueueInner withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBQueueProperties();
+ }
+ this.innerProperties().withForwardDeadLetteredMessagesTo(forwardDeadLetteredMessagesTo);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBQueueProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBQueueProperties.java
new file mode 100644
index 000000000000..bd7af6738f7c
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBQueueProperties.java
@@ -0,0 +1,576 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.EntityStatus;
+import com.azure.resourcemanager.servicebus.generated.models.MessageCountDetails;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** The Queue Properties definition. */
+@Fluent
+public final class SBQueueProperties {
+ /*
+ * Message Count Details.
+ */
+ @JsonProperty(value = "countDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private MessageCountDetails countDetails;
+
+ /*
+ * The exact time the message was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The exact time the message was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Last time a message was sent, or the last time there was a receive
+ * request to this queue.
+ */
+ @JsonProperty(value = "accessedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime accessedAt;
+
+ /*
+ * The size of the queue, in bytes.
+ */
+ @JsonProperty(value = "sizeInBytes", access = JsonProperty.Access.WRITE_ONLY)
+ private Long sizeInBytes;
+
+ /*
+ * The number of messages in the queue.
+ */
+ @JsonProperty(value = "messageCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long messageCount;
+
+ /*
+ * ISO 8601 timespan duration of a peek-lock; that is, the amount of time
+ * that the message is locked for other receivers. The maximum value for
+ * LockDuration is 5 minutes; the default value is 1 minute.
+ */
+ @JsonProperty(value = "lockDuration")
+ private Duration lockDuration;
+
+ /*
+ * The maximum size of the queue in megabytes, which is the size of memory
+ * allocated for the queue. Default is 1024.
+ */
+ @JsonProperty(value = "maxSizeInMegabytes")
+ private Integer maxSizeInMegabytes;
+
+ /*
+ * Maximum size (in KB) of the message payload that can be accepted by the
+ * queue. This property is only used in Premium today and default is 1024.
+ */
+ @JsonProperty(value = "maxMessageSizeInKilobytes")
+ private Long maxMessageSizeInKilobytes;
+
+ /*
+ * A value indicating if this queue requires duplicate detection.
+ */
+ @JsonProperty(value = "requiresDuplicateDetection")
+ private Boolean requiresDuplicateDetection;
+
+ /*
+ * A value that indicates whether the queue supports the concept of
+ * sessions.
+ */
+ @JsonProperty(value = "requiresSession")
+ private Boolean requiresSession;
+
+ /*
+ * ISO 8601 default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent
+ * to Service Bus. This is the default value used when TimeToLive is not
+ * set on a message itself.
+ */
+ @JsonProperty(value = "defaultMessageTimeToLive")
+ private Duration defaultMessageTimeToLive;
+
+ /*
+ * A value that indicates whether this queue has dead letter support when a
+ * message expires.
+ */
+ @JsonProperty(value = "deadLetteringOnMessageExpiration")
+ private Boolean deadLetteringOnMessageExpiration;
+
+ /*
+ * ISO 8601 timeSpan structure that defines the duration of the duplicate
+ * detection history. The default value is 10 minutes.
+ */
+ @JsonProperty(value = "duplicateDetectionHistoryTimeWindow")
+ private Duration duplicateDetectionHistoryTimeWindow;
+
+ /*
+ * The maximum delivery count. A message is automatically deadlettered
+ * after this number of deliveries. default value is 10.
+ */
+ @JsonProperty(value = "maxDeliveryCount")
+ private Integer maxDeliveryCount;
+
+ /*
+ * Enumerates the possible values for the status of a messaging entity.
+ */
+ @JsonProperty(value = "status")
+ private EntityStatus status;
+
+ /*
+ * Value that indicates whether server-side batched operations are enabled.
+ */
+ @JsonProperty(value = "enableBatchedOperations")
+ private Boolean enableBatchedOperations;
+
+ /*
+ * ISO 8061 timeSpan idle interval after which the queue is automatically
+ * deleted. The minimum duration is 5 minutes.
+ */
+ @JsonProperty(value = "autoDeleteOnIdle")
+ private Duration autoDeleteOnIdle;
+
+ /*
+ * A value that indicates whether the queue is to be partitioned across
+ * multiple message brokers.
+ */
+ @JsonProperty(value = "enablePartitioning")
+ private Boolean enablePartitioning;
+
+ /*
+ * A value that indicates whether Express Entities are enabled. An express
+ * queue holds a message in memory temporarily before writing it to
+ * persistent storage.
+ */
+ @JsonProperty(value = "enableExpress")
+ private Boolean enableExpress;
+
+ /*
+ * Queue/Topic name to forward the messages
+ */
+ @JsonProperty(value = "forwardTo")
+ private String forwardTo;
+
+ /*
+ * Queue/Topic name to forward the Dead Letter message
+ */
+ @JsonProperty(value = "forwardDeadLetteredMessagesTo")
+ private String forwardDeadLetteredMessagesTo;
+
+ /**
+ * Get the countDetails property: Message Count Details.
+ *
+ * @return the countDetails value.
+ */
+ public MessageCountDetails countDetails() {
+ return this.countDetails;
+ }
+
+ /**
+ * Get the createdAt property: The exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the accessedAt property: Last time a message was sent, or the last time there was a receive request to this
+ * queue.
+ *
+ * @return the accessedAt value.
+ */
+ public OffsetDateTime accessedAt() {
+ return this.accessedAt;
+ }
+
+ /**
+ * Get the sizeInBytes property: The size of the queue, in bytes.
+ *
+ * @return the sizeInBytes value.
+ */
+ public Long sizeInBytes() {
+ return this.sizeInBytes;
+ }
+
+ /**
+ * Get the messageCount property: The number of messages in the queue.
+ *
+ * @return the messageCount value.
+ */
+ public Long messageCount() {
+ return this.messageCount;
+ }
+
+ /**
+ * Get the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the
+ * message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1
+ * minute.
+ *
+ * @return the lockDuration value.
+ */
+ public Duration lockDuration() {
+ return this.lockDuration;
+ }
+
+ /**
+ * Set the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the
+ * message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1
+ * minute.
+ *
+ * @param lockDuration the lockDuration value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withLockDuration(Duration lockDuration) {
+ this.lockDuration = lockDuration;
+ return this;
+ }
+
+ /**
+ * Get the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory
+ * allocated for the queue. Default is 1024.
+ *
+ * @return the maxSizeInMegabytes value.
+ */
+ public Integer maxSizeInMegabytes() {
+ return this.maxSizeInMegabytes;
+ }
+
+ /**
+ * Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory
+ * allocated for the queue. Default is 1024.
+ *
+ * @param maxSizeInMegabytes the maxSizeInMegabytes value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withMaxSizeInMegabytes(Integer maxSizeInMegabytes) {
+ this.maxSizeInMegabytes = maxSizeInMegabytes;
+ return this;
+ }
+
+ /**
+ * Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the queue. This property is only used in Premium today and default is 1024.
+ *
+ * @return the maxMessageSizeInKilobytes value.
+ */
+ public Long maxMessageSizeInKilobytes() {
+ return this.maxMessageSizeInKilobytes;
+ }
+
+ /**
+ * Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the queue. This property is only used in Premium today and default is 1024.
+ *
+ * @param maxMessageSizeInKilobytes the maxMessageSizeInKilobytes value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes) {
+ this.maxMessageSizeInKilobytes = maxMessageSizeInKilobytes;
+ return this;
+ }
+
+ /**
+ * Get the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
+ *
+ * @return the requiresDuplicateDetection value.
+ */
+ public Boolean requiresDuplicateDetection() {
+ return this.requiresDuplicateDetection;
+ }
+
+ /**
+ * Set the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
+ *
+ * @param requiresDuplicateDetection the requiresDuplicateDetection value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withRequiresDuplicateDetection(Boolean requiresDuplicateDetection) {
+ this.requiresDuplicateDetection = requiresDuplicateDetection;
+ return this;
+ }
+
+ /**
+ * Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
+ *
+ * @return the requiresSession value.
+ */
+ public Boolean requiresSession() {
+ return this.requiresSession;
+ }
+
+ /**
+ * Set the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
+ *
+ * @param requiresSession the requiresSession value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withRequiresSession(Boolean requiresSession) {
+ this.requiresSession = requiresSession;
+ return this;
+ }
+
+ /**
+ * Get the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @return the defaultMessageTimeToLive value.
+ */
+ public Duration defaultMessageTimeToLive() {
+ return this.defaultMessageTimeToLive;
+ }
+
+ /**
+ * Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @param defaultMessageTimeToLive the defaultMessageTimeToLive value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) {
+ this.defaultMessageTimeToLive = defaultMessageTimeToLive;
+ return this;
+ }
+
+ /**
+ * Get the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter
+ * support when a message expires.
+ *
+ * @return the deadLetteringOnMessageExpiration value.
+ */
+ public Boolean deadLetteringOnMessageExpiration() {
+ return this.deadLetteringOnMessageExpiration;
+ }
+
+ /**
+ * Set the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter
+ * support when a message expires.
+ *
+ * @param deadLetteringOnMessageExpiration the deadLetteringOnMessageExpiration value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) {
+ this.deadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration;
+ return this;
+ }
+
+ /**
+ * Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @return the duplicateDetectionHistoryTimeWindow value.
+ */
+ public Duration duplicateDetectionHistoryTimeWindow() {
+ return this.duplicateDetectionHistoryTimeWindow;
+ }
+
+ /**
+ * Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @param duplicateDetectionHistoryTimeWindow the duplicateDetectionHistoryTimeWindow value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) {
+ this.duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow;
+ return this;
+ }
+
+ /**
+ * Get the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this
+ * number of deliveries. default value is 10.
+ *
+ * @return the maxDeliveryCount value.
+ */
+ public Integer maxDeliveryCount() {
+ return this.maxDeliveryCount;
+ }
+
+ /**
+ * Set the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this
+ * number of deliveries. default value is 10.
+ *
+ * @param maxDeliveryCount the maxDeliveryCount value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withMaxDeliveryCount(Integer maxDeliveryCount) {
+ this.maxDeliveryCount = maxDeliveryCount;
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @param status the status value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withStatus(EntityStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @return the enableBatchedOperations value.
+ */
+ public Boolean enableBatchedOperations() {
+ return this.enableBatchedOperations;
+ }
+
+ /**
+ * Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @param enableBatchedOperations the enableBatchedOperations value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withEnableBatchedOperations(Boolean enableBatchedOperations) {
+ this.enableBatchedOperations = enableBatchedOperations;
+ return this;
+ }
+
+ /**
+ * Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @return the autoDeleteOnIdle value.
+ */
+ public Duration autoDeleteOnIdle() {
+ return this.autoDeleteOnIdle;
+ }
+
+ /**
+ * Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @param autoDeleteOnIdle the autoDeleteOnIdle value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withAutoDeleteOnIdle(Duration autoDeleteOnIdle) {
+ this.autoDeleteOnIdle = autoDeleteOnIdle;
+ return this;
+ }
+
+ /**
+ * Get the enablePartitioning property: A value that indicates whether the queue is to be partitioned across
+ * multiple message brokers.
+ *
+ * @return the enablePartitioning value.
+ */
+ public Boolean enablePartitioning() {
+ return this.enablePartitioning;
+ }
+
+ /**
+ * Set the enablePartitioning property: A value that indicates whether the queue is to be partitioned across
+ * multiple message brokers.
+ *
+ * @param enablePartitioning the enablePartitioning value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withEnablePartitioning(Boolean enablePartitioning) {
+ this.enablePartitioning = enablePartitioning;
+ return this;
+ }
+
+ /**
+ * Get the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue
+ * holds a message in memory temporarily before writing it to persistent storage.
+ *
+ * @return the enableExpress value.
+ */
+ public Boolean enableExpress() {
+ return this.enableExpress;
+ }
+
+ /**
+ * Set the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue
+ * holds a message in memory temporarily before writing it to persistent storage.
+ *
+ * @param enableExpress the enableExpress value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withEnableExpress(Boolean enableExpress) {
+ this.enableExpress = enableExpress;
+ return this;
+ }
+
+ /**
+ * Get the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @return the forwardTo value.
+ */
+ public String forwardTo() {
+ return this.forwardTo;
+ }
+
+ /**
+ * Set the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @param forwardTo the forwardTo value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withForwardTo(String forwardTo) {
+ this.forwardTo = forwardTo;
+ return this;
+ }
+
+ /**
+ * Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @return the forwardDeadLetteredMessagesTo value.
+ */
+ public String forwardDeadLetteredMessagesTo() {
+ return this.forwardDeadLetteredMessagesTo;
+ }
+
+ /**
+ * Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @param forwardDeadLetteredMessagesTo the forwardDeadLetteredMessagesTo value to set.
+ * @return the SBQueueProperties object itself.
+ */
+ public SBQueueProperties withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) {
+ this.forwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (countDetails() != null) {
+ countDetails().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBSubscriptionInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBSubscriptionInner.java
new file mode 100644
index 000000000000..dc99e6452c87
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBSubscriptionInner.java
@@ -0,0 +1,461 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.EntityStatus;
+import com.azure.resourcemanager.servicebus.generated.models.MessageCountDetails;
+import com.azure.resourcemanager.servicebus.generated.models.SBClientAffineProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** Description of subscription resource. */
+@Fluent
+public final class SBSubscriptionInner extends ProxyResource {
+ /*
+ * Properties of subscriptions resource.
+ */
+ @JsonProperty(value = "properties")
+ private SBSubscriptionProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties of subscriptions resource.
+ *
+ * @return the innerProperties value.
+ */
+ private SBSubscriptionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the messageCount property: Number of messages.
+ *
+ * @return the messageCount value.
+ */
+ public Long messageCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().messageCount();
+ }
+
+ /**
+ * Get the createdAt property: Exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the accessedAt property: Last time there was a receive request to this subscription.
+ *
+ * @return the accessedAt value.
+ */
+ public OffsetDateTime accessedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().accessedAt();
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the countDetails property: Message count details.
+ *
+ * @return the countDetails value.
+ */
+ public MessageCountDetails countDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().countDetails();
+ }
+
+ /**
+ * Get the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1
+ * minute.
+ *
+ * @return the lockDuration value.
+ */
+ public Duration lockDuration() {
+ return this.innerProperties() == null ? null : this.innerProperties().lockDuration();
+ }
+
+ /**
+ * Set the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1
+ * minute.
+ *
+ * @param lockDuration the lockDuration value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withLockDuration(Duration lockDuration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withLockDuration(lockDuration);
+ return this;
+ }
+
+ /**
+ * Get the requiresSession property: Value indicating if a subscription supports the concept of sessions.
+ *
+ * @return the requiresSession value.
+ */
+ public Boolean requiresSession() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiresSession();
+ }
+
+ /**
+ * Set the requiresSession property: Value indicating if a subscription supports the concept of sessions.
+ *
+ * @param requiresSession the requiresSession value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withRequiresSession(Boolean requiresSession) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withRequiresSession(requiresSession);
+ return this;
+ }
+
+ /**
+ * Get the defaultMessageTimeToLive property: ISO 8061 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @return the defaultMessageTimeToLive value.
+ */
+ public Duration defaultMessageTimeToLive() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultMessageTimeToLive();
+ }
+
+ /**
+ * Set the defaultMessageTimeToLive property: ISO 8061 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @param defaultMessageTimeToLive the defaultMessageTimeToLive value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withDefaultMessageTimeToLive(defaultMessageTimeToLive);
+ return this;
+ }
+
+ /**
+ * Get the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead
+ * letter support on filter evaluation exceptions.
+ *
+ * @return the deadLetteringOnFilterEvaluationExceptions value.
+ */
+ public Boolean deadLetteringOnFilterEvaluationExceptions() {
+ return this.innerProperties() == null
+ ? null
+ : this.innerProperties().deadLetteringOnFilterEvaluationExceptions();
+ }
+
+ /**
+ * Set the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead
+ * letter support on filter evaluation exceptions.
+ *
+ * @param deadLetteringOnFilterEvaluationExceptions the deadLetteringOnFilterEvaluationExceptions value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withDeadLetteringOnFilterEvaluationExceptions(
+ Boolean deadLetteringOnFilterEvaluationExceptions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withDeadLetteringOnFilterEvaluationExceptions(deadLetteringOnFilterEvaluationExceptions);
+ return this;
+ }
+
+ /**
+ * Get the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter
+ * support when a message expires.
+ *
+ * @return the deadLetteringOnMessageExpiration value.
+ */
+ public Boolean deadLetteringOnMessageExpiration() {
+ return this.innerProperties() == null ? null : this.innerProperties().deadLetteringOnMessageExpiration();
+ }
+
+ /**
+ * Set the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter
+ * support when a message expires.
+ *
+ * @param deadLetteringOnMessageExpiration the deadLetteringOnMessageExpiration value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withDeadLetteringOnMessageExpiration(deadLetteringOnMessageExpiration);
+ return this;
+ }
+
+ /**
+ * Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @return the duplicateDetectionHistoryTimeWindow value.
+ */
+ public Duration duplicateDetectionHistoryTimeWindow() {
+ return this.innerProperties() == null ? null : this.innerProperties().duplicateDetectionHistoryTimeWindow();
+ }
+
+ /**
+ * Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @param duplicateDetectionHistoryTimeWindow the duplicateDetectionHistoryTimeWindow value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withDuplicateDetectionHistoryTimeWindow(duplicateDetectionHistoryTimeWindow);
+ return this;
+ }
+
+ /**
+ * Get the maxDeliveryCount property: Number of maximum deliveries.
+ *
+ * @return the maxDeliveryCount value.
+ */
+ public Integer maxDeliveryCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxDeliveryCount();
+ }
+
+ /**
+ * Set the maxDeliveryCount property: Number of maximum deliveries.
+ *
+ * @param maxDeliveryCount the maxDeliveryCount value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withMaxDeliveryCount(Integer maxDeliveryCount) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withMaxDeliveryCount(maxDeliveryCount);
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @param status the status value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withStatus(EntityStatus status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withStatus(status);
+ return this;
+ }
+
+ /**
+ * Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @return the enableBatchedOperations value.
+ */
+ public Boolean enableBatchedOperations() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableBatchedOperations();
+ }
+
+ /**
+ * Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @param enableBatchedOperations the enableBatchedOperations value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withEnableBatchedOperations(Boolean enableBatchedOperations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withEnableBatchedOperations(enableBatchedOperations);
+ return this;
+ }
+
+ /**
+ * Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @return the autoDeleteOnIdle value.
+ */
+ public Duration autoDeleteOnIdle() {
+ return this.innerProperties() == null ? null : this.innerProperties().autoDeleteOnIdle();
+ }
+
+ /**
+ * Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @param autoDeleteOnIdle the autoDeleteOnIdle value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withAutoDeleteOnIdle(Duration autoDeleteOnIdle) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withAutoDeleteOnIdle(autoDeleteOnIdle);
+ return this;
+ }
+
+ /**
+ * Get the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @return the forwardTo value.
+ */
+ public String forwardTo() {
+ return this.innerProperties() == null ? null : this.innerProperties().forwardTo();
+ }
+
+ /**
+ * Set the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @param forwardTo the forwardTo value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withForwardTo(String forwardTo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withForwardTo(forwardTo);
+ return this;
+ }
+
+ /**
+ * Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @return the forwardDeadLetteredMessagesTo value.
+ */
+ public String forwardDeadLetteredMessagesTo() {
+ return this.innerProperties() == null ? null : this.innerProperties().forwardDeadLetteredMessagesTo();
+ }
+
+ /**
+ * Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @param forwardDeadLetteredMessagesTo the forwardDeadLetteredMessagesTo value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withForwardDeadLetteredMessagesTo(forwardDeadLetteredMessagesTo);
+ return this;
+ }
+
+ /**
+ * Get the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.
+ *
+ * @return the isClientAffine value.
+ */
+ public Boolean isClientAffine() {
+ return this.innerProperties() == null ? null : this.innerProperties().isClientAffine();
+ }
+
+ /**
+ * Set the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.
+ *
+ * @param isClientAffine the isClientAffine value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withIsClientAffine(Boolean isClientAffine) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withIsClientAffine(isClientAffine);
+ return this;
+ }
+
+ /**
+ * Get the clientAffineProperties property: Properties specific to client affine subscriptions.
+ *
+ * @return the clientAffineProperties value.
+ */
+ public SBClientAffineProperties clientAffineProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientAffineProperties();
+ }
+
+ /**
+ * Set the clientAffineProperties property: Properties specific to client affine subscriptions.
+ *
+ * @param clientAffineProperties the clientAffineProperties value to set.
+ * @return the SBSubscriptionInner object itself.
+ */
+ public SBSubscriptionInner withClientAffineProperties(SBClientAffineProperties clientAffineProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBSubscriptionProperties();
+ }
+ this.innerProperties().withClientAffineProperties(clientAffineProperties);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBSubscriptionProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBSubscriptionProperties.java
new file mode 100644
index 000000000000..97fe5a09f2d9
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBSubscriptionProperties.java
@@ -0,0 +1,497 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.EntityStatus;
+import com.azure.resourcemanager.servicebus.generated.models.MessageCountDetails;
+import com.azure.resourcemanager.servicebus.generated.models.SBClientAffineProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** Description of Subscription Resource. */
+@Fluent
+public final class SBSubscriptionProperties {
+ /*
+ * Number of messages.
+ */
+ @JsonProperty(value = "messageCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long messageCount;
+
+ /*
+ * Exact time the message was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * Last time there was a receive request to this subscription.
+ */
+ @JsonProperty(value = "accessedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime accessedAt;
+
+ /*
+ * The exact time the message was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Message count details
+ */
+ @JsonProperty(value = "countDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private MessageCountDetails countDetails;
+
+ /*
+ * ISO 8061 lock duration timespan for the subscription. The default value
+ * is 1 minute.
+ */
+ @JsonProperty(value = "lockDuration")
+ private Duration lockDuration;
+
+ /*
+ * Value indicating if a subscription supports the concept of sessions.
+ */
+ @JsonProperty(value = "requiresSession")
+ private Boolean requiresSession;
+
+ /*
+ * ISO 8061 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent
+ * to Service Bus. This is the default value used when TimeToLive is not
+ * set on a message itself.
+ */
+ @JsonProperty(value = "defaultMessageTimeToLive")
+ private Duration defaultMessageTimeToLive;
+
+ /*
+ * Value that indicates whether a subscription has dead letter support on
+ * filter evaluation exceptions.
+ */
+ @JsonProperty(value = "deadLetteringOnFilterEvaluationExceptions")
+ private Boolean deadLetteringOnFilterEvaluationExceptions;
+
+ /*
+ * Value that indicates whether a subscription has dead letter support when
+ * a message expires.
+ */
+ @JsonProperty(value = "deadLetteringOnMessageExpiration")
+ private Boolean deadLetteringOnMessageExpiration;
+
+ /*
+ * ISO 8601 timeSpan structure that defines the duration of the duplicate
+ * detection history. The default value is 10 minutes.
+ */
+ @JsonProperty(value = "duplicateDetectionHistoryTimeWindow")
+ private Duration duplicateDetectionHistoryTimeWindow;
+
+ /*
+ * Number of maximum deliveries.
+ */
+ @JsonProperty(value = "maxDeliveryCount")
+ private Integer maxDeliveryCount;
+
+ /*
+ * Enumerates the possible values for the status of a messaging entity.
+ */
+ @JsonProperty(value = "status")
+ private EntityStatus status;
+
+ /*
+ * Value that indicates whether server-side batched operations are enabled.
+ */
+ @JsonProperty(value = "enableBatchedOperations")
+ private Boolean enableBatchedOperations;
+
+ /*
+ * ISO 8061 timeSpan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ */
+ @JsonProperty(value = "autoDeleteOnIdle")
+ private Duration autoDeleteOnIdle;
+
+ /*
+ * Queue/Topic name to forward the messages
+ */
+ @JsonProperty(value = "forwardTo")
+ private String forwardTo;
+
+ /*
+ * Queue/Topic name to forward the Dead Letter message
+ */
+ @JsonProperty(value = "forwardDeadLetteredMessagesTo")
+ private String forwardDeadLetteredMessagesTo;
+
+ /*
+ * Value that indicates whether the subscription has an affinity to the
+ * client id.
+ */
+ @JsonProperty(value = "isClientAffine")
+ private Boolean isClientAffine;
+
+ /*
+ * Properties specific to client affine subscriptions.
+ */
+ @JsonProperty(value = "clientAffineProperties")
+ private SBClientAffineProperties clientAffineProperties;
+
+ /**
+ * Get the messageCount property: Number of messages.
+ *
+ * @return the messageCount value.
+ */
+ public Long messageCount() {
+ return this.messageCount;
+ }
+
+ /**
+ * Get the createdAt property: Exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the accessedAt property: Last time there was a receive request to this subscription.
+ *
+ * @return the accessedAt value.
+ */
+ public OffsetDateTime accessedAt() {
+ return this.accessedAt;
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the countDetails property: Message count details.
+ *
+ * @return the countDetails value.
+ */
+ public MessageCountDetails countDetails() {
+ return this.countDetails;
+ }
+
+ /**
+ * Get the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1
+ * minute.
+ *
+ * @return the lockDuration value.
+ */
+ public Duration lockDuration() {
+ return this.lockDuration;
+ }
+
+ /**
+ * Set the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1
+ * minute.
+ *
+ * @param lockDuration the lockDuration value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withLockDuration(Duration lockDuration) {
+ this.lockDuration = lockDuration;
+ return this;
+ }
+
+ /**
+ * Get the requiresSession property: Value indicating if a subscription supports the concept of sessions.
+ *
+ * @return the requiresSession value.
+ */
+ public Boolean requiresSession() {
+ return this.requiresSession;
+ }
+
+ /**
+ * Set the requiresSession property: Value indicating if a subscription supports the concept of sessions.
+ *
+ * @param requiresSession the requiresSession value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withRequiresSession(Boolean requiresSession) {
+ this.requiresSession = requiresSession;
+ return this;
+ }
+
+ /**
+ * Get the defaultMessageTimeToLive property: ISO 8061 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @return the defaultMessageTimeToLive value.
+ */
+ public Duration defaultMessageTimeToLive() {
+ return this.defaultMessageTimeToLive;
+ }
+
+ /**
+ * Set the defaultMessageTimeToLive property: ISO 8061 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @param defaultMessageTimeToLive the defaultMessageTimeToLive value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) {
+ this.defaultMessageTimeToLive = defaultMessageTimeToLive;
+ return this;
+ }
+
+ /**
+ * Get the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead
+ * letter support on filter evaluation exceptions.
+ *
+ * @return the deadLetteringOnFilterEvaluationExceptions value.
+ */
+ public Boolean deadLetteringOnFilterEvaluationExceptions() {
+ return this.deadLetteringOnFilterEvaluationExceptions;
+ }
+
+ /**
+ * Set the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead
+ * letter support on filter evaluation exceptions.
+ *
+ * @param deadLetteringOnFilterEvaluationExceptions the deadLetteringOnFilterEvaluationExceptions value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withDeadLetteringOnFilterEvaluationExceptions(
+ Boolean deadLetteringOnFilterEvaluationExceptions) {
+ this.deadLetteringOnFilterEvaluationExceptions = deadLetteringOnFilterEvaluationExceptions;
+ return this;
+ }
+
+ /**
+ * Get the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter
+ * support when a message expires.
+ *
+ * @return the deadLetteringOnMessageExpiration value.
+ */
+ public Boolean deadLetteringOnMessageExpiration() {
+ return this.deadLetteringOnMessageExpiration;
+ }
+
+ /**
+ * Set the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter
+ * support when a message expires.
+ *
+ * @param deadLetteringOnMessageExpiration the deadLetteringOnMessageExpiration value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) {
+ this.deadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration;
+ return this;
+ }
+
+ /**
+ * Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @return the duplicateDetectionHistoryTimeWindow value.
+ */
+ public Duration duplicateDetectionHistoryTimeWindow() {
+ return this.duplicateDetectionHistoryTimeWindow;
+ }
+
+ /**
+ * Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of
+ * the duplicate detection history. The default value is 10 minutes.
+ *
+ * @param duplicateDetectionHistoryTimeWindow the duplicateDetectionHistoryTimeWindow value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withDuplicateDetectionHistoryTimeWindow(
+ Duration duplicateDetectionHistoryTimeWindow) {
+ this.duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow;
+ return this;
+ }
+
+ /**
+ * Get the maxDeliveryCount property: Number of maximum deliveries.
+ *
+ * @return the maxDeliveryCount value.
+ */
+ public Integer maxDeliveryCount() {
+ return this.maxDeliveryCount;
+ }
+
+ /**
+ * Set the maxDeliveryCount property: Number of maximum deliveries.
+ *
+ * @param maxDeliveryCount the maxDeliveryCount value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withMaxDeliveryCount(Integer maxDeliveryCount) {
+ this.maxDeliveryCount = maxDeliveryCount;
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @param status the status value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withStatus(EntityStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @return the enableBatchedOperations value.
+ */
+ public Boolean enableBatchedOperations() {
+ return this.enableBatchedOperations;
+ }
+
+ /**
+ * Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @param enableBatchedOperations the enableBatchedOperations value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withEnableBatchedOperations(Boolean enableBatchedOperations) {
+ this.enableBatchedOperations = enableBatchedOperations;
+ return this;
+ }
+
+ /**
+ * Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @return the autoDeleteOnIdle value.
+ */
+ public Duration autoDeleteOnIdle() {
+ return this.autoDeleteOnIdle;
+ }
+
+ /**
+ * Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @param autoDeleteOnIdle the autoDeleteOnIdle value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withAutoDeleteOnIdle(Duration autoDeleteOnIdle) {
+ this.autoDeleteOnIdle = autoDeleteOnIdle;
+ return this;
+ }
+
+ /**
+ * Get the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @return the forwardTo value.
+ */
+ public String forwardTo() {
+ return this.forwardTo;
+ }
+
+ /**
+ * Set the forwardTo property: Queue/Topic name to forward the messages.
+ *
+ * @param forwardTo the forwardTo value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withForwardTo(String forwardTo) {
+ this.forwardTo = forwardTo;
+ return this;
+ }
+
+ /**
+ * Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @return the forwardDeadLetteredMessagesTo value.
+ */
+ public String forwardDeadLetteredMessagesTo() {
+ return this.forwardDeadLetteredMessagesTo;
+ }
+
+ /**
+ * Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
+ *
+ * @param forwardDeadLetteredMessagesTo the forwardDeadLetteredMessagesTo value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) {
+ this.forwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo;
+ return this;
+ }
+
+ /**
+ * Get the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.
+ *
+ * @return the isClientAffine value.
+ */
+ public Boolean isClientAffine() {
+ return this.isClientAffine;
+ }
+
+ /**
+ * Set the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.
+ *
+ * @param isClientAffine the isClientAffine value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withIsClientAffine(Boolean isClientAffine) {
+ this.isClientAffine = isClientAffine;
+ return this;
+ }
+
+ /**
+ * Get the clientAffineProperties property: Properties specific to client affine subscriptions.
+ *
+ * @return the clientAffineProperties value.
+ */
+ public SBClientAffineProperties clientAffineProperties() {
+ return this.clientAffineProperties;
+ }
+
+ /**
+ * Set the clientAffineProperties property: Properties specific to client affine subscriptions.
+ *
+ * @param clientAffineProperties the clientAffineProperties value to set.
+ * @return the SBSubscriptionProperties object itself.
+ */
+ public SBSubscriptionProperties withClientAffineProperties(SBClientAffineProperties clientAffineProperties) {
+ this.clientAffineProperties = clientAffineProperties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (countDetails() != null) {
+ countDetails().validate();
+ }
+ if (clientAffineProperties() != null) {
+ clientAffineProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBTopicInner.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBTopicInner.java
new file mode 100644
index 000000000000..ad336103c212
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBTopicInner.java
@@ -0,0 +1,399 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicebus.generated.models.EntityStatus;
+import com.azure.resourcemanager.servicebus.generated.models.MessageCountDetails;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** Description of topic resource. */
+@Fluent
+public final class SBTopicInner extends ProxyResource {
+ /*
+ * Properties of topic resource.
+ */
+ @JsonProperty(value = "properties")
+ private SBTopicProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties of topic resource.
+ *
+ * @return the innerProperties value.
+ */
+ private SBTopicProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the sizeInBytes property: Size of the topic, in bytes.
+ *
+ * @return the sizeInBytes value.
+ */
+ public Long sizeInBytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().sizeInBytes();
+ }
+
+ /**
+ * Get the createdAt property: Exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the accessedAt property: Last time the message was sent, or a request was received, for this topic.
+ *
+ * @return the accessedAt value.
+ */
+ public OffsetDateTime accessedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().accessedAt();
+ }
+
+ /**
+ * Get the subscriptionCount property: Number of subscriptions.
+ *
+ * @return the subscriptionCount value.
+ */
+ public Integer subscriptionCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().subscriptionCount();
+ }
+
+ /**
+ * Get the countDetails property: Message count details.
+ *
+ * @return the countDetails value.
+ */
+ public MessageCountDetails countDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().countDetails();
+ }
+
+ /**
+ * Get the defaultMessageTimeToLive property: ISO 8601 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @return the defaultMessageTimeToLive value.
+ */
+ public Duration defaultMessageTimeToLive() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultMessageTimeToLive();
+ }
+
+ /**
+ * Set the defaultMessageTimeToLive property: ISO 8601 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @param defaultMessageTimeToLive the defaultMessageTimeToLive value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withDefaultMessageTimeToLive(defaultMessageTimeToLive);
+ return this;
+ }
+
+ /**
+ * Get the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory
+ * allocated for the topic. Default is 1024.
+ *
+ * @return the maxSizeInMegabytes value.
+ */
+ public Integer maxSizeInMegabytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxSizeInMegabytes();
+ }
+
+ /**
+ * Set the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory
+ * allocated for the topic. Default is 1024.
+ *
+ * @param maxSizeInMegabytes the maxSizeInMegabytes value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withMaxSizeInMegabytes(Integer maxSizeInMegabytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withMaxSizeInMegabytes(maxSizeInMegabytes);
+ return this;
+ }
+
+ /**
+ * Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the topic. This property is only used in Premium today and default is 1024.
+ *
+ * @return the maxMessageSizeInKilobytes value.
+ */
+ public Long maxMessageSizeInKilobytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxMessageSizeInKilobytes();
+ }
+
+ /**
+ * Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the topic. This property is only used in Premium today and default is 1024.
+ *
+ * @param maxMessageSizeInKilobytes the maxMessageSizeInKilobytes value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withMaxMessageSizeInKilobytes(maxMessageSizeInKilobytes);
+ return this;
+ }
+
+ /**
+ * Get the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.
+ *
+ * @return the requiresDuplicateDetection value.
+ */
+ public Boolean requiresDuplicateDetection() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiresDuplicateDetection();
+ }
+
+ /**
+ * Set the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.
+ *
+ * @param requiresDuplicateDetection the requiresDuplicateDetection value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withRequiresDuplicateDetection(Boolean requiresDuplicateDetection) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withRequiresDuplicateDetection(requiresDuplicateDetection);
+ return this;
+ }
+
+ /**
+ * Get the duplicateDetectionHistoryTimeWindow property: ISO8601 timespan structure that defines the duration of the
+ * duplicate detection history. The default value is 10 minutes.
+ *
+ * @return the duplicateDetectionHistoryTimeWindow value.
+ */
+ public Duration duplicateDetectionHistoryTimeWindow() {
+ return this.innerProperties() == null ? null : this.innerProperties().duplicateDetectionHistoryTimeWindow();
+ }
+
+ /**
+ * Set the duplicateDetectionHistoryTimeWindow property: ISO8601 timespan structure that defines the duration of the
+ * duplicate detection history. The default value is 10 minutes.
+ *
+ * @param duplicateDetectionHistoryTimeWindow the duplicateDetectionHistoryTimeWindow value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withDuplicateDetectionHistoryTimeWindow(duplicateDetectionHistoryTimeWindow);
+ return this;
+ }
+
+ /**
+ * Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @return the enableBatchedOperations value.
+ */
+ public Boolean enableBatchedOperations() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableBatchedOperations();
+ }
+
+ /**
+ * Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @param enableBatchedOperations the enableBatchedOperations value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withEnableBatchedOperations(Boolean enableBatchedOperations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withEnableBatchedOperations(enableBatchedOperations);
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @param status the status value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withStatus(EntityStatus status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withStatus(status);
+ return this;
+ }
+
+ /**
+ * Get the supportOrdering property: Value that indicates whether the topic supports ordering.
+ *
+ * @return the supportOrdering value.
+ */
+ public Boolean supportOrdering() {
+ return this.innerProperties() == null ? null : this.innerProperties().supportOrdering();
+ }
+
+ /**
+ * Set the supportOrdering property: Value that indicates whether the topic supports ordering.
+ *
+ * @param supportOrdering the supportOrdering value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withSupportOrdering(Boolean supportOrdering) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withSupportOrdering(supportOrdering);
+ return this;
+ }
+
+ /**
+ * Get the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @return the autoDeleteOnIdle value.
+ */
+ public Duration autoDeleteOnIdle() {
+ return this.innerProperties() == null ? null : this.innerProperties().autoDeleteOnIdle();
+ }
+
+ /**
+ * Set the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @param autoDeleteOnIdle the autoDeleteOnIdle value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withAutoDeleteOnIdle(Duration autoDeleteOnIdle) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withAutoDeleteOnIdle(autoDeleteOnIdle);
+ return this;
+ }
+
+ /**
+ * Get the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple
+ * message brokers is enabled.
+ *
+ * @return the enablePartitioning value.
+ */
+ public Boolean enablePartitioning() {
+ return this.innerProperties() == null ? null : this.innerProperties().enablePartitioning();
+ }
+
+ /**
+ * Set the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple
+ * message brokers is enabled.
+ *
+ * @param enablePartitioning the enablePartitioning value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withEnablePartitioning(Boolean enablePartitioning) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withEnablePartitioning(enablePartitioning);
+ return this;
+ }
+
+ /**
+ * Get the enableExpress property: Value that indicates whether Express Entities are enabled. An express topic holds
+ * a message in memory temporarily before writing it to persistent storage.
+ *
+ * @return the enableExpress value.
+ */
+ public Boolean enableExpress() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableExpress();
+ }
+
+ /**
+ * Set the enableExpress property: Value that indicates whether Express Entities are enabled. An express topic holds
+ * a message in memory temporarily before writing it to persistent storage.
+ *
+ * @param enableExpress the enableExpress value to set.
+ * @return the SBTopicInner object itself.
+ */
+ public SBTopicInner withEnableExpress(Boolean enableExpress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SBTopicProperties();
+ }
+ this.innerProperties().withEnableExpress(enableExpress);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBTopicProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBTopicProperties.java
new file mode 100644
index 000000000000..847b74b67120
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/SBTopicProperties.java
@@ -0,0 +1,432 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicebus.generated.models.EntityStatus;
+import com.azure.resourcemanager.servicebus.generated.models.MessageCountDetails;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** The Topic Properties definition. */
+@Fluent
+public final class SBTopicProperties {
+ /*
+ * Size of the topic, in bytes.
+ */
+ @JsonProperty(value = "sizeInBytes", access = JsonProperty.Access.WRITE_ONLY)
+ private Long sizeInBytes;
+
+ /*
+ * Exact time the message was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The exact time the message was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Last time the message was sent, or a request was received, for this
+ * topic.
+ */
+ @JsonProperty(value = "accessedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime accessedAt;
+
+ /*
+ * Number of subscriptions.
+ */
+ @JsonProperty(value = "subscriptionCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer subscriptionCount;
+
+ /*
+ * Message count details
+ */
+ @JsonProperty(value = "countDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private MessageCountDetails countDetails;
+
+ /*
+ * ISO 8601 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent
+ * to Service Bus. This is the default value used when TimeToLive is not
+ * set on a message itself.
+ */
+ @JsonProperty(value = "defaultMessageTimeToLive")
+ private Duration defaultMessageTimeToLive;
+
+ /*
+ * Maximum size of the topic in megabytes, which is the size of the memory
+ * allocated for the topic. Default is 1024.
+ */
+ @JsonProperty(value = "maxSizeInMegabytes")
+ private Integer maxSizeInMegabytes;
+
+ /*
+ * Maximum size (in KB) of the message payload that can be accepted by the
+ * topic. This property is only used in Premium today and default is 1024.
+ */
+ @JsonProperty(value = "maxMessageSizeInKilobytes")
+ private Long maxMessageSizeInKilobytes;
+
+ /*
+ * Value indicating if this topic requires duplicate detection.
+ */
+ @JsonProperty(value = "requiresDuplicateDetection")
+ private Boolean requiresDuplicateDetection;
+
+ /*
+ * ISO8601 timespan structure that defines the duration of the duplicate
+ * detection history. The default value is 10 minutes.
+ */
+ @JsonProperty(value = "duplicateDetectionHistoryTimeWindow")
+ private Duration duplicateDetectionHistoryTimeWindow;
+
+ /*
+ * Value that indicates whether server-side batched operations are enabled.
+ */
+ @JsonProperty(value = "enableBatchedOperations")
+ private Boolean enableBatchedOperations;
+
+ /*
+ * Enumerates the possible values for the status of a messaging entity.
+ */
+ @JsonProperty(value = "status")
+ private EntityStatus status;
+
+ /*
+ * Value that indicates whether the topic supports ordering.
+ */
+ @JsonProperty(value = "supportOrdering")
+ private Boolean supportOrdering;
+
+ /*
+ * ISO 8601 timespan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ */
+ @JsonProperty(value = "autoDeleteOnIdle")
+ private Duration autoDeleteOnIdle;
+
+ /*
+ * Value that indicates whether the topic to be partitioned across multiple
+ * message brokers is enabled.
+ */
+ @JsonProperty(value = "enablePartitioning")
+ private Boolean enablePartitioning;
+
+ /*
+ * Value that indicates whether Express Entities are enabled. An express
+ * topic holds a message in memory temporarily before writing it to
+ * persistent storage.
+ */
+ @JsonProperty(value = "enableExpress")
+ private Boolean enableExpress;
+
+ /**
+ * Get the sizeInBytes property: Size of the topic, in bytes.
+ *
+ * @return the sizeInBytes value.
+ */
+ public Long sizeInBytes() {
+ return this.sizeInBytes;
+ }
+
+ /**
+ * Get the createdAt property: Exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the accessedAt property: Last time the message was sent, or a request was received, for this topic.
+ *
+ * @return the accessedAt value.
+ */
+ public OffsetDateTime accessedAt() {
+ return this.accessedAt;
+ }
+
+ /**
+ * Get the subscriptionCount property: Number of subscriptions.
+ *
+ * @return the subscriptionCount value.
+ */
+ public Integer subscriptionCount() {
+ return this.subscriptionCount;
+ }
+
+ /**
+ * Get the countDetails property: Message count details.
+ *
+ * @return the countDetails value.
+ */
+ public MessageCountDetails countDetails() {
+ return this.countDetails;
+ }
+
+ /**
+ * Get the defaultMessageTimeToLive property: ISO 8601 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @return the defaultMessageTimeToLive value.
+ */
+ public Duration defaultMessageTimeToLive() {
+ return this.defaultMessageTimeToLive;
+ }
+
+ /**
+ * Set the defaultMessageTimeToLive property: ISO 8601 Default message timespan to live value. This is the duration
+ * after which the message expires, starting from when the message is sent to Service Bus. This is the default value
+ * used when TimeToLive is not set on a message itself.
+ *
+ * @param defaultMessageTimeToLive the defaultMessageTimeToLive value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) {
+ this.defaultMessageTimeToLive = defaultMessageTimeToLive;
+ return this;
+ }
+
+ /**
+ * Get the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory
+ * allocated for the topic. Default is 1024.
+ *
+ * @return the maxSizeInMegabytes value.
+ */
+ public Integer maxSizeInMegabytes() {
+ return this.maxSizeInMegabytes;
+ }
+
+ /**
+ * Set the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory
+ * allocated for the topic. Default is 1024.
+ *
+ * @param maxSizeInMegabytes the maxSizeInMegabytes value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withMaxSizeInMegabytes(Integer maxSizeInMegabytes) {
+ this.maxSizeInMegabytes = maxSizeInMegabytes;
+ return this;
+ }
+
+ /**
+ * Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the topic. This property is only used in Premium today and default is 1024.
+ *
+ * @return the maxMessageSizeInKilobytes value.
+ */
+ public Long maxMessageSizeInKilobytes() {
+ return this.maxMessageSizeInKilobytes;
+ }
+
+ /**
+ * Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by
+ * the topic. This property is only used in Premium today and default is 1024.
+ *
+ * @param maxMessageSizeInKilobytes the maxMessageSizeInKilobytes value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes) {
+ this.maxMessageSizeInKilobytes = maxMessageSizeInKilobytes;
+ return this;
+ }
+
+ /**
+ * Get the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.
+ *
+ * @return the requiresDuplicateDetection value.
+ */
+ public Boolean requiresDuplicateDetection() {
+ return this.requiresDuplicateDetection;
+ }
+
+ /**
+ * Set the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.
+ *
+ * @param requiresDuplicateDetection the requiresDuplicateDetection value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withRequiresDuplicateDetection(Boolean requiresDuplicateDetection) {
+ this.requiresDuplicateDetection = requiresDuplicateDetection;
+ return this;
+ }
+
+ /**
+ * Get the duplicateDetectionHistoryTimeWindow property: ISO8601 timespan structure that defines the duration of the
+ * duplicate detection history. The default value is 10 minutes.
+ *
+ * @return the duplicateDetectionHistoryTimeWindow value.
+ */
+ public Duration duplicateDetectionHistoryTimeWindow() {
+ return this.duplicateDetectionHistoryTimeWindow;
+ }
+
+ /**
+ * Set the duplicateDetectionHistoryTimeWindow property: ISO8601 timespan structure that defines the duration of the
+ * duplicate detection history. The default value is 10 minutes.
+ *
+ * @param duplicateDetectionHistoryTimeWindow the duplicateDetectionHistoryTimeWindow value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) {
+ this.duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow;
+ return this;
+ }
+
+ /**
+ * Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @return the enableBatchedOperations value.
+ */
+ public Boolean enableBatchedOperations() {
+ return this.enableBatchedOperations;
+ }
+
+ /**
+ * Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are
+ * enabled.
+ *
+ * @param enableBatchedOperations the enableBatchedOperations value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withEnableBatchedOperations(Boolean enableBatchedOperations) {
+ this.enableBatchedOperations = enableBatchedOperations;
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of a messaging entity.
+ *
+ * @param status the status value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withStatus(EntityStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the supportOrdering property: Value that indicates whether the topic supports ordering.
+ *
+ * @return the supportOrdering value.
+ */
+ public Boolean supportOrdering() {
+ return this.supportOrdering;
+ }
+
+ /**
+ * Set the supportOrdering property: Value that indicates whether the topic supports ordering.
+ *
+ * @param supportOrdering the supportOrdering value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withSupportOrdering(Boolean supportOrdering) {
+ this.supportOrdering = supportOrdering;
+ return this;
+ }
+
+ /**
+ * Get the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @return the autoDeleteOnIdle value.
+ */
+ public Duration autoDeleteOnIdle() {
+ return this.autoDeleteOnIdle;
+ }
+
+ /**
+ * Set the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically
+ * deleted. The minimum duration is 5 minutes.
+ *
+ * @param autoDeleteOnIdle the autoDeleteOnIdle value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withAutoDeleteOnIdle(Duration autoDeleteOnIdle) {
+ this.autoDeleteOnIdle = autoDeleteOnIdle;
+ return this;
+ }
+
+ /**
+ * Get the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple
+ * message brokers is enabled.
+ *
+ * @return the enablePartitioning value.
+ */
+ public Boolean enablePartitioning() {
+ return this.enablePartitioning;
+ }
+
+ /**
+ * Set the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple
+ * message brokers is enabled.
+ *
+ * @param enablePartitioning the enablePartitioning value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withEnablePartitioning(Boolean enablePartitioning) {
+ this.enablePartitioning = enablePartitioning;
+ return this;
+ }
+
+ /**
+ * Get the enableExpress property: Value that indicates whether Express Entities are enabled. An express topic holds
+ * a message in memory temporarily before writing it to persistent storage.
+ *
+ * @return the enableExpress value.
+ */
+ public Boolean enableExpress() {
+ return this.enableExpress;
+ }
+
+ /**
+ * Set the enableExpress property: Value that indicates whether Express Entities are enabled. An express topic holds
+ * a message in memory temporarily before writing it to persistent storage.
+ *
+ * @param enableExpress the enableExpress value to set.
+ * @return the SBTopicProperties object itself.
+ */
+ public SBTopicProperties withEnableExpress(Boolean enableExpress) {
+ this.enableExpress = enableExpress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (countDetails() != null) {
+ countDetails().validate();
+ }
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/UserAssignedIdentityProperties.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/UserAssignedIdentityProperties.java
new file mode 100644
index 000000000000..842364a7d39d
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/UserAssignedIdentityProperties.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The UserAssignedIdentityProperties model. */
+@Fluent
+public final class UserAssignedIdentityProperties {
+ /*
+ * ARM ID of user Identity selected for encryption
+ */
+ @JsonProperty(value = "userAssignedIdentity")
+ private String userAssignedIdentity;
+
+ /**
+ * Get the userAssignedIdentity property: ARM ID of user Identity selected for encryption.
+ *
+ * @return the userAssignedIdentity value.
+ */
+ public String userAssignedIdentity() {
+ return this.userAssignedIdentity;
+ }
+
+ /**
+ * Set the userAssignedIdentity property: ARM ID of user Identity selected for encryption.
+ *
+ * @param userAssignedIdentity the userAssignedIdentity value to set.
+ * @return the UserAssignedIdentityProperties object itself.
+ */
+ public UserAssignedIdentityProperties withUserAssignedIdentity(String userAssignedIdentity) {
+ this.userAssignedIdentity = userAssignedIdentity;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/package-info.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/package-info.java
new file mode 100644
index 000000000000..aebc6cdfc4a0
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the inner data models for ServiceBusManagementClient. Azure Service Bus client for managing
+ * Namespace.
+ */
+package com.azure.resourcemanager.servicebus.generated.fluent.models;
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/package-info.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/package-info.java
new file mode 100644
index 000000000000..8904d3e4bed6
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the service clients for ServiceBusManagementClient. Azure Service Bus client for managing
+ * Namespace.
+ */
+package com.azure.resourcemanager.servicebus.generated.fluent;
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/AccessKeysImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/AccessKeysImpl.java
new file mode 100644
index 000000000000..160cd328ea14
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/AccessKeysImpl.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.models.AccessKeys;
+
+public final class AccessKeysImpl implements AccessKeys {
+ private AccessKeysInner innerObject;
+
+ private final com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager;
+
+ AccessKeysImpl(
+ AccessKeysInner innerObject, com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String primaryConnectionString() {
+ return this.innerModel().primaryConnectionString();
+ }
+
+ public String secondaryConnectionString() {
+ return this.innerModel().secondaryConnectionString();
+ }
+
+ public String aliasPrimaryConnectionString() {
+ return this.innerModel().aliasPrimaryConnectionString();
+ }
+
+ public String aliasSecondaryConnectionString() {
+ return this.innerModel().aliasSecondaryConnectionString();
+ }
+
+ public String primaryKey() {
+ return this.innerModel().primaryKey();
+ }
+
+ public String secondaryKey() {
+ return this.innerModel().secondaryKey();
+ }
+
+ public String keyName() {
+ return this.innerModel().keyName();
+ }
+
+ public AccessKeysInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicebus.generated.ServiceBusManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/ArmDisasterRecoveryImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/ArmDisasterRecoveryImpl.java
new file mode 100644
index 000000000000..aa0835fa60bd
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/ArmDisasterRecoveryImpl.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.ArmDisasterRecoveryInner;
+import com.azure.resourcemanager.servicebus.generated.models.ArmDisasterRecovery;
+import com.azure.resourcemanager.servicebus.generated.models.FailoverProperties;
+import com.azure.resourcemanager.servicebus.generated.models.ProvisioningStateDR;
+import com.azure.resourcemanager.servicebus.generated.models.RoleDisasterRecovery;
+
+public final class ArmDisasterRecoveryImpl
+ implements ArmDisasterRecovery, ArmDisasterRecovery.Definition, ArmDisasterRecovery.Update {
+ private ArmDisasterRecoveryInner innerObject;
+
+ private final com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public ProvisioningStateDR provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public Long pendingReplicationOperationsCount() {
+ return this.innerModel().pendingReplicationOperationsCount();
+ }
+
+ public String partnerNamespace() {
+ return this.innerModel().partnerNamespace();
+ }
+
+ public String alternateName() {
+ return this.innerModel().alternateName();
+ }
+
+ public RoleDisasterRecovery role() {
+ return this.innerModel().role();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ArmDisasterRecoveryInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicebus.generated.ServiceBusManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String namespaceName;
+
+ private String alias;
+
+ public ArmDisasterRecoveryImpl withExistingNamespace(String resourceGroupName, String namespaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.namespaceName = namespaceName;
+ return this;
+ }
+
+ public ArmDisasterRecovery create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArmDisasterRecovery create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ArmDisasterRecoveryImpl(
+ String name, com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerObject = new ArmDisasterRecoveryInner();
+ this.serviceManager = serviceManager;
+ this.alias = name;
+ }
+
+ public ArmDisasterRecoveryImpl update() {
+ return this;
+ }
+
+ public ArmDisasterRecovery apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArmDisasterRecovery apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ArmDisasterRecoveryImpl(
+ ArmDisasterRecoveryInner innerObject,
+ com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.namespaceName = Utils.getValueFromIdByName(innerObject.id(), "namespaces");
+ this.alias = Utils.getValueFromIdByName(innerObject.id(), "disasterRecoveryConfigs");
+ }
+
+ public ArmDisasterRecovery refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .getWithResponse(resourceGroupName, namespaceName, alias, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArmDisasterRecovery refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .getWithResponse(resourceGroupName, namespaceName, alias, context)
+ .getValue();
+ return this;
+ }
+
+ public void breakPairing() {
+ serviceManager.disasterRecoveryConfigs().breakPairing(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response breakPairingWithResponse(Context context) {
+ return serviceManager
+ .disasterRecoveryConfigs()
+ .breakPairingWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ public void failOver() {
+ serviceManager.disasterRecoveryConfigs().failOver(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response failOverWithResponse(FailoverProperties parameters, Context context) {
+ return serviceManager
+ .disasterRecoveryConfigs()
+ .failOverWithResponse(resourceGroupName, namespaceName, alias, parameters, context);
+ }
+
+ public ArmDisasterRecoveryImpl withPartnerNamespace(String partnerNamespace) {
+ this.innerModel().withPartnerNamespace(partnerNamespace);
+ return this;
+ }
+
+ public ArmDisasterRecoveryImpl withAlternateName(String alternateName) {
+ this.innerModel().withAlternateName(alternateName);
+ return this;
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/CheckNameAvailabilityResultImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/CheckNameAvailabilityResultImpl.java
new file mode 100644
index 000000000000..bcb2fad2862b
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/CheckNameAvailabilityResultImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.resourcemanager.servicebus.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.servicebus.generated.models.CheckNameAvailabilityResult;
+import com.azure.resourcemanager.servicebus.generated.models.UnavailableReason;
+
+public final class CheckNameAvailabilityResultImpl implements CheckNameAvailabilityResult {
+ private CheckNameAvailabilityResultInner innerObject;
+
+ private final com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager;
+
+ CheckNameAvailabilityResultImpl(
+ CheckNameAvailabilityResultInner innerObject,
+ com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public UnavailableReason reason() {
+ return this.innerModel().reason();
+ }
+
+ public CheckNameAvailabilityResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicebus.generated.ServiceBusManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/DisasterRecoveryConfigsClientImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/DisasterRecoveryConfigsClientImpl.java
new file mode 100644
index 000000000000..6ed1a6691c0d
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/DisasterRecoveryConfigsClientImpl.java
@@ -0,0 +1,2167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.servicebus.generated.fluent.DisasterRecoveryConfigsClient;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.ArmDisasterRecoveryInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBAuthorizationRuleInner;
+import com.azure.resourcemanager.servicebus.generated.models.ArmDisasterRecoveryListResult;
+import com.azure.resourcemanager.servicebus.generated.models.CheckNameAvailability;
+import com.azure.resourcemanager.servicebus.generated.models.FailoverProperties;
+import com.azure.resourcemanager.servicebus.generated.models.SBAuthorizationRuleListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DisasterRecoveryConfigsClient. */
+public final class DisasterRecoveryConfigsClientImpl implements DisasterRecoveryConfigsClient {
+ /** The proxy service used to perform REST calls. */
+ private final DisasterRecoveryConfigsService service;
+
+ /** The service client containing this operation class. */
+ private final ServiceBusManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DisasterRecoveryConfigsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DisasterRecoveryConfigsClientImpl(ServiceBusManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(DisasterRecoveryConfigsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ServiceBusManagementClientDisasterRecoveryConfigs to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ServiceBusManagement")
+ private interface DisasterRecoveryConfigsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") ArmDisasterRecoveryInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> breakPairing(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> failOver(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") FailoverProperties parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAuthorizationRules(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules"
+ + "/{authorizationRuleName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getAuthorizationRule(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @PathParam("authorizationRuleName") String authorizationRuleName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules"
+ + "/{authorizationRuleName}/listKeys")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listKeys(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("alias") String alias,
+ @PathParam("authorizationRuleName") String authorizationRuleName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> checkNameAvailability(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") CheckNameAvailability parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAuthorizationRulesNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String namespaceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String namespaceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String namespaceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, namespaceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String namespaceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, namespaceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String namespaceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, namespaceName));
+ }
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Alias(Disaster Recovery configurations) as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String namespaceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, namespaceName, context));
+ }
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String namespaceName,
+ String alias,
+ ArmDisasterRecoveryInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, alias, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ArmDisasterRecoveryInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, namespaceName, alias, parameters).block();
+ }
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String alias,
+ ArmDisasterRecoveryInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, namespaceName, alias, parameters, context).block();
+ }
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String alias) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String namespaceName, String alias) {
+ return deleteWithResponseAsync(resourceGroupName, namespaceName, alias)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String namespaceName, String alias) {
+ deleteAsync(resourceGroupName, namespaceName, alias).block();
+ }
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, namespaceName, alias, context).block();
+ }
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String namespaceName, String alias) {
+ return getWithResponseAsync(resourceGroupName, namespaceName, alias)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ArmDisasterRecoveryInner get(String resourceGroupName, String namespaceName, String alias) {
+ return getAsync(resourceGroupName, namespaceName, alias).block();
+ }
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return getWithResponseAsync(resourceGroupName, namespaceName, alias, context).block();
+ }
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> breakPairingWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .breakPairing(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> breakPairingWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .breakPairing(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono breakPairingAsync(String resourceGroupName, String namespaceName, String alias) {
+ return breakPairingWithResponseAsync(resourceGroupName, namespaceName, alias)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void breakPairing(String resourceGroupName, String namespaceName, String alias) {
+ breakPairingAsync(resourceGroupName, namespaceName, alias).block();
+ }
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response breakPairingWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return breakPairingWithResponseAsync(resourceGroupName, namespaceName, alias, context).block();
+ }
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> failOverWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, FailoverProperties parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .failOver(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> failOverWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, FailoverProperties parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .failOver(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono failOverAsync(
+ String resourceGroupName, String namespaceName, String alias, FailoverProperties parameters) {
+ return failOverWithResponseAsync(resourceGroupName, namespaceName, alias, parameters)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono failOverAsync(String resourceGroupName, String namespaceName, String alias) {
+ final FailoverProperties parameters = null;
+ return failOverWithResponseAsync(resourceGroupName, namespaceName, alias, parameters)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void failOver(String resourceGroupName, String namespaceName, String alias) {
+ final FailoverProperties parameters = null;
+ failOverAsync(resourceGroupName, namespaceName, alias, parameters).block();
+ }
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response failOverWithResponse(
+ String resourceGroupName, String namespaceName, String alias, FailoverProperties parameters, Context context) {
+ return failOverWithResponseAsync(resourceGroupName, namespaceName, alias, parameters, context).block();
+ }
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAuthorizationRulesSinglePageAsync(
+ String resourceGroupName, String namespaceName, String alias) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listAuthorizationRules(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAuthorizationRulesSinglePageAsync(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAuthorizationRules(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAuthorizationRulesAsync(
+ String resourceGroupName, String namespaceName, String alias) {
+ return new PagedFlux<>(
+ () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, alias),
+ nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAuthorizationRulesAsync(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return new PagedFlux<>(
+ () -> listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName, alias, context),
+ nextLink -> listAuthorizationRulesNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias) {
+ return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, alias));
+ }
+
+ /**
+ * Gets the authorization rules for a namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the authorization rules for a namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return new PagedIterable<>(listAuthorizationRulesAsync(resourceGroupName, namespaceName, alias, context));
+ }
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAuthorizationRuleWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (authorizationRuleName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getAuthorizationRule(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ authorizationRuleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAuthorizationRuleWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (authorizationRuleName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getAuthorizationRule(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ authorizationRuleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAuthorizationRuleAsync(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ return getAuthorizationRuleWithResponseAsync(resourceGroupName, namespaceName, alias, authorizationRuleName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SBAuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ return getAuthorizationRuleAsync(resourceGroupName, namespaceName, alias, authorizationRuleName).block();
+ }
+
+ /**
+ * Gets an authorization rule for a namespace by rule name.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an authorization rule for a namespace by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) {
+ return getAuthorizationRuleWithResponseAsync(
+ resourceGroupName, namespaceName, alias, authorizationRuleName, context)
+ .block();
+ }
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listKeysWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (authorizationRuleName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listKeys(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ authorizationRuleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listKeysWithResponseAsync(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (alias == null) {
+ return Mono.error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
+ }
+ if (authorizationRuleName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listKeys(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ alias,
+ authorizationRuleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listKeysAsync(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ return listKeysWithResponseAsync(resourceGroupName, namespaceName, alias, authorizationRuleName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AccessKeysInner listKeys(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ return listKeysAsync(resourceGroupName, namespaceName, alias, authorizationRuleName).block();
+ }
+
+ /**
+ * Gets the primary and secondary connection strings for the namespace.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the primary and secondary connection strings for the namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listKeysWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) {
+ return listKeysWithResponseAsync(resourceGroupName, namespaceName, alias, authorizationRuleName, context)
+ .block();
+ }
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono checkNameAvailabilityAsync(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters) {
+ return checkNameAvailabilityWithResponseAsync(resourceGroupName, namespaceName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CheckNameAvailabilityResultInner checkNameAvailability(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters) {
+ return checkNameAvailabilityAsync(resourceGroupName, namespaceName, parameters).block();
+ }
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return description of a Check Name availability request properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response checkNameAvailabilityWithResponse(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters, Context context) {
+ return checkNameAvailabilityWithResponseAsync(resourceGroupName, namespaceName, parameters, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of the List Alias(Disaster Recovery configuration) operation along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of the List Alias(Disaster Recovery configuration) operation along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to the List Namespace operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAuthorizationRulesNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listAuthorizationRulesNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to the List Namespace operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAuthorizationRulesNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAuthorizationRulesNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/DisasterRecoveryConfigsImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/DisasterRecoveryConfigsImpl.java
new file mode 100644
index 000000000000..9e465c35e62a
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/DisasterRecoveryConfigsImpl.java
@@ -0,0 +1,327 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.servicebus.generated.fluent.DisasterRecoveryConfigsClient;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.ArmDisasterRecoveryInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.SBAuthorizationRuleInner;
+import com.azure.resourcemanager.servicebus.generated.models.AccessKeys;
+import com.azure.resourcemanager.servicebus.generated.models.ArmDisasterRecovery;
+import com.azure.resourcemanager.servicebus.generated.models.CheckNameAvailability;
+import com.azure.resourcemanager.servicebus.generated.models.CheckNameAvailabilityResult;
+import com.azure.resourcemanager.servicebus.generated.models.DisasterRecoveryConfigs;
+import com.azure.resourcemanager.servicebus.generated.models.FailoverProperties;
+import com.azure.resourcemanager.servicebus.generated.models.SBAuthorizationRule;
+
+public final class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs {
+ private static final ClientLogger LOGGER = new ClientLogger(DisasterRecoveryConfigsImpl.class);
+
+ private final DisasterRecoveryConfigsClient innerClient;
+
+ private final com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager;
+
+ public DisasterRecoveryConfigsImpl(
+ DisasterRecoveryConfigsClient innerClient,
+ com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String namespaceName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, namespaceName);
+ return Utils.mapPage(inner, inner1 -> new ArmDisasterRecoveryImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String namespaceName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, namespaceName, context);
+ return Utils.mapPage(inner, inner1 -> new ArmDisasterRecoveryImpl(inner1, this.manager()));
+ }
+
+ public void delete(String resourceGroupName, String namespaceName, String alias) {
+ this.serviceClient().delete(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ public ArmDisasterRecovery get(String resourceGroupName, String namespaceName, String alias) {
+ ArmDisasterRecoveryInner inner = this.serviceClient().get(resourceGroupName, namespaceName, alias);
+ if (inner != null) {
+ return new ArmDisasterRecoveryImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, namespaceName, alias, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ArmDisasterRecoveryImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void breakPairing(String resourceGroupName, String namespaceName, String alias) {
+ this.serviceClient().breakPairing(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response breakPairingWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ return this.serviceClient().breakPairingWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ public void failOver(String resourceGroupName, String namespaceName, String alias) {
+ this.serviceClient().failOver(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response failOverWithResponse(
+ String resourceGroupName, String namespaceName, String alias, FailoverProperties parameters, Context context) {
+ return this.serviceClient().failOverWithResponse(resourceGroupName, namespaceName, alias, parameters, context);
+ }
+
+ public PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias) {
+ PagedIterable inner =
+ this.serviceClient().listAuthorizationRules(resourceGroupName, namespaceName, alias);
+ return Utils.mapPage(inner, inner1 -> new SBAuthorizationRuleImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listAuthorizationRules(resourceGroupName, namespaceName, alias, context);
+ return Utils.mapPage(inner, inner1 -> new SBAuthorizationRuleImpl(inner1, this.manager()));
+ }
+
+ public SBAuthorizationRule getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ SBAuthorizationRuleInner inner =
+ this.serviceClient().getAuthorizationRule(resourceGroupName, namespaceName, alias, authorizationRuleName);
+ if (inner != null) {
+ return new SBAuthorizationRuleImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getAuthorizationRuleWithResponse(
+ resourceGroupName, namespaceName, alias, authorizationRuleName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new SBAuthorizationRuleImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AccessKeys listKeys(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName) {
+ AccessKeysInner inner =
+ this.serviceClient().listKeys(resourceGroupName, namespaceName, alias, authorizationRuleName);
+ if (inner != null) {
+ return new AccessKeysImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response listKeysWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .listKeysWithResponse(resourceGroupName, namespaceName, alias, authorizationRuleName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AccessKeysImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CheckNameAvailabilityResult checkNameAvailability(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters) {
+ CheckNameAvailabilityResultInner inner =
+ this.serviceClient().checkNameAvailability(resourceGroupName, namespaceName, parameters);
+ if (inner != null) {
+ return new CheckNameAvailabilityResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response checkNameAvailabilityWithResponse(
+ String resourceGroupName, String namespaceName, CheckNameAvailability parameters, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .checkNameAvailabilityWithResponse(resourceGroupName, namespaceName, parameters, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CheckNameAvailabilityResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ArmDisasterRecovery getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String alias = Utils.getValueFromIdByName(id, "disasterRecoveryConfigs");
+ if (alias == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'disasterRecoveryConfigs'.",
+ id)));
+ }
+ return this.getWithResponse(resourceGroupName, namespaceName, alias, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String alias = Utils.getValueFromIdByName(id, "disasterRecoveryConfigs");
+ if (alias == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'disasterRecoveryConfigs'.",
+ id)));
+ }
+ return this.getWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String alias = Utils.getValueFromIdByName(id, "disasterRecoveryConfigs");
+ if (alias == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'disasterRecoveryConfigs'.",
+ id)));
+ }
+ this.deleteWithResponse(resourceGroupName, namespaceName, alias, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String alias = Utils.getValueFromIdByName(id, "disasterRecoveryConfigs");
+ if (alias == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'disasterRecoveryConfigs'.",
+ id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ private DisasterRecoveryConfigsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.servicebus.generated.ServiceBusManager manager() {
+ return this.serviceManager;
+ }
+
+ public ArmDisasterRecoveryImpl define(String name) {
+ return new ArmDisasterRecoveryImpl(name, this.manager());
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/MigrationConfigPropertiesImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/MigrationConfigPropertiesImpl.java
new file mode 100644
index 000000000000..42db9a497098
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/MigrationConfigPropertiesImpl.java
@@ -0,0 +1,171 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.MigrationConfigPropertiesInner;
+import com.azure.resourcemanager.servicebus.generated.models.MigrationConfigProperties;
+import com.azure.resourcemanager.servicebus.generated.models.MigrationConfigurationName;
+
+public final class MigrationConfigPropertiesImpl
+ implements MigrationConfigProperties, MigrationConfigProperties.Definition {
+ private MigrationConfigPropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager;
+
+ MigrationConfigPropertiesImpl(
+ MigrationConfigPropertiesInner innerObject,
+ com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public Long pendingReplicationOperationsCount() {
+ return this.innerModel().pendingReplicationOperationsCount();
+ }
+
+ public String targetNamespace() {
+ return this.innerModel().targetNamespace();
+ }
+
+ public String postMigrationName() {
+ return this.innerModel().postMigrationName();
+ }
+
+ public String migrationState() {
+ return this.innerModel().migrationState();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public MigrationConfigPropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicebus.generated.ServiceBusManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String namespaceName;
+
+ private MigrationConfigurationName configName;
+
+ public MigrationConfigPropertiesImpl withExistingNamespace(String resourceGroupName, String namespaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.namespaceName = namespaceName;
+ return this;
+ }
+
+ public MigrationConfigProperties create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMigrationConfigs()
+ .createAndStartMigration(resourceGroupName, namespaceName, configName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public MigrationConfigProperties create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMigrationConfigs()
+ .createAndStartMigration(resourceGroupName, namespaceName, configName, this.innerModel(), context);
+ return this;
+ }
+
+ MigrationConfigPropertiesImpl(
+ MigrationConfigurationName name,
+ com.azure.resourcemanager.servicebus.generated.ServiceBusManager serviceManager) {
+ this.innerObject = new MigrationConfigPropertiesInner();
+ this.serviceManager = serviceManager;
+ this.configName = name;
+ }
+
+ public MigrationConfigProperties refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMigrationConfigs()
+ .getWithResponse(resourceGroupName, namespaceName, configName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public MigrationConfigProperties refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMigrationConfigs()
+ .getWithResponse(resourceGroupName, namespaceName, configName, context)
+ .getValue();
+ return this;
+ }
+
+ public void completeMigration() {
+ serviceManager.migrationConfigs().completeMigration(resourceGroupName, namespaceName, configName);
+ }
+
+ public Response completeMigrationWithResponse(Context context) {
+ return serviceManager
+ .migrationConfigs()
+ .completeMigrationWithResponse(resourceGroupName, namespaceName, configName, context);
+ }
+
+ public void revert() {
+ serviceManager.migrationConfigs().revert(resourceGroupName, namespaceName, configName);
+ }
+
+ public Response revertWithResponse(Context context) {
+ return serviceManager
+ .migrationConfigs()
+ .revertWithResponse(resourceGroupName, namespaceName, configName, context);
+ }
+
+ public MigrationConfigPropertiesImpl withTargetNamespace(String targetNamespace) {
+ this.innerModel().withTargetNamespace(targetNamespace);
+ return this;
+ }
+
+ public MigrationConfigPropertiesImpl withPostMigrationName(String postMigrationName) {
+ this.innerModel().withPostMigrationName(postMigrationName);
+ return this;
+ }
+}
diff --git a/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/MigrationConfigsClientImpl.java b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/MigrationConfigsClientImpl.java
new file mode 100644
index 000000000000..95a992f6378d
--- /dev/null
+++ b/sdk/servicebus/azure-resourcemanager-servicebus-generated/src/main/java/com/azure/resourcemanager/servicebus/generated/implementation/MigrationConfigsClientImpl.java
@@ -0,0 +1,1402 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicebus.generated.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.servicebus.generated.fluent.MigrationConfigsClient;
+import com.azure.resourcemanager.servicebus.generated.fluent.models.MigrationConfigPropertiesInner;
+import com.azure.resourcemanager.servicebus.generated.models.MigrationConfigListResult;
+import com.azure.resourcemanager.servicebus.generated.models.MigrationConfigurationName;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in MigrationConfigsClient. */
+public final class MigrationConfigsClientImpl implements MigrationConfigsClient {
+ /** The proxy service used to perform REST calls. */
+ private final MigrationConfigsService service;
+
+ /** The service client containing this operation class. */
+ private final ServiceBusManagementClientImpl client;
+
+ /**
+ * Initializes an instance of MigrationConfigsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ MigrationConfigsClientImpl(ServiceBusManagementClientImpl client) {
+ this.service =
+ RestProxy.create(MigrationConfigsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ServiceBusManagementClientMigrationConfigs to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ServiceBusManagement")
+ private interface MigrationConfigsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/migrationConfigurations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/migrationConfigurations/{configName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createAndStartMigration(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("configName") MigrationConfigurationName configName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") MigrationConfigPropertiesInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/migrationConfigurations/{configName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("configName") MigrationConfigurationName configName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/migrationConfigurations/{configName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("configName") MigrationConfigurationName configName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/migrationConfigurations/{configName}/upgrade")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> completeMigration(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("configName") MigrationConfigurationName configName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus"
+ + "/namespaces/{namespaceName}/migrationConfigurations/{configName}/revert")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> revert(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("configName") MigrationConfigurationName configName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all migrationConfigurations.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all migrationConfigurations along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String namespaceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all migrationConfigurations.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all migrationConfigurations along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String namespaceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all migrationConfigurations.
+ *
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
+ * @param namespaceName The namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all migrationConfigurations as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux