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

com.pulumi.googlenative.dataplex.v1.kotlin.LakeArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.dataplex.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dataplex.v1.LakeArgs.builder
import com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1LakeMetastoreArgs
import com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1LakeMetastoreArgsBuilder
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

/**
 * Creates a lake resource.
 * Auto-naming is currently not supported for this resource.
 * @property description Optional. Description of the lake.
 * @property displayName Optional. User friendly display name.
 * @property labels Optional. User-defined labels for the lake.
 * @property lakeId Required. Lake identifier. This ID will be used to generate names such as database and dataset names when publishing metadata to Hive Metastore and BigQuery. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.
 * @property location
 * @property metastore Optional. Settings to manage lake and Dataproc Metastore service instance association.
 * @property project
 */
public data class LakeArgs(
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val labels: Output>? = null,
    public val lakeId: Output? = null,
    public val location: Output? = null,
    public val metastore: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dataplex.v1.LakeArgs =
        com.pulumi.googlenative.dataplex.v1.LakeArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .lakeId(lakeId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .metastore(metastore?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LakeArgs].
 */
@PulumiTagMarker
public class LakeArgsBuilder internal constructor() {
    private var description: Output? = null

    private var displayName: Output? = null

    private var labels: Output>? = null

    private var lakeId: Output? = null

    private var location: Output? = null

    private var metastore: Output? = null

    private var project: Output? = null

    /**
     * @param value Optional. Description of the lake.
     */
    @JvmName("eguftpjnkyfewmvj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Optional. User friendly display name.
     */
    @JvmName("ntppdlccqdorlrcm")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Optional. User-defined labels for the lake.
     */
    @JvmName("pbyuoscaxtdfriwg")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Required. Lake identifier. This ID will be used to generate names such as database and dataset names when publishing metadata to Hive Metastore and BigQuery. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.
     */
    @JvmName("dsjamxxnlcclubqw")
    public suspend fun lakeId(`value`: Output) {
        this.lakeId = value
    }

    /**
     * @param value
     */
    @JvmName("mufwvtteqjxnyibk")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Optional. Settings to manage lake and Dataproc Metastore service instance association.
     */
    @JvmName("wimsegwvnvnntggv")
    public suspend fun metastore(`value`: Output) {
        this.metastore = value
    }

    /**
     * @param value
     */
    @JvmName("gxvitwatddsggueh")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Optional. Description of the lake.
     */
    @JvmName("vlfjusmooskcqpoi")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Optional. User friendly display name.
     */
    @JvmName("rbmltkmvhorugeub")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Optional. User-defined labels for the lake.
     */
    @JvmName("dqwcxfgrfuqlucav")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Optional. User-defined labels for the lake.
     */
    @JvmName("iswwwrljhsbbgdsh")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Required. Lake identifier. This ID will be used to generate names such as database and dataset names when publishing metadata to Hive Metastore and BigQuery. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location.
     */
    @JvmName("ymacmfiaiobsqmyi")
    public suspend fun lakeId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lakeId = mapped
    }

    /**
     * @param value
     */
    @JvmName("yyoqicxtlkedlgkx")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Optional. Settings to manage lake and Dataproc Metastore service instance association.
     */
    @JvmName("cxmmkjljuhsiuraa")
    public suspend fun metastore(`value`: GoogleCloudDataplexV1LakeMetastoreArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metastore = mapped
    }

    /**
     * @param argument Optional. Settings to manage lake and Dataproc Metastore service instance association.
     */
    @JvmName("ionsjjiaghtulgqp")
    public suspend fun metastore(argument: suspend GoogleCloudDataplexV1LakeMetastoreArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDataplexV1LakeMetastoreArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.metastore = mapped
    }

    /**
     * @param value
     */
    @JvmName("dadxeugjxgtjfrfr")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): LakeArgs = LakeArgs(
        description = description,
        displayName = displayName,
        labels = labels,
        lakeId = lakeId,
        location = location,
        metastore = metastore,
        project = project,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy