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

com.pulumi.awsnative.databrew.kotlin.ScheduleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.databrew.kotlin

import com.pulumi.awsnative.databrew.ScheduleArgs.builder
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * Resource schema for AWS::DataBrew::Schedule.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property cronExpression Schedule cron
 * @property jobNames A list of jobs to be run, according to the schedule.
 * @property name Schedule Name
 * @property tags Metadata tags that have been applied to the schedule.
 */
public data class ScheduleArgs(
    public val cronExpression: Output? = null,
    public val jobNames: Output>? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.ScheduleArgs =
        com.pulumi.awsnative.databrew.ScheduleArgs.builder()
            .cronExpression(cronExpression?.applyValue({ args0 -> args0 }))
            .jobNames(jobNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ScheduleArgs].
 */
@PulumiTagMarker
public class ScheduleArgsBuilder internal constructor() {
    private var cronExpression: Output? = null

    private var jobNames: Output>? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Schedule cron
     */
    @JvmName("ajumsfaknmashyeh")
    public suspend fun cronExpression(`value`: Output) {
        this.cronExpression = value
    }

    /**
     * @param value A list of jobs to be run, according to the schedule.
     */
    @JvmName("yqnlmlkfdeoqjpan")
    public suspend fun jobNames(`value`: Output>) {
        this.jobNames = value
    }

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

    /**
     * @param values A list of jobs to be run, according to the schedule.
     */
    @JvmName("wisvibvrgajuqkqk")
    public suspend fun jobNames(values: List>) {
        this.jobNames = Output.all(values)
    }

    /**
     * @param value Schedule Name
     */
    @JvmName("ohvefeqvrrcrqlvu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Metadata tags that have been applied to the schedule.
     */
    @JvmName("ammfygfgnqbebgtw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata tags that have been applied to the schedule.
     */
    @JvmName("bqtwjlyjcqxwqhxt")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Schedule cron
     */
    @JvmName("jnpwovmmlxrnledr")
    public suspend fun cronExpression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cronExpression = mapped
    }

    /**
     * @param value A list of jobs to be run, according to the schedule.
     */
    @JvmName("garcjukymahvimnu")
    public suspend fun jobNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobNames = mapped
    }

    /**
     * @param values A list of jobs to be run, according to the schedule.
     */
    @JvmName("fumdudfpggeksxit")
    public suspend fun jobNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jobNames = mapped
    }

    /**
     * @param value Schedule Name
     */
    @JvmName("dbcuxvmeryyvxaco")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Metadata tags that have been applied to the schedule.
     */
    @JvmName("kauvgdaaidcgmpiw")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata tags that have been applied to the schedule.
     */
    @JvmName("sunhqbpowihumdnt")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata tags that have been applied to the schedule.
     */
    @JvmName("mbtmwwrsxtfnvauh")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata tags that have been applied to the schedule.
     */
    @JvmName("iivmirxjobfjmkso")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata tags that have been applied to the schedule.
     */
    @JvmName("qcxoogcsfawjekym")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ScheduleArgs = ScheduleArgs(
        cronExpression = cronExpression,
        jobNames = jobNames,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy