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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateTotalAggregationOptionArgs.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 fieldId The field id that's associated with the total aggregation option.
 * @property totalAggregationFunction The total aggregation function that you want to set for a specified field id.
 */
public data class TemplateTotalAggregationOptionArgs(
    public val fieldId: Output,
    public val totalAggregationFunction: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateTotalAggregationOptionArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateTotalAggregationOptionArgs.builder()
            .fieldId(fieldId.applyValue({ args0 -> args0 }))
            .totalAggregationFunction(
                totalAggregationFunction.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateTotalAggregationOptionArgs].
 */
@PulumiTagMarker
public class TemplateTotalAggregationOptionArgsBuilder internal constructor() {
    private var fieldId: Output? = null

    private var totalAggregationFunction: Output? = null

    /**
     * @param value The field id that's associated with the total aggregation option.
     */
    @JvmName("pddkprouauetotvs")
    public suspend fun fieldId(`value`: Output) {
        this.fieldId = value
    }

    /**
     * @param value The total aggregation function that you want to set for a specified field id.
     */
    @JvmName("tfwochwryrovlgab")
    public suspend fun totalAggregationFunction(`value`: Output) {
        this.totalAggregationFunction = value
    }

    /**
     * @param value The field id that's associated with the total aggregation option.
     */
    @JvmName("gjbnikfgwtpncbsi")
    public suspend fun fieldId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldId = mapped
    }

    /**
     * @param value The total aggregation function that you want to set for a specified field id.
     */
    @JvmName("wfltenexaxkgnhty")
    public suspend fun totalAggregationFunction(`value`: TemplateTotalAggregationFunctionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.totalAggregationFunction = mapped
    }

    /**
     * @param argument The total aggregation function that you want to set for a specified field id.
     */
    @JvmName("qpwlclcogmnplaif")
    public suspend fun totalAggregationFunction(argument: suspend TemplateTotalAggregationFunctionArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateTotalAggregationFunctionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.totalAggregationFunction = mapped
    }

    internal fun build(): TemplateTotalAggregationOptionArgs = TemplateTotalAggregationOptionArgs(
        fieldId = fieldId ?: throw PulumiNullFieldException("fieldId"),
        totalAggregationFunction = totalAggregationFunction ?: throw
            PulumiNullFieldException("totalAggregationFunction"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy