
com.pulumi.azurenative.appplatform.kotlin.inputs.BuildResultUserSourceInfoArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.appplatform.kotlin.inputs
import com.pulumi.azurenative.appplatform.inputs.BuildResultUserSourceInfoArgs.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
/**
* Reference to a build result
* @property buildResultId Resource id of an existing succeeded build result under the same Spring instance.
* @property type Type of the source uploaded
* Expected value is 'BuildResult'.
* @property version Version of the source
*/
public data class BuildResultUserSourceInfoArgs(
public val buildResultId: Output? = null,
public val type: Output,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appplatform.inputs.BuildResultUserSourceInfoArgs =
com.pulumi.azurenative.appplatform.inputs.BuildResultUserSourceInfoArgs.builder()
.buildResultId(buildResultId?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BuildResultUserSourceInfoArgs].
*/
@PulumiTagMarker
public class BuildResultUserSourceInfoArgsBuilder internal constructor() {
private var buildResultId: Output? = null
private var type: Output? = null
private var version: Output? = null
/**
* @param value Resource id of an existing succeeded build result under the same Spring instance.
*/
@JvmName("ustwksqjspaooebs")
public suspend fun buildResultId(`value`: Output) {
this.buildResultId = value
}
/**
* @param value Type of the source uploaded
* Expected value is 'BuildResult'.
*/
@JvmName("rpqtxujlvdtrhwxw")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Version of the source
*/
@JvmName("eoshpsclonbwhpdm")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Resource id of an existing succeeded build result under the same Spring instance.
*/
@JvmName("vhoghblxlcejryyg")
public suspend fun buildResultId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.buildResultId = mapped
}
/**
* @param value Type of the source uploaded
* Expected value is 'BuildResult'.
*/
@JvmName("jjlyiwfxwxdiymbh")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Version of the source
*/
@JvmName("dnyreujdylfdamxs")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): BuildResultUserSourceInfoArgs = BuildResultUserSourceInfoArgs(
buildResultId = buildResultId,
type = type ?: throw PulumiNullFieldException("type"),
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy