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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryTaskBaseImageTriggerArgs.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.RegistryTaskBaseImageTriggerArgs.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 type The type of the trigger. Possible values are `All` and `Runtime`.
 * @property updateTriggerEndpoint The endpoint URL for receiving the trigger.
 * @property updateTriggerPayloadType Type of payload body for the trigger. Possible values are `Default` and `Token`.
 */
public data class RegistryTaskBaseImageTriggerArgs(
    public val enabled: Output? = null,
    public val name: Output,
    public val type: Output,
    public val updateTriggerEndpoint: Output? = null,
    public val updateTriggerPayloadType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryTaskBaseImageTriggerArgs =
        com.pulumi.azure.containerservice.inputs.RegistryTaskBaseImageTriggerArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .updateTriggerEndpoint(updateTriggerEndpoint?.applyValue({ args0 -> args0 }))
            .updateTriggerPayloadType(updateTriggerPayloadType?.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var type: Output? = null

    private var updateTriggerEndpoint: Output? = null

    private var updateTriggerPayloadType: Output? = null

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

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

    /**
     * @param value The type of the trigger. Possible values are `All` and `Runtime`.
     */
    @JvmName("olwxpnwfpfwbkgdq")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The endpoint URL for receiving the trigger.
     */
    @JvmName("iyghkabrrynodmlk")
    public suspend fun updateTriggerEndpoint(`value`: Output) {
        this.updateTriggerEndpoint = value
    }

    /**
     * @param value Type of payload body for the trigger. Possible values are `Default` and `Token`.
     */
    @JvmName("bpdslbibujklggel")
    public suspend fun updateTriggerPayloadType(`value`: Output) {
        this.updateTriggerPayloadType = value
    }

    /**
     * @param value Should the trigger be enabled? Defaults to `true`.
     */
    @JvmName("kwydnkacaihdqwoh")
    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("nbdydlnqoqbgjmxm")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The type of the trigger. Possible values are `All` and `Runtime`.
     */
    @JvmName("swqfmusigheknnim")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The endpoint URL for receiving the trigger.
     */
    @JvmName("gcktuisoxqxkayen")
    public suspend fun updateTriggerEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updateTriggerEndpoint = mapped
    }

    /**
     * @param value Type of payload body for the trigger. Possible values are `Default` and `Token`.
     */
    @JvmName("byyfhxnjkrrplbix")
    public suspend fun updateTriggerPayloadType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updateTriggerPayloadType = mapped
    }

    internal fun build(): RegistryTaskBaseImageTriggerArgs = RegistryTaskBaseImageTriggerArgs(
        enabled = enabled,
        name = name ?: throw PulumiNullFieldException("name"),
        type = type ?: throw PulumiNullFieldException("type"),
        updateTriggerEndpoint = updateTriggerEndpoint,
        updateTriggerPayloadType = updateTriggerPayloadType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy