public Options apply()

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


        public Options apply(final PostBatches postBatches) {
            this.name = postBatches.name;
            this.yarnQueue = postBatches.yarnQueue;
            this.className = postBatches.className;
            this.artifactUri = postBatches.file;
            this.proxyUser = postBatches.proxyUser;
            this.driverMemory = postBatches.driverMemory;
            this.driverCores = postBatches.driverCores;
            this.executorMemory = postBatches.executorMemory;
            this.executorCores = postBatches.executorCores;
            this.yarnNumExecutors = postBatches.yarnNumExecutors;

            this.referenceFiles.clear();
            this.referenceFiles.addAll(postBatches.files);

            this.referencedJars.clear();
            this.referencedJars.addAll(postBatches.jars);

            this.yarnArchives.clear();
            this.yarnArchives.addAll(postBatches.archives);

            this.pyFiles.clear();
            this.pyFiles.addAll(postBatches.pyFiles);

            this.args.clear();
            this.args.addAll(postBatches.args);

            this.jobConfig.clear();
            this.jobConfig.putAll(postBatches.jobConfig);

            return this;
        }