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

com.pulumi.googlenative.datapipelines.v1.kotlin.inputs.GoogleCloudDatapipelinesV1ScheduleSpecArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.datapipelines.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.datapipelines.v1.inputs.GoogleCloudDatapipelinesV1ScheduleSpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Details of the schedule the pipeline runs on.
 * @property schedule Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
 * @property timeZone Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
 */
public data class GoogleCloudDatapipelinesV1ScheduleSpecArgs(
    public val schedule: Output? = null,
    public val timeZone: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.datapipelines.v1.inputs.GoogleCloudDatapipelinesV1ScheduleSpecArgs =
        com.pulumi.googlenative.datapipelines.v1.inputs.GoogleCloudDatapipelinesV1ScheduleSpecArgs.builder()
            .schedule(schedule?.applyValue({ args0 -> args0 }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleCloudDatapipelinesV1ScheduleSpecArgs].
 */
@PulumiTagMarker
public class GoogleCloudDatapipelinesV1ScheduleSpecArgsBuilder internal constructor() {
    private var schedule: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
     */
    @JvmName("kaovsbfeqardbfqt")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
     */
    @JvmName("ieetnpptdomjoghx")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
     */
    @JvmName("dvdykubvpofkwhej")
    public suspend fun schedule(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param value Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
     */
    @JvmName("iyqqcljmfktminnp")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): GoogleCloudDatapipelinesV1ScheduleSpecArgs =
        GoogleCloudDatapipelinesV1ScheduleSpecArgs(
            schedule = schedule,
            timeZone = timeZone,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy