
com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateDateDimensionFieldArgs.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.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.TemplateDateDimensionFieldArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateTimeGranularity
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
/**
*
* @property column The column that is used in the `DateDimensionField` .
* @property dateGranularity The date granularity of the `DateDimensionField` . Choose one of the following options:
* - `YEAR`
* - `QUARTER`
* - `MONTH`
* - `WEEK`
* - `DAY`
* - `HOUR`
* - `MINUTE`
* - `SECOND`
* - `MILLISECOND`
* @property fieldId The custom field ID.
* @property formatConfiguration The format configuration of the field.
* @property hierarchyId The custom hierarchy ID.
*/
public data class TemplateDateDimensionFieldArgs(
public val column: Output,
public val dateGranularity: Output? = null,
public val fieldId: Output,
public val formatConfiguration: Output? = null,
public val hierarchyId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateDateDimensionFieldArgs =
com.pulumi.awsnative.quicksight.inputs.TemplateDateDimensionFieldArgs.builder()
.column(column.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.dateGranularity(dateGranularity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.fieldId(fieldId.applyValue({ args0 -> args0 }))
.formatConfiguration(
formatConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.hierarchyId(hierarchyId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TemplateDateDimensionFieldArgs].
*/
@PulumiTagMarker
public class TemplateDateDimensionFieldArgsBuilder internal constructor() {
private var column: Output? = null
private var dateGranularity: Output? = null
private var fieldId: Output? = null
private var formatConfiguration: Output? = null
private var hierarchyId: Output? = null
/**
* @param value The column that is used in the `DateDimensionField` .
*/
@JvmName("bdoikoowaujtfsui")
public suspend fun column(`value`: Output) {
this.column = value
}
/**
* @param value The date granularity of the `DateDimensionField` . Choose one of the following options:
* - `YEAR`
* - `QUARTER`
* - `MONTH`
* - `WEEK`
* - `DAY`
* - `HOUR`
* - `MINUTE`
* - `SECOND`
* - `MILLISECOND`
*/
@JvmName("gvhlnvqaoobdtbdg")
public suspend fun dateGranularity(`value`: Output) {
this.dateGranularity = value
}
/**
* @param value The custom field ID.
*/
@JvmName("kljatlgebiwihrkm")
public suspend fun fieldId(`value`: Output) {
this.fieldId = value
}
/**
* @param value The format configuration of the field.
*/
@JvmName("ssthxkhgudrihcup")
public suspend fun formatConfiguration(`value`: Output) {
this.formatConfiguration = value
}
/**
* @param value The custom hierarchy ID.
*/
@JvmName("jxamsrmuyrgqriht")
public suspend fun hierarchyId(`value`: Output) {
this.hierarchyId = value
}
/**
* @param value The column that is used in the `DateDimensionField` .
*/
@JvmName("ccnmekormdvlxomq")
public suspend fun column(`value`: TemplateColumnIdentifierArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.column = mapped
}
/**
* @param argument The column that is used in the `DateDimensionField` .
*/
@JvmName("rlkexgevbkxyxdjq")
public suspend fun column(argument: suspend TemplateColumnIdentifierArgsBuilder.() -> Unit) {
val toBeMapped = TemplateColumnIdentifierArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.column = mapped
}
/**
* @param value The date granularity of the `DateDimensionField` . Choose one of the following options:
* - `YEAR`
* - `QUARTER`
* - `MONTH`
* - `WEEK`
* - `DAY`
* - `HOUR`
* - `MINUTE`
* - `SECOND`
* - `MILLISECOND`
*/
@JvmName("plgvofohfiuggphd")
public suspend fun dateGranularity(`value`: TemplateTimeGranularity?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dateGranularity = mapped
}
/**
* @param value The custom field ID.
*/
@JvmName("gluxsdhmunwswiqd")
public suspend fun fieldId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.fieldId = mapped
}
/**
* @param value The format configuration of the field.
*/
@JvmName("hieaybmmoxoxysrw")
public suspend fun formatConfiguration(`value`: TemplateDateTimeFormatConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.formatConfiguration = mapped
}
/**
* @param argument The format configuration of the field.
*/
@JvmName("jixhealvggnxhyrf")
public suspend fun formatConfiguration(argument: suspend TemplateDateTimeFormatConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateDateTimeFormatConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.formatConfiguration = mapped
}
/**
* @param value The custom hierarchy ID.
*/
@JvmName("thduxboxppgjngod")
public suspend fun hierarchyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hierarchyId = mapped
}
internal fun build(): TemplateDateDimensionFieldArgs = TemplateDateDimensionFieldArgs(
column = column ?: throw PulumiNullFieldException("column"),
dateGranularity = dateGranularity,
fieldId = fieldId ?: throw PulumiNullFieldException("fieldId"),
formatConfiguration = formatConfiguration,
hierarchyId = hierarchyId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy