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

com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobPrestoJob.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property clientTags Presto client tags to attach to this query
 * @property continueOnFailure 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.
 * @property loggingConfig The runtime log config for job execution.
 * @property outputFormat The format in which query output will be displayed. See the Presto documentation for supported output formats
 * @property properties A mapping of property names to values. Used to set Presto (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
 * @property queryFileUri The HCFS URI of the script that contains SQL queries.
 * @property queryList A list of queries.
 */
public data class WorkflowTemplateJobPrestoJob(
    public val clientTags: List? = null,
    public val continueOnFailure: Boolean? = null,
    public val loggingConfig: WorkflowTemplateJobPrestoJobLoggingConfig? = null,
    public val outputFormat: String? = null,
    public val properties: Map? = null,
    public val queryFileUri: String? = null,
    public val queryList: WorkflowTemplateJobPrestoJobQueryList? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.WorkflowTemplateJobPrestoJob): WorkflowTemplateJobPrestoJob = WorkflowTemplateJobPrestoJob(
            clientTags = javaType.clientTags().map({ args0 -> args0 }),
            continueOnFailure = javaType.continueOnFailure().map({ args0 -> args0 }).orElse(null),
            loggingConfig = javaType.loggingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobPrestoJobLoggingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            outputFormat = javaType.outputFormat().map({ args0 -> args0 }).orElse(null),
            properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            queryFileUri = javaType.queryFileUri().map({ args0 -> args0 }).orElse(null),
            queryList = javaType.queryList().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobPrestoJobQueryList.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy