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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.quicksight.inputs.TemplateNumericalDimensionFieldArgs.builder
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 `NumericalDimensionField` .
 * @property fieldId The custom field ID.
 * @property formatConfiguration The format configuration of the field.
 * @property hierarchyId The custom hierarchy ID.
 */
public data class TemplateNumericalDimensionFieldArgs(
    public val column: Output,
    public val fieldId: Output,
    public val formatConfiguration: Output? = null,
    public val hierarchyId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateNumericalDimensionFieldArgs = com.pulumi.awsnative.quicksight.inputs.TemplateNumericalDimensionFieldArgs.builder()
        .column(column.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 [TemplateNumericalDimensionFieldArgs].
 */
@PulumiTagMarker
public class TemplateNumericalDimensionFieldArgsBuilder internal constructor() {
    private var column: 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 `NumericalDimensionField` .
     */
    @JvmName("twcirynvhjlxbooh")
    public suspend fun column(`value`: Output) {
        this.column = value
    }

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

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

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

    /**
     * @param value The column that is used in the `NumericalDimensionField` .
     */
    @JvmName("tqwerwjbuvmopxlm")
    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 `NumericalDimensionField` .
     */
    @JvmName("ounhwmnicjubrrfm")
    public suspend fun column(argument: suspend TemplateColumnIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateColumnIdentifierArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.column = mapped
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy