com.pulumi.azure.cognitive.kotlin.inputs.DeploymentModelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cognitive.kotlin.inputs
import com.pulumi.azure.cognitive.inputs.DeploymentModelArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property format The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is `OpenAI`.
* @property name The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
* @property version The version of Cognitive Services Account Deployment model. If `version` is not specified, the default version of the model at the time will be assigned.
*/
public data class DeploymentModelArgs(
public val format: Output,
public val name: Output,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cognitive.inputs.DeploymentModelArgs =
com.pulumi.azure.cognitive.inputs.DeploymentModelArgs.builder()
.format(format.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeploymentModelArgs].
*/
@PulumiTagMarker
public class DeploymentModelArgsBuilder internal constructor() {
private var format: Output? = null
private var name: Output? = null
private var version: Output? = null
/**
* @param value The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is `OpenAI`.
*/
@JvmName("fmfisvswedymrsaw")
public suspend fun format(`value`: Output) {
this.format = value
}
/**
* @param value The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
*/
@JvmName("gggccihakmcxjtoq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The version of Cognitive Services Account Deployment model. If `version` is not specified, the default version of the model at the time will be assigned.
*/
@JvmName("fdomnqgqdscyxxig")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is `OpenAI`.
*/
@JvmName("ocogsmahoqipnrho")
public suspend fun format(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.format = mapped
}
/**
* @param value The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
*/
@JvmName("etijtkbcmjsrnaww")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The version of Cognitive Services Account Deployment model. If `version` is not specified, the default version of the model at the time will be assigned.
*/
@JvmName("ptpqawuhgrabtxmj")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): DeploymentModelArgs = DeploymentModelArgs(
format = format ?: throw PulumiNullFieldException("format"),
name = name ?: throw PulumiNullFieldException("name"),
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy