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

com.pulumi.googlenative.dataplex.v1.kotlin.ZoneArgs.kt Maven / Gradle / Ivy

@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.ZoneArgs.builder
import com.pulumi.googlenative.dataplex.v1.kotlin.enums.ZoneType
import com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1ZoneDiscoverySpecArgs
import com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1ZoneDiscoverySpecArgsBuilder
import com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1ZoneResourceSpecArgs
import com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1ZoneResourceSpecArgsBuilder
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 zone resource within a lake.
 * Auto-naming is currently not supported for this resource.
 * @property description Optional. Description of the zone.
 * @property discoverySpec Optional. Specification of the discovery feature applied to data in this zone.
 * @property displayName Optional. User friendly display name.
 * @property labels Optional. User defined labels for the zone.
 * @property lakeId
 * @property location
 * @property project
 * @property resourceSpec Specification of the resources that are referenced by the assets within this zone.
 * @property type Immutable. The type of the zone.
 * @property zoneId Required. Zone 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 across all lakes from all locations in a project. * Must not be one of the reserved IDs (i.e. "default", "global-temp")
 */
public data class ZoneArgs(
    public val description: Output? = null,
    public val discoverySpec: Output? = null,
    public val displayName: Output? = null,
    public val labels: Output>? = null,
    public val lakeId: Output? = null,
    public val location: Output? = null,
    public val project: Output? = null,
    public val resourceSpec: Output? = null,
    public val type: Output? = null,
    public val zoneId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dataplex.v1.ZoneArgs =
        com.pulumi.googlenative.dataplex.v1.ZoneArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .discoverySpec(discoverySpec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .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 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .resourceSpec(resourceSpec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}

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

    private var discoverySpec: Output? = null

    private var displayName: Output? = null

    private var labels: Output>? = null

    private var lakeId: Output? = null

    private var location: Output? = null

    private var project: Output? = null

    private var resourceSpec: Output? = null

    private var type: Output? = null

    private var zoneId: Output? = null

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

    /**
     * @param value Optional. Specification of the discovery feature applied to data in this zone.
     */
    @JvmName("frwmhejkthfrxbgi")
    public suspend fun discoverySpec(`value`: Output) {
        this.discoverySpec = value
    }

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

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

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

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

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

    /**
     * @param value Specification of the resources that are referenced by the assets within this zone.
     */
    @JvmName("jsrermdvshqrtrwh")
    public suspend fun resourceSpec(`value`: Output) {
        this.resourceSpec = value
    }

    /**
     * @param value Immutable. The type of the zone.
     */
    @JvmName("tygwbiulanvkavou")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Required. Zone 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 across all lakes from all locations in a project. * Must not be one of the reserved IDs (i.e. "default", "global-temp")
     */
    @JvmName("tvcgiycfjyyimije")
    public suspend fun zoneId(`value`: Output) {
        this.zoneId = value
    }

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

    /**
     * @param value Optional. Specification of the discovery feature applied to data in this zone.
     */
    @JvmName("kccalehgvjcuromg")
    public suspend fun discoverySpec(`value`: GoogleCloudDataplexV1ZoneDiscoverySpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.discoverySpec = mapped
    }

    /**
     * @param argument Optional. Specification of the discovery feature applied to data in this zone.
     */
    @JvmName("ujitxvgdqdqmlxoh")
    public suspend fun discoverySpec(argument: suspend GoogleCloudDataplexV1ZoneDiscoverySpecArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDataplexV1ZoneDiscoverySpecArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.discoverySpec = mapped
    }

    /**
     * @param value Optional. User friendly display name.
     */
    @JvmName("pctulrimqthhkkpq")
    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 zone.
     */
    @JvmName("kgtkflcjcmijtvwd")
    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 zone.
     */
    @JvmName("vcsjbogjjbiysoqd")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

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

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

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

    /**
     * @param value Specification of the resources that are referenced by the assets within this zone.
     */
    @JvmName("vdfltqkmomqwyisu")
    public suspend fun resourceSpec(`value`: GoogleCloudDataplexV1ZoneResourceSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceSpec = mapped
    }

    /**
     * @param argument Specification of the resources that are referenced by the assets within this zone.
     */
    @JvmName("fciwqypwloyqslfx")
    public suspend fun resourceSpec(argument: suspend GoogleCloudDataplexV1ZoneResourceSpecArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDataplexV1ZoneResourceSpecArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.resourceSpec = mapped
    }

    /**
     * @param value Immutable. The type of the zone.
     */
    @JvmName("ndpskwqxhmopyash")
    public suspend fun type(`value`: ZoneType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Required. Zone 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 across all lakes from all locations in a project. * Must not be one of the reserved IDs (i.e. "default", "global-temp")
     */
    @JvmName("kmybjxsyuxojbavv")
    public suspend fun zoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneId = mapped
    }

    internal fun build(): ZoneArgs = ZoneArgs(
        description = description,
        discoverySpec = discoverySpec,
        displayName = displayName,
        labels = labels,
        lakeId = lakeId,
        location = location,
        project = project,
        resourceSpec = resourceSpec,
        type = type,
        zoneId = zoneId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy