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

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

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

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

import com.pulumi.azurenative.machinelearningservices.inputs.InferencePoolArgs.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

/**
 * Inference pool configuration
 * @property codeConfiguration Code configuration for the inference pool.
 * @property description Description of the resource.
 * @property environmentConfiguration EnvironmentConfiguration for the inference pool.
 * @property modelConfiguration ModelConfiguration for the inference pool.
 * @property nodeSkuType [Required] Compute instance type.
 * @property properties Property dictionary. Properties can be added, but not removed or altered.
 * @property requestConfiguration Request configuration for the inference pool.
 */
public data class InferencePoolArgs(
    public val codeConfiguration: Output? = null,
    public val description: Output? = null,
    public val environmentConfiguration: Output? = null,
    public val modelConfiguration: Output? = null,
    public val nodeSkuType: Output,
    public val properties: Output>? = null,
    public val requestConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.InferencePoolArgs =
        com.pulumi.azurenative.machinelearningservices.inputs.InferencePoolArgs.builder()
            .codeConfiguration(codeConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .environmentConfiguration(
                environmentConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .modelConfiguration(
                modelConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .nodeSkuType(nodeSkuType.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .requestConfiguration(
                requestConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [InferencePoolArgs].
 */
@PulumiTagMarker
public class InferencePoolArgsBuilder internal constructor() {
    private var codeConfiguration: Output? = null

    private var description: Output? = null

    private var environmentConfiguration: Output? = null

    private var modelConfiguration: Output? = null

    private var nodeSkuType: Output? = null

    private var properties: Output>? = null

    private var requestConfiguration: Output? = null

    /**
     * @param value Code configuration for the inference pool.
     */
    @JvmName("kvoiwujeytaibump")
    public suspend fun codeConfiguration(`value`: Output) {
        this.codeConfiguration = value
    }

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

    /**
     * @param value EnvironmentConfiguration for the inference pool.
     */
    @JvmName("jihjljwoyghncbsi")
    public suspend fun environmentConfiguration(`value`: Output) {
        this.environmentConfiguration = value
    }

    /**
     * @param value ModelConfiguration for the inference pool.
     */
    @JvmName("xacwhueeroppmgww")
    public suspend fun modelConfiguration(`value`: Output) {
        this.modelConfiguration = value
    }

    /**
     * @param value [Required] Compute instance type.
     */
    @JvmName("agdgjvbbirlilghl")
    public suspend fun nodeSkuType(`value`: Output) {
        this.nodeSkuType = value
    }

    /**
     * @param value Property dictionary. Properties can be added, but not removed or altered.
     */
    @JvmName("fugppxjloaictnly")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value Request configuration for the inference pool.
     */
    @JvmName("dlxmkgacksscuhfu")
    public suspend fun requestConfiguration(`value`: Output) {
        this.requestConfiguration = value
    }

    /**
     * @param value Code configuration for the inference pool.
     */
    @JvmName("afayuxfhxjepefxh")
    public suspend fun codeConfiguration(`value`: CodeConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codeConfiguration = mapped
    }

    /**
     * @param argument Code configuration for the inference pool.
     */
    @JvmName("vjvhvdsejgmsomaa")
    public suspend fun codeConfiguration(argument: suspend CodeConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = CodeConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.codeConfiguration = mapped
    }

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

    /**
     * @param value EnvironmentConfiguration for the inference pool.
     */
    @JvmName("tummneomunfvlmxe")
    public suspend fun environmentConfiguration(`value`: PoolEnvironmentConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentConfiguration = mapped
    }

    /**
     * @param argument EnvironmentConfiguration for the inference pool.
     */
    @JvmName("qfyshensftxwshfb")
    public suspend fun environmentConfiguration(argument: suspend PoolEnvironmentConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = PoolEnvironmentConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.environmentConfiguration = mapped
    }

    /**
     * @param value ModelConfiguration for the inference pool.
     */
    @JvmName("eswaejyxahusaydu")
    public suspend fun modelConfiguration(`value`: PoolModelConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelConfiguration = mapped
    }

    /**
     * @param argument ModelConfiguration for the inference pool.
     */
    @JvmName("pmjkpoabvemiyrex")
    public suspend fun modelConfiguration(argument: suspend PoolModelConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = PoolModelConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.modelConfiguration = mapped
    }

    /**
     * @param value [Required] Compute instance type.
     */
    @JvmName("sjkhaecgpechsryo")
    public suspend fun nodeSkuType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeSkuType = mapped
    }

    /**
     * @param value Property dictionary. Properties can be added, but not removed or altered.
     */
    @JvmName("mcmxxeyvwxorwhdo")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values Property dictionary. Properties can be added, but not removed or altered.
     */
    @JvmName("fbtvfyljkolctqhb")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Request configuration for the inference pool.
     */
    @JvmName("oswfgbqwovrangai")
    public suspend fun requestConfiguration(`value`: RequestConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestConfiguration = mapped
    }

    /**
     * @param argument Request configuration for the inference pool.
     */
    @JvmName("amxmiqqcsduxomvc")
    public suspend fun requestConfiguration(argument: suspend RequestConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = RequestConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.requestConfiguration = mapped
    }

    internal fun build(): InferencePoolArgs = InferencePoolArgs(
        codeConfiguration = codeConfiguration,
        description = description,
        environmentConfiguration = environmentConfiguration,
        modelConfiguration = modelConfiguration,
        nodeSkuType = nodeSkuType ?: throw PulumiNullFieldException("nodeSkuType"),
        properties = properties,
        requestConfiguration = requestConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy