com.pulumi.digitalocean.kotlin.inputs.AppSpecServiceImageDeployOnPushArgs.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.AppSpecServiceImageDeployOnPushArgs.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 AppSpecServiceImageDeployOnPushArgs(
public val enabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecServiceImageDeployOnPushArgs =
com.pulumi.digitalocean.inputs.AppSpecServiceImageDeployOnPushArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecServiceImageDeployOnPushArgs].
*/
@PulumiTagMarker
public class AppSpecServiceImageDeployOnPushArgsBuilder internal constructor() {
private var enabled: Output? = null
/**
* @param value Whether to automatically deploy images pushed to DOCR.
*/
@JvmName("rdpmaafighyfkukl")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Whether to automatically deploy images pushed to DOCR.
*/
@JvmName("wfujemptjrwbbrdp")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
internal fun build(): AppSpecServiceImageDeployOnPushArgs = AppSpecServiceImageDeployOnPushArgs(
enabled = enabled,
)
}