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

com.pulumi.azurenative.machinelearning.kotlin.inputs.TableSpecificationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.machinelearning.kotlin.inputs

import com.pulumi.azurenative.machinelearning.inputs.TableSpecificationArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The swagger 2.0 schema describing a single service input or output. See Swagger specification: http://swagger.io/specification/
 * @property description Swagger schema description.
 * @property format The format, if 'type' is not 'object'
 * @property properties The set of columns within the data table.
 * @property title Swagger schema title.
 * @property type The type of the entity described in swagger.
 */
public data class TableSpecificationArgs(
    public val description: Output? = null,
    public val format: Output? = null,
    public val properties: Output>? = null,
    public val title: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearning.inputs.TableSpecificationArgs =
        com.pulumi.azurenative.machinelearning.inputs.TableSpecificationArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .format(format?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .title(title?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var format: Output? = null

    private var properties: Output>? = null

    private var title: Output? = null

    private var type: Output? = null

    /**
     * @param value Swagger schema description.
     */
    @JvmName("xpujydvwioaxnagn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The format, if 'type' is not 'object'
     */
    @JvmName("erwmmieievktfyom")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @param value The set of columns within the data table.
     */
    @JvmName("jddipqibdifsnlbb")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value Swagger schema title.
     */
    @JvmName("biltghtlhlwpehir")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value The type of the entity described in swagger.
     */
    @JvmName("afiuyedfxkgsxcff")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value The format, if 'type' is not 'object'
     */
    @JvmName("cayphoswvphaycua")
    public suspend fun format(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.format = mapped
    }

    /**
     * @param value The set of columns within the data table.
     */
    @JvmName("ixrabwxsrudkbwvt")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument The set of columns within the data table.
     */
    @JvmName("adirkiolhvsdexte")
    public suspend fun properties(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                ColumnSpecificationArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param values The set of columns within the data table.
     */
    @JvmName("lakfhvnyjqbmtapm")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

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

    /**
     * @param value The type of the entity described in swagger.
     */
    @JvmName("qyfvgwcanyxebcid")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): TableSpecificationArgs = TableSpecificationArgs(
        description = description,
        format = format,
        properties = properties,
        title = title,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy