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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisDateDimensionFieldArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.AnalysisDateDimensionFieldArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisTimeGranularity
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 AnalysisDateDimensionFieldArgs(
    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.AnalysisDateDimensionFieldArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisDateDimensionFieldArgs.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 [AnalysisDateDimensionFieldArgs].
 */
@PulumiTagMarker
public class AnalysisDateDimensionFieldArgsBuilder 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("mduivfbubcvwefmh")
    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("qwoeecdyprioxiif")
    public suspend fun dateGranularity(`value`: Output) {
        this.dateGranularity = value
    }

    /**
     * @param value The custom field ID.
     */
    @JvmName("lpvanxgcawryjhcw")
    public suspend fun fieldId(`value`: Output) {
        this.fieldId = value
    }

    /**
     * @param value The format configuration of the field.
     */
    @JvmName("hmejdwuktomaicnx")
    public suspend fun formatConfiguration(`value`: Output) {
        this.formatConfiguration = value
    }

    /**
     * @param value The custom hierarchy ID.
     */
    @JvmName("dxktqgihjieracdc")
    public suspend fun hierarchyId(`value`: Output) {
        this.hierarchyId = value
    }

    /**
     * @param value The column that is used in the `DateDimensionField` .
     */
    @JvmName("lbtfsobvolvoaixm")
    public suspend fun column(`value`: AnalysisColumnIdentifierArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.column = mapped
    }

    /**
     * @param argument The column that is used in the `DateDimensionField` .
     */
    @JvmName("ikrswrjsxvjqyucm")
    public suspend fun column(argument: suspend AnalysisColumnIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisColumnIdentifierArgsBuilder().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("uesptdnlociwqrtd")
    public suspend fun dateGranularity(`value`: AnalysisTimeGranularity?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dateGranularity = mapped
    }

    /**
     * @param value The custom field ID.
     */
    @JvmName("lafjkwhjqndhmtfu")
    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("yppmhcikpgktrnmn")
    public suspend fun formatConfiguration(`value`: AnalysisDateTimeFormatConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.formatConfiguration = mapped
    }

    /**
     * @param argument The format configuration of the field.
     */
    @JvmName("rvdmjnkvrkgxhnoc")
    public suspend fun formatConfiguration(argument: suspend AnalysisDateTimeFormatConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisDateTimeFormatConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.formatConfiguration = mapped
    }

    /**
     * @param value The custom hierarchy ID.
     */
    @JvmName("kgpftdxtrtfqkhqk")
    public suspend fun hierarchyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hierarchyId = mapped
    }

    internal fun build(): AnalysisDateDimensionFieldArgs = AnalysisDateDimensionFieldArgs(
        column = column ?: throw PulumiNullFieldException("column"),
        dateGranularity = dateGranularity,
        fieldId = fieldId ?: throw PulumiNullFieldException("fieldId"),
        formatConfiguration = formatConfiguration,
        hierarchyId = hierarchyId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy