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

com.pulumi.azurenative.machinelearningservices.kotlin.inputs.DataContainerArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.machinelearningservices.kotlin.inputs

import com.pulumi.azurenative.machinelearningservices.inputs.DataContainerArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.DataType
import com.pulumi.core.Either
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 kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Container for data asset versions.
 * @property dataType [Required] Specifies the type of data.
 * @property description The asset description text.
 * @property isArchived Is the asset archived?
 * @property properties The asset property dictionary.
 * @property tags Tag dictionary. Tags can be added, removed, and updated.
 */
public data class DataContainerArgs(
    public val dataType: Output>,
    public val description: Output? = null,
    public val isArchived: Output? = null,
    public val properties: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.DataContainerArgs =
        com.pulumi.azurenative.machinelearningservices.inputs.DataContainerArgs.builder()
            .dataType(
                dataType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .isArchived(isArchived?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var description: Output? = null

    private var isArchived: Output? = null

    private var properties: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value [Required] Specifies the type of data.
     */
    @JvmName("wlyavgedjjgnyrlm")
    public suspend fun dataType(`value`: Output>) {
        this.dataType = value
    }

    /**
     * @param value The asset description text.
     */
    @JvmName("mytssvlbeapabydc")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Is the asset archived?
     */
    @JvmName("llocltjdqwikkpkq")
    public suspend fun isArchived(`value`: Output) {
        this.isArchived = value
    }

    /**
     * @param value The asset property dictionary.
     */
    @JvmName("svamnoecxtcjfext")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value Tag dictionary. Tags can be added, removed, and updated.
     */
    @JvmName("hmbdlldoibpjmold")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value [Required] Specifies the type of data.
     */
    @JvmName("otdribylfhcuomut")
    public suspend fun dataType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataType = mapped
    }

    /**
     * @param value [Required] Specifies the type of data.
     */
    @JvmName("pqahxpnwuvarjayh")
    public fun dataType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataType = mapped
    }

    /**
     * @param value [Required] Specifies the type of data.
     */
    @JvmName("ggtdjfgyehujwmaa")
    public fun dataType(`value`: DataType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataType = mapped
    }

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

    /**
     * @param value Is the asset archived?
     */
    @JvmName("kmwktkydrodrqkjt")
    public suspend fun isArchived(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isArchived = mapped
    }

    /**
     * @param value The asset property dictionary.
     */
    @JvmName("rknnwjogmmnjnbcp")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values The asset property dictionary.
     */
    @JvmName("ntumcglrejjacvox")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Tag dictionary. Tags can be added, removed, and updated.
     */
    @JvmName("mkvcstpwtsppkwkt")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Tag dictionary. Tags can be added, removed, and updated.
     */
    @JvmName("ofqxafoepsrrtqav")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DataContainerArgs = DataContainerArgs(
        dataType = dataType ?: throw PulumiNullFieldException("dataType"),
        description = description,
        isArchived = isArchived,
        properties = properties,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy