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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryTaskTimerTriggerArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.RegistryTaskTimerTriggerArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Should the trigger be enabled? Defaults to `true`.
 * @property name The name which should be used for this trigger.
 * @property schedule The CRON expression for the task schedule.
 */
public data class RegistryTaskTimerTriggerArgs(
    public val enabled: Output? = null,
    public val name: Output,
    public val schedule: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryTaskTimerTriggerArgs =
        com.pulumi.azure.containerservice.inputs.RegistryTaskTimerTriggerArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .schedule(schedule.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var schedule: Output? = null

    /**
     * @param value Should the trigger be enabled? Defaults to `true`.
     */
    @JvmName("wtuhtkxlgmrnueqv")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name which should be used for this trigger.
     */
    @JvmName("msusmkdmmxbqbbnm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The CRON expression for the task schedule.
     */
    @JvmName("hlbdlvwekavnoyed")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value Should the trigger be enabled? Defaults to `true`.
     */
    @JvmName("vdfvkgtqarlhpuuk")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The name which should be used for this trigger.
     */
    @JvmName("blloutibnlqrowvb")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The CRON expression for the task schedule.
     */
    @JvmName("buvtoiyqoxbksiej")
    public suspend fun schedule(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    internal fun build(): RegistryTaskTimerTriggerArgs = RegistryTaskTimerTriggerArgs(
        enabled = enabled,
        name = name ?: throw PulumiNullFieldException("name"),
        schedule = schedule ?: throw PulumiNullFieldException("schedule"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy