
com.pulumi.awsnative.databrew.kotlin.inputs.DatasetFormatOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.databrew.kotlin.inputs
import com.pulumi.awsnative.databrew.inputs.DatasetFormatOptionsArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Format options for dataset
* @property csv Options that define how CSV input is to be interpreted by DataBrew.
* @property excel Options that define how Excel input is to be interpreted by DataBrew.
* @property json Options that define how JSON input is to be interpreted by DataBrew.
*/
public data class DatasetFormatOptionsArgs(
public val csv: Output? = null,
public val excel: Output? = null,
public val json: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.databrew.inputs.DatasetFormatOptionsArgs =
com.pulumi.awsnative.databrew.inputs.DatasetFormatOptionsArgs.builder()
.csv(csv?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.excel(excel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.json(json?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DatasetFormatOptionsArgs].
*/
@PulumiTagMarker
public class DatasetFormatOptionsArgsBuilder internal constructor() {
private var csv: Output? = null
private var excel: Output? = null
private var json: Output? = null
/**
* @param value Options that define how CSV input is to be interpreted by DataBrew.
*/
@JvmName("sdjayckmhhswyigd")
public suspend fun csv(`value`: Output) {
this.csv = value
}
/**
* @param value Options that define how Excel input is to be interpreted by DataBrew.
*/
@JvmName("habtfdbderfuumfn")
public suspend fun excel(`value`: Output) {
this.excel = value
}
/**
* @param value Options that define how JSON input is to be interpreted by DataBrew.
*/
@JvmName("cihdxopjetyfhtcl")
public suspend fun json(`value`: Output) {
this.json = value
}
/**
* @param value Options that define how CSV input is to be interpreted by DataBrew.
*/
@JvmName("hofxthjfrpkfuckr")
public suspend fun csv(`value`: DatasetCsvOptionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.csv = mapped
}
/**
* @param argument Options that define how CSV input is to be interpreted by DataBrew.
*/
@JvmName("yrjvhggcrundacbc")
public suspend fun csv(argument: suspend DatasetCsvOptionsArgsBuilder.() -> Unit) {
val toBeMapped = DatasetCsvOptionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.csv = mapped
}
/**
* @param value Options that define how Excel input is to be interpreted by DataBrew.
*/
@JvmName("anqnoriwpdxbdrkk")
public suspend fun excel(`value`: DatasetExcelOptionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.excel = mapped
}
/**
* @param argument Options that define how Excel input is to be interpreted by DataBrew.
*/
@JvmName("vtkxrqnfpahviukm")
public suspend fun excel(argument: suspend DatasetExcelOptionsArgsBuilder.() -> Unit) {
val toBeMapped = DatasetExcelOptionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.excel = mapped
}
/**
* @param value Options that define how JSON input is to be interpreted by DataBrew.
*/
@JvmName("vogfonjospnbkoap")
public suspend fun json(`value`: DatasetJsonOptionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.json = mapped
}
/**
* @param argument Options that define how JSON input is to be interpreted by DataBrew.
*/
@JvmName("dddvenbftpqiqvav")
public suspend fun json(argument: suspend DatasetJsonOptionsArgsBuilder.() -> Unit) {
val toBeMapped = DatasetJsonOptionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.json = mapped
}
internal fun build(): DatasetFormatOptionsArgs = DatasetFormatOptionsArgs(
csv = csv,
excel = excel,
json = json,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy