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

com.pulumi.azurenative.cognitiveservices.kotlin.inputs.DeploymentPropertiesArgs.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.cognitiveservices.kotlin.inputs

import com.pulumi.azurenative.cognitiveservices.inputs.DeploymentPropertiesArgs.builder
import com.pulumi.azurenative.cognitiveservices.kotlin.enums.DeploymentModelVersionUpgradeOption
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Properties of Cognitive Services account deployment.
 * @property model Properties of Cognitive Services account deployment model.
 * @property raiPolicyName The name of RAI policy.
 * @property scaleSettings Properties of Cognitive Services account deployment model.
 * @property versionUpgradeOption Deployment model version upgrade option.
 */
public data class DeploymentPropertiesArgs(
    public val model: Output? = null,
    public val raiPolicyName: Output? = null,
    public val scaleSettings: Output? = null,
    public val versionUpgradeOption: Output>? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cognitiveservices.inputs.DeploymentPropertiesArgs =
        com.pulumi.azurenative.cognitiveservices.inputs.DeploymentPropertiesArgs.builder()
            .model(model?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .raiPolicyName(raiPolicyName?.applyValue({ args0 -> args0 }))
            .scaleSettings(scaleSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .versionUpgradeOption(
                versionUpgradeOption?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

/**
 * Builder for [DeploymentPropertiesArgs].
 */
@PulumiTagMarker
public class DeploymentPropertiesArgsBuilder internal constructor() {
    private var model: Output? = null

    private var raiPolicyName: Output? = null

    private var scaleSettings: Output? = null

    private var versionUpgradeOption: Output>? =
        null

    /**
     * @param value Properties of Cognitive Services account deployment model.
     */
    @JvmName("uyhpyiehpprljcfm")
    public suspend fun model(`value`: Output) {
        this.model = value
    }

    /**
     * @param value The name of RAI policy.
     */
    @JvmName("kqursuxudssnvlgk")
    public suspend fun raiPolicyName(`value`: Output) {
        this.raiPolicyName = value
    }

    /**
     * @param value Properties of Cognitive Services account deployment model.
     */
    @JvmName("pvwjupjpavcgewny")
    public suspend fun scaleSettings(`value`: Output) {
        this.scaleSettings = value
    }

    /**
     * @param value Deployment model version upgrade option.
     */
    @JvmName("vopeliiajndnwpyk")
    public suspend fun versionUpgradeOption(`value`: Output>) {
        this.versionUpgradeOption = value
    }

    /**
     * @param value Properties of Cognitive Services account deployment model.
     */
    @JvmName("rqboqmvtwudkknas")
    public suspend fun model(`value`: DeploymentModelArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.model = mapped
    }

    /**
     * @param argument Properties of Cognitive Services account deployment model.
     */
    @JvmName("kahqrhnjrmubaebw")
    public suspend fun model(argument: suspend DeploymentModelArgsBuilder.() -> Unit) {
        val toBeMapped = DeploymentModelArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.model = mapped
    }

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

    /**
     * @param value Properties of Cognitive Services account deployment model.
     */
    @JvmName("atbywwhylxtwsdbh")
    public suspend fun scaleSettings(`value`: DeploymentScaleSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scaleSettings = mapped
    }

    /**
     * @param argument Properties of Cognitive Services account deployment model.
     */
    @JvmName("mcldpqloiotvuses")
    public suspend fun scaleSettings(argument: suspend DeploymentScaleSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = DeploymentScaleSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.scaleSettings = mapped
    }

    /**
     * @param value Deployment model version upgrade option.
     */
    @JvmName("yektipedgsbfvson")
    public suspend fun versionUpgradeOption(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versionUpgradeOption = mapped
    }

    /**
     * @param value Deployment model version upgrade option.
     */
    @JvmName("mfbmogcjdkubsaak")
    public fun versionUpgradeOption(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.versionUpgradeOption = mapped
    }

    /**
     * @param value Deployment model version upgrade option.
     */
    @JvmName("epaprnmnvaltawit")
    public fun versionUpgradeOption(`value`: DeploymentModelVersionUpgradeOption) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.versionUpgradeOption = mapped
    }

    internal fun build(): DeploymentPropertiesArgs = DeploymentPropertiesArgs(
        model = model,
        raiPolicyName = raiPolicyName,
        scaleSettings = scaleSettings,
        versionUpgradeOption = versionUpgradeOption,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy