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

com.pulumi.awsnative.databrew.kotlin.RecipeArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.databrew.kotlin

import com.pulumi.awsnative.databrew.RecipeArgs.builder
import com.pulumi.awsnative.databrew.kotlin.inputs.RecipeStepArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.RecipeStepArgsBuilder
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::Recipe.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property description Description of the recipe
 * @property name Recipe name
 * @property steps A list of steps that are defined by the recipe.
 * @property tags Metadata tags that have been applied to the recipe.
 */
public data class RecipeArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val steps: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.RecipeArgs =
        com.pulumi.awsnative.databrew.RecipeArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .steps(steps?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RecipeArgs].
 */
@PulumiTagMarker
public class RecipeArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var steps: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value Description of the recipe
     */
    @JvmName("bcdnihlqdrojwgma")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

    /**
     * @param value A list of steps that are defined by the recipe.
     */
    @JvmName("vpsnvjtbgwlduwmn")
    public suspend fun steps(`value`: Output>) {
        this.steps = value
    }

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

    /**
     * @param values A list of steps that are defined by the recipe.
     */
    @JvmName("xmhscatwwirreprt")
    public suspend fun steps(values: List>) {
        this.steps = Output.all(values)
    }

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

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

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

    /**
     * @param value Description of the recipe
     */
    @JvmName("xowneikikglbqhfh")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

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

    /**
     * @param value A list of steps that are defined by the recipe.
     */
    @JvmName("uyyvvbncxmwixshm")
    public suspend fun steps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    /**
     * @param argument A list of steps that are defined by the recipe.
     */
    @JvmName("hhxargscjswosdjn")
    public suspend fun steps(argument: List Unit>) {
        val toBeMapped = argument.toList().map { RecipeStepArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument A list of steps that are defined by the recipe.
     */
    @JvmName("mkdfkfybnncfgaba")
    public suspend fun steps(vararg argument: suspend RecipeStepArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { RecipeStepArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument A list of steps that are defined by the recipe.
     */
    @JvmName("rdxqvthrndbeuqhw")
    public suspend fun steps(argument: suspend RecipeStepArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RecipeStepArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param values A list of steps that are defined by the recipe.
     */
    @JvmName("nshudigvmupvnium")
    public suspend fun steps(vararg values: RecipeStepArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    /**
     * @param value Metadata tags that have been applied to the recipe.
     */
    @JvmName("drpropqxelgbalye")
    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 recipe.
     */
    @JvmName("yttyilmkfoxthray")
    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 recipe.
     */
    @JvmName("mvdxyxvxdikoqawd")
    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 recipe.
     */
    @JvmName("mbuglrknnmrydnsu")
    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 recipe.
     */
    @JvmName("ncmqpdnsqmpqyicq")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RecipeArgs = RecipeArgs(
        description = description,
        name = name,
        steps = steps,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy