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

com.pulumi.awsnative.databrew.kotlin.DatasetArgs.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.DatasetArgs.builder
import com.pulumi.awsnative.databrew.kotlin.enums.DatasetFormat
import com.pulumi.awsnative.databrew.kotlin.inputs.DatasetFormatOptionsArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.DatasetFormatOptionsArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.DatasetInputArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.DatasetInputArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.DatasetPathOptionsArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.DatasetPathOptionsArgsBuilder
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::Dataset.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property format Dataset format
 * @property formatOptions Format options for dataset
 * @property input Input
 * @property name Dataset name
 * @property pathOptions PathOptions
 * @property tags Metadata tags that have been applied to the dataset.
 */
public data class DatasetArgs(
    public val format: Output? = null,
    public val formatOptions: Output? = null,
    public val input: Output? = null,
    public val name: Output? = null,
    public val pathOptions: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.DatasetArgs =
        com.pulumi.awsnative.databrew.DatasetArgs.builder()
            .format(format?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .formatOptions(formatOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .input(input?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .pathOptions(pathOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DatasetArgs].
 */
@PulumiTagMarker
public class DatasetArgsBuilder internal constructor() {
    private var format: Output? = null

    private var formatOptions: Output? = null

    private var input: Output? = null

    private var name: Output? = null

    private var pathOptions: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Dataset format
     */
    @JvmName("fejavrbcnxfulfns")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @param value Format options for dataset
     */
    @JvmName("mktlhhhobujeosgc")
    public suspend fun formatOptions(`value`: Output) {
        this.formatOptions = value
    }

    /**
     * @param value Input
     */
    @JvmName("oaepxhvgedhyqajx")
    public suspend fun input(`value`: Output) {
        this.input = value
    }

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

    /**
     * @param value PathOptions
     */
    @JvmName("xbjxuxqsbklwnnjh")
    public suspend fun pathOptions(`value`: Output) {
        this.pathOptions = value
    }

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

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

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

    /**
     * @param value Dataset format
     */
    @JvmName("mrykkgfftfedhswx")
    public suspend fun format(`value`: DatasetFormat?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.format = mapped
    }

    /**
     * @param value Format options for dataset
     */
    @JvmName("bredklmcywbolysi")
    public suspend fun formatOptions(`value`: DatasetFormatOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.formatOptions = mapped
    }

    /**
     * @param argument Format options for dataset
     */
    @JvmName("ppcbnfuahvdjkpjn")
    public suspend fun formatOptions(argument: suspend DatasetFormatOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetFormatOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.formatOptions = mapped
    }

    /**
     * @param value Input
     */
    @JvmName("yummwamvmmvmfnbl")
    public suspend fun input(`value`: DatasetInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.input = mapped
    }

    /**
     * @param argument Input
     */
    @JvmName("wlxkskrgalroyfxb")
    public suspend fun input(argument: suspend DatasetInputArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetInputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.input = mapped
    }

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

    /**
     * @param value PathOptions
     */
    @JvmName("atumoyljlwmbrdqw")
    public suspend fun pathOptions(`value`: DatasetPathOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathOptions = mapped
    }

    /**
     * @param argument PathOptions
     */
    @JvmName("nehksantgisurrod")
    public suspend fun pathOptions(argument: suspend DatasetPathOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetPathOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.pathOptions = mapped
    }

    /**
     * @param value Metadata tags that have been applied to the dataset.
     */
    @JvmName("cugomhjihwraaooh")
    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 dataset.
     */
    @JvmName("ifvaeshgtnkuhwtx")
    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 dataset.
     */
    @JvmName("yosfamlroxkueudj")
    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 dataset.
     */
    @JvmName("vmlfgyidckfmrfmp")
    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 dataset.
     */
    @JvmName("eydfutmgevmmdttu")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DatasetArgs = DatasetArgs(
        format = format,
        formatOptions = formatOptions,
        input = input,
        name = name,
        pathOptions = pathOptions,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy