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

com.pulumi.azurenative.containerregistry.kotlin.inputs.BaseImageTriggerArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.containerregistry.kotlin.inputs

import com.pulumi.azurenative.containerregistry.inputs.BaseImageTriggerArgs.builder
import com.pulumi.azurenative.containerregistry.kotlin.enums.BaseImageTriggerType
import com.pulumi.azurenative.containerregistry.kotlin.enums.TriggerStatus
import com.pulumi.azurenative.containerregistry.kotlin.enums.UpdateTriggerPayloadType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The trigger based on base image dependency.
 * @property baseImageTriggerType The type of the auto trigger for base image dependency updates.
 * @property name The name of the trigger.
 * @property status The current status of trigger.
 * @property updateTriggerEndpoint The endpoint URL for receiving update triggers.
 * @property updateTriggerPayloadType Type of Payload body for Base image update triggers.
 */
public data class BaseImageTriggerArgs(
    public val baseImageTriggerType: Output>,
    public val name: Output,
    public val status: Output>? = null,
    public val updateTriggerEndpoint: Output? = null,
    public val updateTriggerPayloadType: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.BaseImageTriggerArgs =
        com.pulumi.azurenative.containerregistry.inputs.BaseImageTriggerArgs.builder()
            .baseImageTriggerType(
                baseImageTriggerType.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .status(
                status?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .updateTriggerEndpoint(updateTriggerEndpoint?.applyValue({ args0 -> args0 }))
            .updateTriggerPayloadType(
                updateTriggerPayloadType?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

/**
 * Builder for [BaseImageTriggerArgs].
 */
@PulumiTagMarker
public class BaseImageTriggerArgsBuilder internal constructor() {
    private var baseImageTriggerType: Output>? = null

    private var name: Output? = null

    private var status: Output>? = null

    private var updateTriggerEndpoint: Output? = null

    private var updateTriggerPayloadType: Output>? = null

    /**
     * @param value The type of the auto trigger for base image dependency updates.
     */
    @JvmName("exnksdgxobxkbdgs")
    public suspend fun baseImageTriggerType(`value`: Output>) {
        this.baseImageTriggerType = value
    }

    /**
     * @param value The name of the trigger.
     */
    @JvmName("gqlvtkyjkksthhlp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The current status of trigger.
     */
    @JvmName("fhadwqyivotrgnpv")
    public suspend fun status(`value`: Output>) {
        this.status = value
    }

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

    /**
     * @param value Type of Payload body for Base image update triggers.
     */
    @JvmName("mfpxhgkpcanwnluv")
    public suspend fun updateTriggerPayloadType(`value`: Output>) {
        this.updateTriggerPayloadType = value
    }

    /**
     * @param value The type of the auto trigger for base image dependency updates.
     */
    @JvmName("uequuvgynggbdkyy")
    public suspend fun baseImageTriggerType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.baseImageTriggerType = mapped
    }

    /**
     * @param value The type of the auto trigger for base image dependency updates.
     */
    @JvmName("jvtojmjetsublkbv")
    public fun baseImageTriggerType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.baseImageTriggerType = mapped
    }

    /**
     * @param value The type of the auto trigger for base image dependency updates.
     */
    @JvmName("tuxcswnaivfnrttb")
    public fun baseImageTriggerType(`value`: BaseImageTriggerType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.baseImageTriggerType = mapped
    }

    /**
     * @param value The name of the trigger.
     */
    @JvmName("iaefxvqtsrjwsymj")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The current status of trigger.
     */
    @JvmName("flwcfonwkbhhvjae")
    public suspend fun status(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The current status of trigger.
     */
    @JvmName("mhmgwbpephtcetjx")
    public fun status(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The current status of trigger.
     */
    @JvmName("xxxpqqyankwblcmd")
    public fun status(`value`: TriggerStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The endpoint URL for receiving update triggers.
     */
    @JvmName("raqghwbgtelmwrse")
    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 Base image update triggers.
     */
    @JvmName("mljrhyfwnppjdccg")
    public suspend fun updateTriggerPayloadType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updateTriggerPayloadType = mapped
    }

    /**
     * @param value Type of Payload body for Base image update triggers.
     */
    @JvmName("tjntuicevrukhbij")
    public fun updateTriggerPayloadType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.updateTriggerPayloadType = mapped
    }

    /**
     * @param value Type of Payload body for Base image update triggers.
     */
    @JvmName("ikxnyokwrakqnffo")
    public fun updateTriggerPayloadType(`value`: UpdateTriggerPayloadType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.updateTriggerPayloadType = mapped
    }

    internal fun build(): BaseImageTriggerArgs = BaseImageTriggerArgs(
        baseImageTriggerType = baseImageTriggerType ?: throw
            PulumiNullFieldException("baseImageTriggerType"),
        name = name ?: throw PulumiNullFieldException("name"),
        status = status,
        updateTriggerEndpoint = updateTriggerEndpoint,
        updateTriggerPayloadType = updateTriggerPayloadType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy