
com.pulumi.awsnative.databrew.kotlin.inputs.DatasetParameterArgs.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.DatasetParameterArgs.builder
import com.pulumi.awsnative.databrew.kotlin.enums.DatasetParameterType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property createColumn Add the value of this parameter as a column in a dataset.
* @property datetimeOptions Additional parameter options such as a format and a timezone. Required for datetime parameters.
* @property filter The optional filter expression structure to apply additional matching criteria to the parameter.
* @property name The name of the parameter that is used in the dataset's Amazon S3 path.
* @property type Parameter type
*/
public data class DatasetParameterArgs(
public val createColumn: Output? = null,
public val datetimeOptions: Output? = null,
public val filter: Output? = null,
public val name: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.databrew.inputs.DatasetParameterArgs =
com.pulumi.awsnative.databrew.inputs.DatasetParameterArgs.builder()
.createColumn(createColumn?.applyValue({ args0 -> args0 }))
.datetimeOptions(datetimeOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.filter(filter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DatasetParameterArgs].
*/
@PulumiTagMarker
public class DatasetParameterArgsBuilder internal constructor() {
private var createColumn: Output? = null
private var datetimeOptions: Output? = null
private var filter: Output? = null
private var name: Output? = null
private var type: Output? = null
/**
* @param value Add the value of this parameter as a column in a dataset.
*/
@JvmName("rsfepuxjuhxmaghd")
public suspend fun createColumn(`value`: Output) {
this.createColumn = value
}
/**
* @param value Additional parameter options such as a format and a timezone. Required for datetime parameters.
*/
@JvmName("vbjvqxtfsxkjpvfa")
public suspend fun datetimeOptions(`value`: Output) {
this.datetimeOptions = value
}
/**
* @param value The optional filter expression structure to apply additional matching criteria to the parameter.
*/
@JvmName("igdgnxplibkbwyrg")
public suspend fun filter(`value`: Output) {
this.filter = value
}
/**
* @param value The name of the parameter that is used in the dataset's Amazon S3 path.
*/
@JvmName("whqdwmpafafsxtgu")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Parameter type
*/
@JvmName("qfimhksaarajnnjf")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Add the value of this parameter as a column in a dataset.
*/
@JvmName("uygudlgwejsgsxuo")
public suspend fun createColumn(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.createColumn = mapped
}
/**
* @param value Additional parameter options such as a format and a timezone. Required for datetime parameters.
*/
@JvmName("mpncbvwhmvlydkqy")
public suspend fun datetimeOptions(`value`: DatasetDatetimeOptionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.datetimeOptions = mapped
}
/**
* @param argument Additional parameter options such as a format and a timezone. Required for datetime parameters.
*/
@JvmName("upkispqmhnddfuiq")
public suspend fun datetimeOptions(argument: suspend DatasetDatetimeOptionsArgsBuilder.() -> Unit) {
val toBeMapped = DatasetDatetimeOptionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.datetimeOptions = mapped
}
/**
* @param value The optional filter expression structure to apply additional matching criteria to the parameter.
*/
@JvmName("evejbamomugdfhyu")
public suspend fun filter(`value`: DatasetFilterExpressionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.filter = mapped
}
/**
* @param argument The optional filter expression structure to apply additional matching criteria to the parameter.
*/
@JvmName("octyxwwedtaghmqa")
public suspend fun filter(argument: suspend DatasetFilterExpressionArgsBuilder.() -> Unit) {
val toBeMapped = DatasetFilterExpressionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.filter = mapped
}
/**
* @param value The name of the parameter that is used in the dataset's Amazon S3 path.
*/
@JvmName("tnxskiusnrmgsgic")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Parameter type
*/
@JvmName("gktxhprghbamegtc")
public suspend fun type(`value`: DatasetParameterType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): DatasetParameterArgs = DatasetParameterArgs(
createColumn = createColumn,
datetimeOptions = datetimeOptions,
filter = filter,
name = name ?: throw PulumiNullFieldException("name"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy