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

com.pulumi.gcp.biglake.kotlin.inputs.DatabaseHiveOptionsArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.biglake.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.biglake.inputs.DatabaseHiveOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property locationUri Cloud Storage folder URI where the database data is stored, starting with "gs://".
 * @property parameters Stores user supplied Hive database parameters. An object containing a
 * list of"key": value pairs.
 * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
 * - - -
 */
public data class DatabaseHiveOptionsArgs(
    public val locationUri: Output? = null,
    public val parameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.biglake.inputs.DatabaseHiveOptionsArgs =
        com.pulumi.gcp.biglake.inputs.DatabaseHiveOptionsArgs.builder()
            .locationUri(locationUri?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DatabaseHiveOptionsArgs].
 */
@PulumiTagMarker
public class DatabaseHiveOptionsArgsBuilder internal constructor() {
    private var locationUri: Output? = null

    private var parameters: Output>? = null

    /**
     * @param value Cloud Storage folder URI where the database data is stored, starting with "gs://".
     */
    @JvmName("foewmcuercdewuth")
    public suspend fun locationUri(`value`: Output) {
        this.locationUri = value
    }

    /**
     * @param value Stores user supplied Hive database parameters. An object containing a
     * list of"key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     * - - -
     */
    @JvmName("wdpullbqftlrmufy")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value Cloud Storage folder URI where the database data is stored, starting with "gs://".
     */
    @JvmName("gavxhqvkwetjtsph")
    public suspend fun locationUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationUri = mapped
    }

    /**
     * @param value Stores user supplied Hive database parameters. An object containing a
     * list of"key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     * - - -
     */
    @JvmName("qxafarqvmmnsmvmi")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values Stores user supplied Hive database parameters. An object containing a
     * list of"key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     * - - -
     */
    @JvmName("nbpruaamhbvesmvv")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): DatabaseHiveOptionsArgs = DatabaseHiveOptionsArgs(
        locationUri = locationUri,
        parameters = parameters,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy