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

com.pulumi.azurenative.dataprotection.kotlin.inputs.ScheduleBasedTriggerContextArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.dataprotection.kotlin.inputs

import com.pulumi.azurenative.dataprotection.inputs.ScheduleBasedTriggerContextArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Schedule based trigger context
 * @property objectType Type of the specific object - used for deserializing
 * Expected value is 'ScheduleBasedTriggerContext'.
 * @property schedule Schedule for this backup
 * @property taggingCriteria List of tags that can be applicable for given schedule.
 */
public data class ScheduleBasedTriggerContextArgs(
    public val objectType: Output,
    public val schedule: Output,
    public val taggingCriteria: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.dataprotection.inputs.ScheduleBasedTriggerContextArgs =
        com.pulumi.azurenative.dataprotection.inputs.ScheduleBasedTriggerContextArgs.builder()
            .objectType(objectType.applyValue({ args0 -> args0 }))
            .schedule(schedule.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .taggingCriteria(
                taggingCriteria.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ScheduleBasedTriggerContextArgs].
 */
@PulumiTagMarker
public class ScheduleBasedTriggerContextArgsBuilder internal constructor() {
    private var objectType: Output? = null

    private var schedule: Output? = null

    private var taggingCriteria: Output>? = null

    /**
     * @param value Type of the specific object - used for deserializing
     * Expected value is 'ScheduleBasedTriggerContext'.
     */
    @JvmName("quhtvejwgxngnwwh")
    public suspend fun objectType(`value`: Output) {
        this.objectType = value
    }

    /**
     * @param value Schedule for this backup
     */
    @JvmName("ijrpeqfqtmpfrbsp")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value List of tags that can be applicable for given schedule.
     */
    @JvmName("vrbgatrtdvropraa")
    public suspend fun taggingCriteria(`value`: Output>) {
        this.taggingCriteria = value
    }

    @JvmName("njackyxmvxajipsu")
    public suspend fun taggingCriteria(vararg values: Output) {
        this.taggingCriteria = Output.all(values.asList())
    }

    /**
     * @param values List of tags that can be applicable for given schedule.
     */
    @JvmName("rurwvpxpkgrslikr")
    public suspend fun taggingCriteria(values: List>) {
        this.taggingCriteria = Output.all(values)
    }

    /**
     * @param value Type of the specific object - used for deserializing
     * Expected value is 'ScheduleBasedTriggerContext'.
     */
    @JvmName("jxyvtxervrhwhkhh")
    public suspend fun objectType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.objectType = mapped
    }

    /**
     * @param value Schedule for this backup
     */
    @JvmName("rxupmntrnjuudodm")
    public suspend fun schedule(`value`: BackupScheduleArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument Schedule for this backup
     */
    @JvmName("rpupxqlrnydnkqfr")
    public suspend fun schedule(argument: suspend BackupScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = BackupScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    /**
     * @param value List of tags that can be applicable for given schedule.
     */
    @JvmName("pbaklpnfotnaauyb")
    public suspend fun taggingCriteria(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taggingCriteria = mapped
    }

    /**
     * @param argument List of tags that can be applicable for given schedule.
     */
    @JvmName("nognfvuyvlfcfaxg")
    public suspend fun taggingCriteria(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TaggingCriteriaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taggingCriteria = mapped
    }

    /**
     * @param argument List of tags that can be applicable for given schedule.
     */
    @JvmName("indmbrhommtvlyeu")
    public suspend fun taggingCriteria(vararg argument: suspend TaggingCriteriaArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TaggingCriteriaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taggingCriteria = mapped
    }

    /**
     * @param argument List of tags that can be applicable for given schedule.
     */
    @JvmName("dlltybrhpwdkywbw")
    public suspend fun taggingCriteria(argument: suspend TaggingCriteriaArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TaggingCriteriaArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.taggingCriteria = mapped
    }

    /**
     * @param values List of tags that can be applicable for given schedule.
     */
    @JvmName("gnhdyanfqjlxdnrj")
    public suspend fun taggingCriteria(vararg values: TaggingCriteriaArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taggingCriteria = mapped
    }

    internal fun build(): ScheduleBasedTriggerContextArgs = ScheduleBasedTriggerContextArgs(
        objectType = objectType ?: throw PulumiNullFieldException("objectType"),
        schedule = schedule ?: throw PulumiNullFieldException("schedule"),
        taggingCriteria = taggingCriteria ?: throw PulumiNullFieldException("taggingCriteria"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy