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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerTriggerArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property manual For use with hybrid jobs. Jobs must be manually created and finished.
 * @property schedule Schedule for triggered jobs
 * Structure is documented below.
 */
public data class PreventionJobTriggerTriggerArgs(
    public val manual: Output? = null,
    public val schedule: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerTriggerArgs.builder()
            .manual(manual?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PreventionJobTriggerTriggerArgs].
 */
@PulumiTagMarker
public class PreventionJobTriggerTriggerArgsBuilder internal constructor() {
    private var manual: Output? = null

    private var schedule: Output? = null

    /**
     * @param value For use with hybrid jobs. Jobs must be manually created and finished.
     */
    @JvmName("krnfhayawexvkidd")
    public suspend fun manual(`value`: Output) {
        this.manual = value
    }

    /**
     * @param value Schedule for triggered jobs
     * Structure is documented below.
     */
    @JvmName("qniyvsxomonarypd")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value For use with hybrid jobs. Jobs must be manually created and finished.
     */
    @JvmName("hptmssxjipahrkaw")
    public suspend fun manual(`value`: PreventionJobTriggerTriggerManualArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manual = mapped
    }

    /**
     * @param argument For use with hybrid jobs. Jobs must be manually created and finished.
     */
    @JvmName("kkdsclfsanqiidvn")
    public suspend fun manual(argument: suspend PreventionJobTriggerTriggerManualArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionJobTriggerTriggerManualArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.manual = mapped
    }

    /**
     * @param value Schedule for triggered jobs
     * Structure is documented below.
     */
    @JvmName("lngdlyvsokgivqjy")
    public suspend fun schedule(`value`: PreventionJobTriggerTriggerScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument Schedule for triggered jobs
     * Structure is documented below.
     */
    @JvmName("rstjqqdbcjoyumxj")
    public suspend fun schedule(argument: suspend PreventionJobTriggerTriggerScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionJobTriggerTriggerScheduleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    internal fun build(): PreventionJobTriggerTriggerArgs = PreventionJobTriggerTriggerArgs(
        manual = manual,
        schedule = schedule,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy