code: public OperationFuture<Server> setAutoscalePolicyOnServer(AutoscalePolicy autoscalePolicy, Server server) {
          autoscalePolicyClient.setAutoscalePolicyOnServer(
              serverService
                  .findByRef(server)
                  .getId(),
              new SetAutoscalePolicyRequest()
                  .id(
                      findByRef(autoscalePolicy).getId()
                  )
          );
  
          return new OperationFuture<>(server, new NoWaitingJobFuture());
      }
docs: Set autoscale policy on server
  
  @param autoscalePolicy autoscale policy
  @param server server
  @return OperationFuture wrapper for autoscalePolicy