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

com.pulumi.azurenative.machinelearning.kotlin.inputs.ModuleAssetParameterArgs.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.machinelearning.kotlin.inputs

import com.pulumi.azurenative.machinelearning.inputs.ModuleAssetParameterArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Parameter definition for a module asset.
 * @property modeValuesInfo Definitions for nested interface parameters if this is a complex module parameter.
 * @property name Parameter name.
 * @property parameterType Parameter type.
 */
public data class ModuleAssetParameterArgs(
    public val modeValuesInfo: Output>? = null,
    public val name: Output? = null,
    public val parameterType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearning.inputs.ModuleAssetParameterArgs =
        com.pulumi.azurenative.machinelearning.inputs.ModuleAssetParameterArgs.builder()
            .modeValuesInfo(
                modeValuesInfo?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .parameterType(parameterType?.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var parameterType: Output? = null

    /**
     * @param value Definitions for nested interface parameters if this is a complex module parameter.
     */
    @JvmName("ysvdejktunpibbdd")
    public suspend fun modeValuesInfo(`value`: Output>) {
        this.modeValuesInfo = value
    }

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

    /**
     * @param value Parameter type.
     */
    @JvmName("mcpkfuegqgxopjkt")
    public suspend fun parameterType(`value`: Output) {
        this.parameterType = value
    }

    /**
     * @param value Definitions for nested interface parameters if this is a complex module parameter.
     */
    @JvmName("hlserildlqirosku")
    public suspend fun modeValuesInfo(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modeValuesInfo = mapped
    }

    /**
     * @param argument Definitions for nested interface parameters if this is a complex module parameter.
     */
    @JvmName("islahxhmqqmadcxx")
    public suspend fun modeValuesInfo(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                ModeValueInfoArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.modeValuesInfo = mapped
    }

    /**
     * @param values Definitions for nested interface parameters if this is a complex module parameter.
     */
    @JvmName("yecyakkmdaygssbm")
    public fun modeValuesInfo(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.modeValuesInfo = mapped
    }

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

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

    internal fun build(): ModuleAssetParameterArgs = ModuleAssetParameterArgs(
        modeValuesInfo = modeValuesInfo,
        name = name,
        parameterType = parameterType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy