com.pulumi.azurenative.app.kotlin.inputs.PreBuildStepArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.PreBuildStepArgs.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
/**
* Model representing a pre-build step.
* @property description Description of the pre-build step.
* @property httpGet Http get request to send before the build.
* @property scripts List of custom commands to run.
*/
public data class PreBuildStepArgs(
public val description: Output? = null,
public val httpGet: Output? = null,
public val scripts: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.PreBuildStepArgs =
com.pulumi.azurenative.app.inputs.PreBuildStepArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.httpGet(httpGet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.scripts(scripts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [PreBuildStepArgs].
*/
@PulumiTagMarker
public class PreBuildStepArgsBuilder internal constructor() {
private var description: Output? = null
private var httpGet: Output? = null
private var scripts: Output>? = null
/**
* @param value Description of the pre-build step.
*/
@JvmName("scpshvokcrlgghfq")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Http get request to send before the build.
*/
@JvmName("gghaqujvjfdynmyi")
public suspend fun httpGet(`value`: Output) {
this.httpGet = value
}
/**
* @param value List of custom commands to run.
*/
@JvmName("tgxxjvtswhnvymae")
public suspend fun scripts(`value`: Output>) {
this.scripts = value
}
@JvmName("ijbjhsvnqyefiugc")
public suspend fun scripts(vararg values: Output) {
this.scripts = Output.all(values.asList())
}
/**
* @param values List of custom commands to run.
*/
@JvmName("bntnmkrjjokrvbse")
public suspend fun scripts(values: List