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

com.pulumi.azure.keyvault.kotlin.inputs.CertifiateCertificatePolicyLifetimeActionArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyLifetimeActionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property action A `action` block as defined below.
 * @property trigger A `trigger` block as defined below.
 */
public data class CertifiateCertificatePolicyLifetimeActionArgs(
    public val action: Output,
    public val trigger: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyLifetimeActionArgs =
        com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyLifetimeActionArgs.builder()
            .action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .trigger(trigger.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CertifiateCertificatePolicyLifetimeActionArgs].
 */
@PulumiTagMarker
public class CertifiateCertificatePolicyLifetimeActionArgsBuilder internal constructor() {
    private var action: Output? = null

    private var trigger: Output? = null

    /**
     * @param value A `action` block as defined below.
     */
    @JvmName("shbddhctkcpimrxp")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value A `trigger` block as defined below.
     */
    @JvmName("jdvcowvutfppremp")
    public suspend
    fun trigger(`value`: Output) {
        this.trigger = value
    }

    /**
     * @param value A `action` block as defined below.
     */
    @JvmName("jcscykgqtapbshgj")
    public suspend fun action(`value`: CertifiateCertificatePolicyLifetimeActionActionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param argument A `action` block as defined below.
     */
    @JvmName("xblwqqgunhhowcgt")
    public suspend
    fun action(argument: suspend CertifiateCertificatePolicyLifetimeActionActionArgsBuilder.() -> Unit) {
        val toBeMapped = CertifiateCertificatePolicyLifetimeActionActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.action = mapped
    }

    /**
     * @param value A `trigger` block as defined below.
     */
    @JvmName("kdndpldrdtauxytu")
    public suspend fun trigger(`value`: CertifiateCertificatePolicyLifetimeActionTriggerArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trigger = mapped
    }

    /**
     * @param argument A `trigger` block as defined below.
     */
    @JvmName("xscjudfwltcgdsjg")
    public suspend
    fun trigger(argument: suspend CertifiateCertificatePolicyLifetimeActionTriggerArgsBuilder.() -> Unit) {
        val toBeMapped = CertifiateCertificatePolicyLifetimeActionTriggerArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.trigger = mapped
    }

    internal fun build(): CertifiateCertificatePolicyLifetimeActionArgs =
        CertifiateCertificatePolicyLifetimeActionArgs(
            action = action ?: throw PulumiNullFieldException("action"),
            trigger = trigger ?: throw PulumiNullFieldException("trigger"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy