All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.digitalocean.kotlin.inputs.AppSpecJobImageDeployOnPushArgs.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.AppSpecJobImageDeployOnPushArgs.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 AppSpecJobImageDeployOnPushArgs(
    public val enabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecJobImageDeployOnPushArgs =
        com.pulumi.digitalocean.inputs.AppSpecJobImageDeployOnPushArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecJobImageDeployOnPushArgs].
 */
@PulumiTagMarker
public class AppSpecJobImageDeployOnPushArgsBuilder internal constructor() {
    private var enabled: Output? = null

    /**
     * @param value Whether to automatically deploy images pushed to DOCR.
     */
    @JvmName("nthotrnyhtfkuppy")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Whether to automatically deploy images pushed to DOCR.
     */
    @JvmName("irxdivwlggsfkgdk")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): AppSpecJobImageDeployOnPushArgs = AppSpecJobImageDeployOnPushArgs(
        enabled = enabled,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy