com.pulumi.digitalocean.kotlin.inputs.AppSpecWorkerImageDeployOnPushArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecWorkerImageDeployOnPushArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled Whether to automatically deploy images pushed to DOCR.
*/
public data class AppSpecWorkerImageDeployOnPushArgs(
public val enabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecWorkerImageDeployOnPushArgs =
com.pulumi.digitalocean.inputs.AppSpecWorkerImageDeployOnPushArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecWorkerImageDeployOnPushArgs].
*/
@PulumiTagMarker
public class AppSpecWorkerImageDeployOnPushArgsBuilder internal constructor() {
private var enabled: Output? = null
/**
* @param value Whether to automatically deploy images pushed to DOCR.
*/
@JvmName("tbfsadosdtcmsnvf")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Whether to automatically deploy images pushed to DOCR.
*/
@JvmName("refbvefuwoxounle")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
internal fun build(): AppSpecWorkerImageDeployOnPushArgs = AppSpecWorkerImageDeployOnPushArgs(
enabled = enabled,
)
}