code: public T setAppResource(String resource) {
      checkNotNull(resource, "resource");
      builder.appResource = resource;
      return self();
    }
docs: Set the main application resource. This should be the location of a jar file for Scala/Java
  applications, or a python script for PySpark applications.
  
  @param resource Path to the main application resource.
  @return This launcher.