public PostBatches build()

in src/main/java/com/microsoft/azure/spark/tools/restapi/livy/batches/api/PostBatches.java [404:433]


        public PostBatches build() {
            String file = this.artifactUri;
            String mainClassName = this.className;

            if (StringUtils.isBlank(file)) {
                throw new IllegalArgumentException("Can't find Spark job artifact URI or local artifact to submit");
            }

            if (StringUtils.isBlank(mainClassName)) {
                throw new IllegalArgumentException("Can't find Spark job main class name to submit");
            }

            return new PostBatches(
                    this.name,
                    this.proxyUser,
                    file,
                    mainClassName,
                    this.yarnQueue,
                    this.driverMemory,
                    this.driverCores,
                    this.executorMemory,
                    this.executorCores,
                    this.yarnNumExecutors,
                    this.referenceFiles,
                    this.referencedJars,
                    this.yarnArchives,
                    this.pyFiles,
                    this.args,
                    this.jobConfig);
        }