com.pulumi.azurenative.app.kotlin.inputs.BuildConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.BuildConfigurationArgs.builder
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.collections.List
import kotlin.jvm.JvmName
/**
* Configuration of the build.
* @property baseOs Base OS used to build and run the app.
* @property environmentVariables List of environment variables to be passed to the build.
* @property platform Platform to be used to build and run the app.
* @property platformVersion Platform version to be used to build and run the app.
* @property preBuildSteps List of steps to perform before the build.
*/
public data class BuildConfigurationArgs(
public val baseOs: Output? = null,
public val environmentVariables: Output>? = null,
public val platform: Output? = null,
public val platformVersion: Output? = null,
public val preBuildSteps: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.BuildConfigurationArgs =
com.pulumi.azurenative.app.inputs.BuildConfigurationArgs.builder()
.baseOs(baseOs?.applyValue({ args0 -> args0 }))
.environmentVariables(
environmentVariables?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.platform(platform?.applyValue({ args0 -> args0 }))
.platformVersion(platformVersion?.applyValue({ args0 -> args0 }))
.preBuildSteps(
preBuildSteps?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [BuildConfigurationArgs].
*/
@PulumiTagMarker
public class BuildConfigurationArgsBuilder internal constructor() {
private var baseOs: Output? = null
private var environmentVariables: Output>? = null
private var platform: Output? = null
private var platformVersion: Output? = null
private var preBuildSteps: Output>? = null
/**
* @param value Base OS used to build and run the app.
*/
@JvmName("ptvfokjqebyqxyej")
public suspend fun baseOs(`value`: Output) {
this.baseOs = value
}
/**
* @param value List of environment variables to be passed to the build.
*/
@JvmName("fakisefinhnalfln")
public suspend fun environmentVariables(`value`: Output>) {
this.environmentVariables = value
}
@JvmName("hlnmiufgidqcshgu")
public suspend fun environmentVariables(vararg values: Output) {
this.environmentVariables = Output.all(values.asList())
}
/**
* @param values List of environment variables to be passed to the build.
*/
@JvmName("tpeeovyuxoxpuedl")
public suspend fun environmentVariables(values: List