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

com.pulumi.gcp.biglake.kotlin.inputs.TableHiveOptionsArgs.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.biglake.kotlin.inputs

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

/**
 *
 * @property parameters Stores user supplied Hive table parameters. An object containing a
 * list of "key": value pairs.
 * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
 * @property storageDescriptor Stores physical storage information on the data.
 * Structure is documented below.
 * @property tableType Hive table type. For example, MANAGED_TABLE, EXTERNAL_TABLE.
 */
public data class TableHiveOptionsArgs(
    public val parameters: Output>? = null,
    public val storageDescriptor: Output? = null,
    public val tableType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.biglake.inputs.TableHiveOptionsArgs =
        com.pulumi.gcp.biglake.inputs.TableHiveOptionsArgs.builder()
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .storageDescriptor(storageDescriptor?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tableType(tableType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableHiveOptionsArgs].
 */
@PulumiTagMarker
public class TableHiveOptionsArgsBuilder internal constructor() {
    private var parameters: Output>? = null

    private var storageDescriptor: Output? = null

    private var tableType: Output? = null

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

    /**
     * @param value Stores physical storage information on the data.
     * Structure is documented below.
     */
    @JvmName("bpcdfcapyvmjoxtu")
    public suspend fun storageDescriptor(`value`: Output) {
        this.storageDescriptor = value
    }

    /**
     * @param value Hive table type. For example, MANAGED_TABLE, EXTERNAL_TABLE.
     */
    @JvmName("wuwibeemwmcwcnhw")
    public suspend fun tableType(`value`: Output) {
        this.tableType = value
    }

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

    /**
     * @param value Stores physical storage information on the data.
     * Structure is documented below.
     */
    @JvmName("nwkkpupopxfumshq")
    public suspend fun storageDescriptor(`value`: TableHiveOptionsStorageDescriptorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageDescriptor = mapped
    }

    /**
     * @param argument Stores physical storage information on the data.
     * Structure is documented below.
     */
    @JvmName("tvvglrvolftamatb")
    public suspend fun storageDescriptor(argument: suspend TableHiveOptionsStorageDescriptorArgsBuilder.() -> Unit) {
        val toBeMapped = TableHiveOptionsStorageDescriptorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.storageDescriptor = mapped
    }

    /**
     * @param value Hive table type. For example, MANAGED_TABLE, EXTERNAL_TABLE.
     */
    @JvmName("cptafhagwfuyahve")
    public suspend fun tableType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableType = mapped
    }

    internal fun build(): TableHiveOptionsArgs = TableHiveOptionsArgs(
        parameters = parameters,
        storageDescriptor = storageDescriptor,
        tableType = tableType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy