public Node withRestart(Generation generation) {
        Allocation allocation = requireAllocation("Cannot set restart generation");
        return with(allocation.withRestart(generation));
    }
Returns a copy of this with the restart generation set to generation
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java