com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs.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
/**
*
* @property executable The executable to run for the `custom_action`.
* @property parameters The parameters to pass to the specified `executable`.
*/
public data class WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs(
public val executable: Output,
public val parameters: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs =
com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs.builder()
.executable(executable.applyValue({ args0 -> args0 }))
.parameters(parameters?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs].
*/
@PulumiTagMarker
public class WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgsBuilder internal constructor() {
private var executable: Output? = null
private var parameters: Output? = null
/**
* @param value The executable to run for the `custom_action`.
*/
@JvmName("pgqvlggfgoeifexu")
public suspend fun executable(`value`: Output) {
this.executable = value
}
/**
* @param value The parameters to pass to the specified `executable`.
*/
@JvmName("rniivxbekmfrwpta")
public suspend fun parameters(`value`: Output) {
this.parameters = value
}
/**
* @param value The executable to run for the `custom_action`.
*/
@JvmName("fthrpvhnmwbddtfu")
public suspend fun executable(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.executable = mapped
}
/**
* @param value The parameters to pass to the specified `executable`.
*/
@JvmName("fkrmcxcocndgefcp")
public suspend fun parameters(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
internal fun build(): WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs =
WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs(
executable = executable ?: throw PulumiNullFieldException("executable"),
parameters = parameters,
)
}