
com.pulumi.googlenative.osconfig.v1beta.kotlin.inputs.ExecStepArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.osconfig.v1beta.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.osconfig.v1beta.inputs.ExecStepArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A step that runs an executable for a PatchJob.
* @property linuxExecStepConfig The ExecStepConfig for all Linux VMs targeted by the PatchJob.
* @property windowsExecStepConfig The ExecStepConfig for all Windows VMs targeted by the PatchJob.
*/
public data class ExecStepArgs(
public val linuxExecStepConfig: Output? = null,
public val windowsExecStepConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.osconfig.v1beta.inputs.ExecStepArgs =
com.pulumi.googlenative.osconfig.v1beta.inputs.ExecStepArgs.builder()
.linuxExecStepConfig(
linuxExecStepConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.windowsExecStepConfig(
windowsExecStepConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ExecStepArgs].
*/
@PulumiTagMarker
public class ExecStepArgsBuilder internal constructor() {
private var linuxExecStepConfig: Output? = null
private var windowsExecStepConfig: Output? = null
/**
* @param value The ExecStepConfig for all Linux VMs targeted by the PatchJob.
*/
@JvmName("uvdmaykhljqcadwf")
public suspend fun linuxExecStepConfig(`value`: Output) {
this.linuxExecStepConfig = value
}
/**
* @param value The ExecStepConfig for all Windows VMs targeted by the PatchJob.
*/
@JvmName("ntujttjifsirukmn")
public suspend fun windowsExecStepConfig(`value`: Output) {
this.windowsExecStepConfig = value
}
/**
* @param value The ExecStepConfig for all Linux VMs targeted by the PatchJob.
*/
@JvmName("rlaluvcdsjoifxsw")
public suspend fun linuxExecStepConfig(`value`: ExecStepConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.linuxExecStepConfig = mapped
}
/**
* @param argument The ExecStepConfig for all Linux VMs targeted by the PatchJob.
*/
@JvmName("hbfcktlftucdhyrw")
public suspend fun linuxExecStepConfig(argument: suspend ExecStepConfigArgsBuilder.() -> Unit) {
val toBeMapped = ExecStepConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.linuxExecStepConfig = mapped
}
/**
* @param value The ExecStepConfig for all Windows VMs targeted by the PatchJob.
*/
@JvmName("bwxyebfxyjckvdaj")
public suspend fun windowsExecStepConfig(`value`: ExecStepConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.windowsExecStepConfig = mapped
}
/**
* @param argument The ExecStepConfig for all Windows VMs targeted by the PatchJob.
*/
@JvmName("gnhqafujabxyjsyj")
public suspend fun windowsExecStepConfig(argument: suspend ExecStepConfigArgsBuilder.() -> Unit) {
val toBeMapped = ExecStepConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.windowsExecStepConfig = mapped
}
internal fun build(): ExecStepArgs = ExecStepArgs(
linuxExecStepConfig = linuxExecStepConfig,
windowsExecStepConfig = windowsExecStepConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy