code: public void failoverAllowDataLoss(String resourceGroupName, String serverName, String databaseName, String linkId) {
          failoverAllowDataLossWithServiceResponseAsync(resourceGroupName, serverName, databaseName, linkId).toBlocking().last().body();
      }
docs: Sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss.
  
  @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  @param serverName The name of the server.
  @param databaseName The name of the database that has the replication link to be failed over.
  @param linkId The ID of the replication link to be failed over.
  @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