code: public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String notificationHubName, String authorizationRuleName, SharedAccessAuthorizationRuleProperties properties) {
          return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, properties).toBlocking().single().body();
      }
docs: Creates/Updates an authorization rule for a NotificationHub.
  
  @param resourceGroupName The name of the resource group.
  @param namespaceName The namespace name.
  @param notificationHubName The notification hub name.
  @param authorizationRuleName Authorization Rule Name.
  @param properties Properties of the Namespace AuthorizationRules.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the SharedAccessAuthorizationRuleResourceInner object if successful.