Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.dataproc.v1.inputs.SparkJobArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.dataproc.v1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.dataproc.v1.inputs.LoggingConfigArgs;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN.
*
*/
public final class SparkJobArgs extends com.pulumi.resources.ResourceArgs {
public static final SparkJobArgs Empty = new SparkJobArgs();
/**
* Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*
*/
@Import(name="archiveUris")
private @Nullable Output> archiveUris;
/**
* @return Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*
*/
public Optional>> archiveUris() {
return Optional.ofNullable(this.archiveUris);
}
/**
* Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
*
*/
@Import(name="args")
private @Nullable Output> args;
/**
* @return Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
*
*/
public Optional>> args() {
return Optional.ofNullable(this.args);
}
/**
* Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
*
*/
@Import(name="fileUris")
private @Nullable Output> fileUris;
/**
* @return Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
*
*/
public Optional>> fileUris() {
return Optional.ofNullable(this.fileUris);
}
/**
* Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
*
*/
@Import(name="jarFileUris")
private @Nullable Output> jarFileUris;
/**
* @return Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
*
*/
public Optional>> jarFileUris() {
return Optional.ofNullable(this.jarFileUris);
}
/**
* Optional. The runtime log config for job execution.
*
*/
@Import(name="loggingConfig")
private @Nullable Output loggingConfig;
/**
* @return Optional. The runtime log config for job execution.
*
*/
public Optional> loggingConfig() {
return Optional.ofNullable(this.loggingConfig);
}
/**
* The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
*
*/
@Import(name="mainClass")
private @Nullable Output mainClass;
/**
* @return The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
*
*/
public Optional> mainClass() {
return Optional.ofNullable(this.mainClass);
}
/**
* The HCFS URI of the jar file that contains the main class.
*
*/
@Import(name="mainJarFileUri")
private @Nullable Output mainJarFileUri;
/**
* @return The HCFS URI of the jar file that contains the main class.
*
*/
public Optional> mainJarFileUri() {
return Optional.ofNullable(this.mainJarFileUri);
}
/**
* Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
*
*/
@Import(name="properties")
private @Nullable Output> properties;
/**
* @return Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
*
*/
public Optional>> properties() {
return Optional.ofNullable(this.properties);
}
private SparkJobArgs() {}
private SparkJobArgs(SparkJobArgs $) {
this.archiveUris = $.archiveUris;
this.args = $.args;
this.fileUris = $.fileUris;
this.jarFileUris = $.jarFileUris;
this.loggingConfig = $.loggingConfig;
this.mainClass = $.mainClass;
this.mainJarFileUri = $.mainJarFileUri;
this.properties = $.properties;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SparkJobArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SparkJobArgs $;
public Builder() {
$ = new SparkJobArgs();
}
public Builder(SparkJobArgs defaults) {
$ = new SparkJobArgs(Objects.requireNonNull(defaults));
}
/**
* @param archiveUris Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*
* @return builder
*
*/
public Builder archiveUris(@Nullable Output> archiveUris) {
$.archiveUris = archiveUris;
return this;
}
/**
* @param archiveUris Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*
* @return builder
*
*/
public Builder archiveUris(List archiveUris) {
return archiveUris(Output.of(archiveUris));
}
/**
* @param archiveUris Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*
* @return builder
*
*/
public Builder archiveUris(String... archiveUris) {
return archiveUris(List.of(archiveUris));
}
/**
* @param args Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
*
* @return builder
*
*/
public Builder args(@Nullable Output> args) {
$.args = args;
return this;
}
/**
* @param args Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
*
* @return builder
*
*/
public Builder args(List args) {
return args(Output.of(args));
}
/**
* @param args Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
*
* @return builder
*
*/
public Builder args(String... args) {
return args(List.of(args));
}
/**
* @param fileUris Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
*
* @return builder
*
*/
public Builder fileUris(@Nullable Output> fileUris) {
$.fileUris = fileUris;
return this;
}
/**
* @param fileUris Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
*
* @return builder
*
*/
public Builder fileUris(List fileUris) {
return fileUris(Output.of(fileUris));
}
/**
* @param fileUris Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
*
* @return builder
*
*/
public Builder fileUris(String... fileUris) {
return fileUris(List.of(fileUris));
}
/**
* @param jarFileUris Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
*
* @return builder
*
*/
public Builder jarFileUris(@Nullable Output> jarFileUris) {
$.jarFileUris = jarFileUris;
return this;
}
/**
* @param jarFileUris Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
*
* @return builder
*
*/
public Builder jarFileUris(List jarFileUris) {
return jarFileUris(Output.of(jarFileUris));
}
/**
* @param jarFileUris Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
*
* @return builder
*
*/
public Builder jarFileUris(String... jarFileUris) {
return jarFileUris(List.of(jarFileUris));
}
/**
* @param loggingConfig Optional. The runtime log config for job execution.
*
* @return builder
*
*/
public Builder loggingConfig(@Nullable Output loggingConfig) {
$.loggingConfig = loggingConfig;
return this;
}
/**
* @param loggingConfig Optional. The runtime log config for job execution.
*
* @return builder
*
*/
public Builder loggingConfig(LoggingConfigArgs loggingConfig) {
return loggingConfig(Output.of(loggingConfig));
}
/**
* @param mainClass The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
*
* @return builder
*
*/
public Builder mainClass(@Nullable Output mainClass) {
$.mainClass = mainClass;
return this;
}
/**
* @param mainClass The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
*
* @return builder
*
*/
public Builder mainClass(String mainClass) {
return mainClass(Output.of(mainClass));
}
/**
* @param mainJarFileUri The HCFS URI of the jar file that contains the main class.
*
* @return builder
*
*/
public Builder mainJarFileUri(@Nullable Output mainJarFileUri) {
$.mainJarFileUri = mainJarFileUri;
return this;
}
/**
* @param mainJarFileUri The HCFS URI of the jar file that contains the main class.
*
* @return builder
*
*/
public Builder mainJarFileUri(String mainJarFileUri) {
return mainJarFileUri(Output.of(mainJarFileUri));
}
/**
* @param properties Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
*
* @return builder
*
*/
public Builder properties(@Nullable Output> properties) {
$.properties = properties;
return this;
}
/**
* @param properties Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
*
* @return builder
*
*/
public Builder properties(Map properties) {
return properties(Output.of(properties));
}
public SparkJobArgs build() {
return $;
}
}
}