![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.TritonModelJobInputArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.TritonModelJobInputArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.InputDeliveryMode
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property description Description for the input.
* @property jobInputType Enum to determine the Job Input Type.
* Expected value is 'triton_model'.
* @property mode Input Asset Delivery Mode.
* @property uri [Required] Input Asset URI.
*/
public data class TritonModelJobInputArgs(
public val description: Output? = null,
public val jobInputType: Output,
public val mode: Output>? = null,
public val uri: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.TritonModelJobInputArgs =
com.pulumi.azurenative.machinelearningservices.inputs.TritonModelJobInputArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.jobInputType(jobInputType.applyValue({ args0 -> args0 }))
.mode(
mode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.uri(uri.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TritonModelJobInputArgs].
*/
@PulumiTagMarker
public class TritonModelJobInputArgsBuilder internal constructor() {
private var description: Output? = null
private var jobInputType: Output? = null
private var mode: Output>? = null
private var uri: Output? = null
/**
* @param value Description for the input.
*/
@JvmName("imuilyfujhyvamfx")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Enum to determine the Job Input Type.
* Expected value is 'triton_model'.
*/
@JvmName("hwlaitqwmaoiwqvj")
public suspend fun jobInputType(`value`: Output) {
this.jobInputType = value
}
/**
* @param value Input Asset Delivery Mode.
*/
@JvmName("uhjpdtuocobrebxh")
public suspend fun mode(`value`: Output>) {
this.mode = value
}
/**
* @param value [Required] Input Asset URI.
*/
@JvmName("bffcgdbgiapetsuh")
public suspend fun uri(`value`: Output) {
this.uri = value
}
/**
* @param value Description for the input.
*/
@JvmName("txjastvxfrmrmhwr")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Enum to determine the Job Input Type.
* Expected value is 'triton_model'.
*/
@JvmName("hqvcxyejexesexyp")
public suspend fun jobInputType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.jobInputType = mapped
}
/**
* @param value Input Asset Delivery Mode.
*/
@JvmName("kjiqvngtdhvwarxy")
public suspend fun mode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value Input Asset Delivery Mode.
*/
@JvmName("ixhpvroutufsinvm")
public fun mode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value Input Asset Delivery Mode.
*/
@JvmName("deygpuosskeikbnu")
public fun mode(`value`: InputDeliveryMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value [Required] Input Asset URI.
*/
@JvmName("pyhxoiihorlicacv")
public suspend fun uri(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.uri = mapped
}
internal fun build(): TritonModelJobInputArgs = TritonModelJobInputArgs(
description = description,
jobInputType = jobInputType ?: throw PulumiNullFieldException("jobInputType"),
mode = mode,
uri = uri ?: throw PulumiNullFieldException("uri"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy