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

com.pulumi.gcp.dataplex.kotlin.inputs.DatascanExecutionSpecTriggerScheduleArgs.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.13.1.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.DatascanExecutionSpecTriggerScheduleArgs.builder
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

/**
 *
 * @property cron Cron schedule for running scans periodically. This field is required for Schedule scans.
 * - - -
 */
public data class DatascanExecutionSpecTriggerScheduleArgs(
    public val cron: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecTriggerScheduleArgs =
        com.pulumi.gcp.dataplex.inputs.DatascanExecutionSpecTriggerScheduleArgs.builder()
            .cron(cron.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatascanExecutionSpecTriggerScheduleArgs].
 */
@PulumiTagMarker
public class DatascanExecutionSpecTriggerScheduleArgsBuilder internal constructor() {
    private var cron: Output? = null

    /**
     * @param value Cron schedule for running scans periodically. This field is required for Schedule scans.
     * - - -
     */
    @JvmName("qknqkwgrihkxhyfo")
    public suspend fun cron(`value`: Output) {
        this.cron = value
    }

    /**
     * @param value Cron schedule for running scans periodically. This field is required for Schedule scans.
     * - - -
     */
    @JvmName("xwrnhcnjnuekgpkt")
    public suspend fun cron(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cron = mapped
    }

    internal fun build(): DatascanExecutionSpecTriggerScheduleArgs =
        DatascanExecutionSpecTriggerScheduleArgs(
            cron = cron ?: throw PulumiNullFieldException("cron"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy