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

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

package com.pulumi.gcp.dataplex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecTriggerArgs.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 onDemand The scan runs once via dataScans.run API.
 * @property schedule The scan is scheduled to run periodically.
 * Structure is documented below.
 */
public data class DatascanExecutionSpecTriggerArgs(
    public val onDemand: Output? = null,
    public val schedule: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecTriggerArgs =
        com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecTriggerArgs.builder()
            .onDemand(onDemand?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DatascanExecutionSpecTriggerArgs].
 */
@PulumiTagMarker
public class DatascanExecutionSpecTriggerArgsBuilder internal constructor() {
    private var onDemand: Output? = null

    private var schedule: Output? = null

    /**
     * @param value The scan runs once via dataScans.run API.
     */
    @JvmName("jncuflmpnphowuvu")
    public suspend fun onDemand(`value`: Output) {
        this.onDemand = value
    }

    /**
     * @param value The scan is scheduled to run periodically.
     * Structure is documented below.
     */
    @JvmName("kjlsybtwtrmyynha")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value The scan runs once via dataScans.run API.
     */
    @JvmName("lbvqsdpkmyssisty")
    public suspend fun onDemand(`value`: DatascanExecutionSpecTriggerOnDemandArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onDemand = mapped
    }

    /**
     * @param argument The scan runs once via dataScans.run API.
     */
    @JvmName("mqdsdhwxdscbspwm")
    public suspend fun onDemand(argument: suspend DatascanExecutionSpecTriggerOnDemandArgsBuilder.() -> Unit) {
        val toBeMapped = DatascanExecutionSpecTriggerOnDemandArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.onDemand = mapped
    }

    /**
     * @param value The scan is scheduled to run periodically.
     * Structure is documented below.
     */
    @JvmName("pgvmxbcxvtolefeg")
    public suspend fun schedule(`value`: DatascanExecutionSpecTriggerScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument The scan is scheduled to run periodically.
     * Structure is documented below.
     */
    @JvmName("ugcpaichompeajsb")
    public suspend fun schedule(argument: suspend DatascanExecutionSpecTriggerScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = DatascanExecutionSpecTriggerScheduleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    internal fun build(): DatascanExecutionSpecTriggerArgs = DatascanExecutionSpecTriggerArgs(
        onDemand = onDemand,
        schedule = schedule,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy