![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.quicksight.kotlin.inputs.DataSetDateTimeDatasetParameterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.DataSetDateTimeDatasetParameterArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DataSetDatasetParameterValueType
import com.pulumi.awsnative.quicksight.kotlin.enums.DataSetTimeGranularity
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A date time parameter for a dataset.
* @property defaultValues A list of default values for a given date time parameter. This structure only accepts static values.
* @property id An identifier for the parameter that is created in the dataset.
* @property name The name of the date time parameter that is created in the dataset.
* @property timeGranularity The time granularity of the date time parameter.
* @property valueType The value type of the dataset parameter. Valid values are `single value` or `multi value` .
*/
public data class DataSetDateTimeDatasetParameterArgs(
public val defaultValues: Output? = null,
public val id: Output,
public val name: Output,
public val timeGranularity: Output? = null,
public val valueType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DataSetDateTimeDatasetParameterArgs = com.pulumi.awsnative.quicksight.inputs.DataSetDateTimeDatasetParameterArgs.builder()
.defaultValues(defaultValues?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.id(id.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.timeGranularity(timeGranularity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.valueType(valueType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DataSetDateTimeDatasetParameterArgs].
*/
@PulumiTagMarker
public class DataSetDateTimeDatasetParameterArgsBuilder internal constructor() {
private var defaultValues: Output? = null
private var id: Output? = null
private var name: Output? = null
private var timeGranularity: Output? = null
private var valueType: Output? = null
/**
* @param value A list of default values for a given date time parameter. This structure only accepts static values.
*/
@JvmName("igpnvmpjkrlxfxwf")
public suspend fun defaultValues(`value`: Output) {
this.defaultValues = value
}
/**
* @param value An identifier for the parameter that is created in the dataset.
*/
@JvmName("dsrbbmoxrulhfuys")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The name of the date time parameter that is created in the dataset.
*/
@JvmName("yfllirgeuxxosoba")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The time granularity of the date time parameter.
*/
@JvmName("dhgcexxxaphlkrpt")
public suspend fun timeGranularity(`value`: Output) {
this.timeGranularity = value
}
/**
* @param value The value type of the dataset parameter. Valid values are `single value` or `multi value` .
*/
@JvmName("mtesypbnkrtaewid")
public suspend fun valueType(`value`: Output) {
this.valueType = value
}
/**
* @param value A list of default values for a given date time parameter. This structure only accepts static values.
*/
@JvmName("asunigekomdtabaq")
public suspend fun defaultValues(`value`: DataSetDateTimeDatasetParameterDefaultValuesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultValues = mapped
}
/**
* @param argument A list of default values for a given date time parameter. This structure only accepts static values.
*/
@JvmName("iojhmaonbvtybtlx")
public suspend fun defaultValues(argument: suspend DataSetDateTimeDatasetParameterDefaultValuesArgsBuilder.() -> Unit) {
val toBeMapped = DataSetDateTimeDatasetParameterDefaultValuesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.defaultValues = mapped
}
/**
* @param value An identifier for the parameter that is created in the dataset.
*/
@JvmName("idhcxucbggeplhqc")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The name of the date time parameter that is created in the dataset.
*/
@JvmName("nisoasrvqukfbrvb")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The time granularity of the date time parameter.
*/
@JvmName("lyyrjwnexbngbxdb")
public suspend fun timeGranularity(`value`: DataSetTimeGranularity?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeGranularity = mapped
}
/**
* @param value The value type of the dataset parameter. Valid values are `single value` or `multi value` .
*/
@JvmName("yusyhnbkdypvoxps")
public suspend fun valueType(`value`: DataSetDatasetParameterValueType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.valueType = mapped
}
internal fun build(): DataSetDateTimeDatasetParameterArgs = DataSetDateTimeDatasetParameterArgs(
defaultValues = defaultValues,
id = id ?: throw PulumiNullFieldException("id"),
name = name ?: throw PulumiNullFieldException("name"),
timeGranularity = timeGranularity,
valueType = valueType ?: throw PulumiNullFieldException("valueType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy