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

com.pulumi.azurenative.cognitiveservices.kotlin.inputs.DeploymentScaleSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.cognitiveservices.kotlin.inputs

import com.pulumi.azurenative.cognitiveservices.inputs.DeploymentScaleSettingsArgs.builder
import com.pulumi.azurenative.cognitiveservices.kotlin.enums.DeploymentScaleType
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.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Properties of Cognitive Services account deployment model.
 * @property capacity Deployment capacity.
 * @property scaleType Deployment scale type.
 */
public data class DeploymentScaleSettingsArgs(
    public val capacity: Output? = null,
    public val scaleType: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cognitiveservices.inputs.DeploymentScaleSettingsArgs = com.pulumi.azurenative.cognitiveservices.inputs.DeploymentScaleSettingsArgs.builder()
        .capacity(capacity?.applyValue({ args0 -> args0 }))
        .scaleType(
            scaleType?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        ).build()
}

/**
 * Builder for [DeploymentScaleSettingsArgs].
 */
@PulumiTagMarker
public class DeploymentScaleSettingsArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var scaleType: Output>? = null

    /**
     * @param value Deployment capacity.
     */
    @JvmName("vcngwpgnpamihmuj")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value Deployment scale type.
     */
    @JvmName("semiwkcqhslepnao")
    public suspend fun scaleType(`value`: Output>) {
        this.scaleType = value
    }

    /**
     * @param value Deployment capacity.
     */
    @JvmName("kujjyvvbncudmluc")
    public suspend fun capacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param value Deployment scale type.
     */
    @JvmName("jkiqsxugpsfbfafg")
    public suspend fun scaleType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scaleType = mapped
    }

    /**
     * @param value Deployment scale type.
     */
    @JvmName("nuvjhkaplmrxwwhe")
    public fun scaleType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scaleType = mapped
    }

    /**
     * @param value Deployment scale type.
     */
    @JvmName("cecscbounkoravpx")
    public fun scaleType(`value`: DeploymentScaleType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scaleType = mapped
    }

    internal fun build(): DeploymentScaleSettingsArgs = DeploymentScaleSettingsArgs(
        capacity = capacity,
        scaleType = scaleType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy