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

com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.DeltaTableArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperationsmq.kotlin.inputs

import com.pulumi.azurenative.iotoperationsmq.inputs.DeltaTableArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Delta table properties
 * @property schema Schema list supported.
 * @property tableName Delta table name.
 * @property tablePath Delta table path.
 */
public data class DeltaTableArgs(
    public val schema: Output>,
    public val tableName: Output,
    public val tablePath: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperationsmq.inputs.DeltaTableArgs =
        com.pulumi.azurenative.iotoperationsmq.inputs.DeltaTableArgs.builder()
            .schema(schema.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tableName(tableName.applyValue({ args0 -> args0 }))
            .tablePath(tablePath?.applyValue({ args0 -> args0 })).build()
}

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

    private var tableName: Output? = null

    private var tablePath: Output? = null

    /**
     * @param value Schema list supported.
     */
    @JvmName("qhjroigsxmtdsqod")
    public suspend fun schema(`value`: Output>) {
        this.schema = value
    }

    @JvmName("vbiqqsoofngrqvlo")
    public suspend fun schema(vararg values: Output) {
        this.schema = Output.all(values.asList())
    }

    /**
     * @param values Schema list supported.
     */
    @JvmName("hugwvuakolynkrhw")
    public suspend fun schema(values: List>) {
        this.schema = Output.all(values)
    }

    /**
     * @param value Delta table name.
     */
    @JvmName("maqdsgtivldqhyoj")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

    /**
     * @param value Delta table path.
     */
    @JvmName("jpsbrhmpimdurddp")
    public suspend fun tablePath(`value`: Output) {
        this.tablePath = value
    }

    /**
     * @param value Schema list supported.
     */
    @JvmName("telohuoiodonifhc")
    public suspend fun schema(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param argument Schema list supported.
     */
    @JvmName("mivqlbnowlvtcxjr")
    public suspend fun schema(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DeltaTableSchemaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param argument Schema list supported.
     */
    @JvmName("asjlbbbajneypqgl")
    public suspend fun schema(vararg argument: suspend DeltaTableSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DeltaTableSchemaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param argument Schema list supported.
     */
    @JvmName("jupqxnsyoxqmxrsv")
    public suspend fun schema(argument: suspend DeltaTableSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DeltaTableSchemaArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param values Schema list supported.
     */
    @JvmName("keqxfsnxhjoxomed")
    public suspend fun schema(vararg values: DeltaTableSchemaArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param value Delta table name.
     */
    @JvmName("fxibyhylhlldblha")
    public suspend fun tableName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

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

    internal fun build(): DeltaTableArgs = DeltaTableArgs(
        schema = schema ?: throw PulumiNullFieldException("schema"),
        tableName = tableName ?: throw PulumiNullFieldException("tableName"),
        tablePath = tablePath,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy