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

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

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

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

import com.pulumi.azurenative.machinelearningservices.inputs.InferenceGroupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Inference group configuration
 * @property bonusExtraCapacity Capacity to be used from the pool's reserved capacity.
 * optional
 * @property description Description of the resource.
 * @property metadata Metadata for the inference group.
 * @property priority Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
 * @property properties Property dictionary. Properties can be added, but not removed or altered.
 */
public data class InferenceGroupArgs(
    public val bonusExtraCapacity: Output? = null,
    public val description: Output? = null,
    public val metadata: Output? = null,
    public val priority: Output? = null,
    public val properties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.InferenceGroupArgs =
        com.pulumi.azurenative.machinelearningservices.inputs.InferenceGroupArgs.builder()
            .bonusExtraCapacity(bonusExtraCapacity?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .metadata(metadata?.applyValue({ args0 -> args0 }))
            .priority(priority?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [InferenceGroupArgs].
 */
@PulumiTagMarker
public class InferenceGroupArgsBuilder internal constructor() {
    private var bonusExtraCapacity: Output? = null

    private var description: Output? = null

    private var metadata: Output? = null

    private var priority: Output? = null

    private var properties: Output>? = null

    /**
     * @param value Capacity to be used from the pool's reserved capacity.
     * optional
     */
    @JvmName("jryrlxxlsulrgkgk")
    public suspend fun bonusExtraCapacity(`value`: Output) {
        this.bonusExtraCapacity = value
    }

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

    /**
     * @param value Metadata for the inference group.
     */
    @JvmName("uvmwmujabmqkkose")
    public suspend fun metadata(`value`: Output) {
        this.metadata = value
    }

    /**
     * @param value Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
     */
    @JvmName("wsjaiidfpyvtwgxe")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

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

    /**
     * @param value Capacity to be used from the pool's reserved capacity.
     * optional
     */
    @JvmName("suyoggjxrfkekvgi")
    public suspend fun bonusExtraCapacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bonusExtraCapacity = mapped
    }

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

    /**
     * @param value Metadata for the inference group.
     */
    @JvmName("gbhldsvdcwsfacmp")
    public suspend fun metadata(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
     */
    @JvmName("kgmqpgammclmmpeo")
    public suspend fun priority(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

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

    internal fun build(): InferenceGroupArgs = InferenceGroupArgs(
        bonusExtraCapacity = bonusExtraCapacity,
        description = description,
        metadata = metadata,
        priority = priority,
        properties = properties,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy