com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentPatchConfigPreStepArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.osconfig.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPreStepArgs.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
/**
*
* @property linuxExecStepConfig The ExecStepConfig for all Linux VMs targeted by the PatchJob.
* Structure is documented below.
* @property windowsExecStepConfig The ExecStepConfig for all Windows VMs targeted by the PatchJob.
* Structure is documented below.
*/
public data class PatchDeploymentPatchConfigPreStepArgs(
public val linuxExecStepConfig: Output? =
null,
public val windowsExecStepConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPreStepArgs =
com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPreStepArgs.builder()
.linuxExecStepConfig(
linuxExecStepConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.windowsExecStepConfig(
windowsExecStepConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PatchDeploymentPatchConfigPreStepArgs].
*/
@PulumiTagMarker
public class PatchDeploymentPatchConfigPreStepArgsBuilder internal constructor() {
private var linuxExecStepConfig: Output? =
null
private var windowsExecStepConfig:
Output? = null
/**
* @param value The ExecStepConfig for all Linux VMs targeted by the PatchJob.
* Structure is documented below.
*/
@JvmName("ftfiderrdixqmcns")
public suspend fun linuxExecStepConfig(`value`: Output) {
this.linuxExecStepConfig = value
}
/**
* @param value The ExecStepConfig for all Windows VMs targeted by the PatchJob.
* Structure is documented below.
*/
@JvmName("albouysajuuqidyx")
public suspend fun windowsExecStepConfig(`value`: Output) {
this.windowsExecStepConfig = value
}
/**
* @param value The ExecStepConfig for all Linux VMs targeted by the PatchJob.
* Structure is documented below.
*/
@JvmName("utdjlecvegquadml")
public suspend fun linuxExecStepConfig(`value`: PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs?) {
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.
* Structure is documented below.
*/
@JvmName("pfbkcsijalibqses")
public suspend fun linuxExecStepConfig(argument: suspend PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgsBuilder.() -> Unit) {
val toBeMapped = PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.linuxExecStepConfig = mapped
}
/**
* @param value The ExecStepConfig for all Windows VMs targeted by the PatchJob.
* Structure is documented below.
*/
@JvmName("sjlqersjcvmsvwyj")
public suspend fun windowsExecStepConfig(`value`: PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs?) {
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.
* Structure is documented below.
*/
@JvmName("tiawhgxipewkyyjk")
public suspend fun windowsExecStepConfig(argument: suspend PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgsBuilder.() -> Unit) {
val toBeMapped =
PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.windowsExecStepConfig = mapped
}
internal fun build(): PatchDeploymentPatchConfigPreStepArgs =
PatchDeploymentPatchConfigPreStepArgs(
linuxExecStepConfig = linuxExecStepConfig,
windowsExecStepConfig = windowsExecStepConfig,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy