All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.dataproc.v1.inputs.TrinoJobArgs 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 com.pulumi.googlenative.dataproc.v1.inputs.QueryListArgs;
import java.lang.Boolean;
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 Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster.
 * 
 */
public final class TrinoJobArgs extends com.pulumi.resources.ResourceArgs {

    public static final TrinoJobArgs Empty = new TrinoJobArgs();

    /**
     * Optional. Trino client tags to attach to this query
     * 
     */
    @Import(name="clientTags")
    private @Nullable Output> clientTags;

    /**
     * @return Optional. Trino client tags to attach to this query
     * 
     */
    public Optional>> clientTags() {
        return Optional.ofNullable(this.clientTags);
    }

    /**
     * Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
     * 
     */
    @Import(name="continueOnFailure")
    private @Nullable Output continueOnFailure;

    /**
     * @return Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
     * 
     */
    public Optional> continueOnFailure() {
        return Optional.ofNullable(this.continueOnFailure);
    }

    /**
     * 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);
    }

    /**
     * Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
     * 
     */
    @Import(name="outputFormat")
    private @Nullable Output outputFormat;

    /**
     * @return Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
     * 
     */
    public Optional> outputFormat() {
        return Optional.ofNullable(this.outputFormat);
    }

    /**
     * Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The HCFS URI of the script that contains SQL queries.
     * 
     */
    @Import(name="queryFileUri")
    private @Nullable Output queryFileUri;

    /**
     * @return The HCFS URI of the script that contains SQL queries.
     * 
     */
    public Optional> queryFileUri() {
        return Optional.ofNullable(this.queryFileUri);
    }

    /**
     * A list of queries.
     * 
     */
    @Import(name="queryList")
    private @Nullable Output queryList;

    /**
     * @return A list of queries.
     * 
     */
    public Optional> queryList() {
        return Optional.ofNullable(this.queryList);
    }

    private TrinoJobArgs() {}

    private TrinoJobArgs(TrinoJobArgs $) {
        this.clientTags = $.clientTags;
        this.continueOnFailure = $.continueOnFailure;
        this.loggingConfig = $.loggingConfig;
        this.outputFormat = $.outputFormat;
        this.properties = $.properties;
        this.queryFileUri = $.queryFileUri;
        this.queryList = $.queryList;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(TrinoJobArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private TrinoJobArgs $;

        public Builder() {
            $ = new TrinoJobArgs();
        }

        public Builder(TrinoJobArgs defaults) {
            $ = new TrinoJobArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param clientTags Optional. Trino client tags to attach to this query
         * 
         * @return builder
         * 
         */
        public Builder clientTags(@Nullable Output> clientTags) {
            $.clientTags = clientTags;
            return this;
        }

        /**
         * @param clientTags Optional. Trino client tags to attach to this query
         * 
         * @return builder
         * 
         */
        public Builder clientTags(List clientTags) {
            return clientTags(Output.of(clientTags));
        }

        /**
         * @param clientTags Optional. Trino client tags to attach to this query
         * 
         * @return builder
         * 
         */
        public Builder clientTags(String... clientTags) {
            return clientTags(List.of(clientTags));
        }

        /**
         * @param continueOnFailure Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
         * 
         * @return builder
         * 
         */
        public Builder continueOnFailure(@Nullable Output continueOnFailure) {
            $.continueOnFailure = continueOnFailure;
            return this;
        }

        /**
         * @param continueOnFailure Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
         * 
         * @return builder
         * 
         */
        public Builder continueOnFailure(Boolean continueOnFailure) {
            return continueOnFailure(Output.of(continueOnFailure));
        }

        /**
         * @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 outputFormat Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
         * 
         * @return builder
         * 
         */
        public Builder outputFormat(@Nullable Output outputFormat) {
            $.outputFormat = outputFormat;
            return this;
        }

        /**
         * @param outputFormat Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
         * 
         * @return builder
         * 
         */
        public Builder outputFormat(String outputFormat) {
            return outputFormat(Output.of(outputFormat));
        }

        /**
         * @param properties Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param queryFileUri The HCFS URI of the script that contains SQL queries.
         * 
         * @return builder
         * 
         */
        public Builder queryFileUri(@Nullable Output queryFileUri) {
            $.queryFileUri = queryFileUri;
            return this;
        }

        /**
         * @param queryFileUri The HCFS URI of the script that contains SQL queries.
         * 
         * @return builder
         * 
         */
        public Builder queryFileUri(String queryFileUri) {
            return queryFileUri(Output.of(queryFileUri));
        }

        /**
         * @param queryList A list of queries.
         * 
         * @return builder
         * 
         */
        public Builder queryList(@Nullable Output queryList) {
            $.queryList = queryList;
            return this;
        }

        /**
         * @param queryList A list of queries.
         * 
         * @return builder
         * 
         */
        public Builder queryList(QueryListArgs queryList) {
            return queryList(Output.of(queryList));
        }

        public TrinoJobArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy