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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.AnalysisNumericalMeasureFieldArgs.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 aggregationFunction The aggregation function of the measure field.
 * @property column The column that is used in the `NumericalMeasureField` .
 * @property fieldId The custom field ID.
 * @property formatConfiguration The format configuration of the field.
 */
public data class AnalysisNumericalMeasureFieldArgs(
    public val aggregationFunction: Output? = null,
    public val column: Output,
    public val fieldId: Output,
    public val formatConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisNumericalMeasureFieldArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisNumericalMeasureFieldArgs.builder()
            .aggregationFunction(
                aggregationFunction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .column(column.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fieldId(fieldId.applyValue({ args0 -> args0 }))
            .formatConfiguration(
                formatConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [AnalysisNumericalMeasureFieldArgs].
 */
@PulumiTagMarker
public class AnalysisNumericalMeasureFieldArgsBuilder internal constructor() {
    private var aggregationFunction: Output? = null

    private var column: Output? = null

    private var fieldId: Output? = null

    private var formatConfiguration: Output? = null

    /**
     * @param value The aggregation function of the measure field.
     */
    @JvmName("yykihthknwsirmuo")
    public suspend fun aggregationFunction(`value`: Output) {
        this.aggregationFunction = value
    }

    /**
     * @param value The column that is used in the `NumericalMeasureField` .
     */
    @JvmName("kxkbipcsavndcqqg")
    public suspend fun column(`value`: Output) {
        this.column = value
    }

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

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

    /**
     * @param value The aggregation function of the measure field.
     */
    @JvmName("hngahfjgghvkusmy")
    public suspend fun aggregationFunction(`value`: AnalysisNumericalAggregationFunctionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aggregationFunction = mapped
    }

    /**
     * @param argument The aggregation function of the measure field.
     */
    @JvmName("osnpwekvwuqxjmqo")
    public suspend fun aggregationFunction(argument: suspend AnalysisNumericalAggregationFunctionArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisNumericalAggregationFunctionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.aggregationFunction = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy