
com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisAggregationFunctionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.AnalysisAggregationFunctionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisCategoricalAggregationFunction
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisDateAggregationFunction
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property attributeAggregationFunction Aggregation for attributes.
* @property categoricalAggregationFunction Aggregation for categorical values.
* - `COUNT` : Aggregate by the total number of values, including duplicates.
* - `DISTINCT_COUNT` : Aggregate by the total number of distinct values.
* @property dateAggregationFunction Aggregation for date values.
* - `COUNT` : Aggregate by the total number of values, including duplicates.
* - `DISTINCT_COUNT` : Aggregate by the total number of distinct values.
* - `MIN` : Select the smallest date value.
* - `MAX` : Select the largest date value.
* @property numericalAggregationFunction Aggregation for numerical values.
*/
public data class AnalysisAggregationFunctionArgs(
public val attributeAggregationFunction: Output? = null,
public val categoricalAggregationFunction: Output? = null,
public val dateAggregationFunction: Output? = null,
public val numericalAggregationFunction: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisAggregationFunctionArgs =
com.pulumi.awsnative.quicksight.inputs.AnalysisAggregationFunctionArgs.builder()
.attributeAggregationFunction(
attributeAggregationFunction?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.categoricalAggregationFunction(
categoricalAggregationFunction?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.dateAggregationFunction(
dateAggregationFunction?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.numericalAggregationFunction(
numericalAggregationFunction?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
).build()
}
/**
* Builder for [AnalysisAggregationFunctionArgs].
*/
@PulumiTagMarker
public class AnalysisAggregationFunctionArgsBuilder internal constructor() {
private var attributeAggregationFunction: Output? = null
private var categoricalAggregationFunction: Output? = null
private var dateAggregationFunction: Output? = null
private var numericalAggregationFunction: Output? = null
/**
* @param value Aggregation for attributes.
*/
@JvmName("uyagvsaxdxirlqmq")
public suspend fun attributeAggregationFunction(`value`: Output) {
this.attributeAggregationFunction = value
}
/**
* @param value Aggregation for categorical values.
* - `COUNT` : Aggregate by the total number of values, including duplicates.
* - `DISTINCT_COUNT` : Aggregate by the total number of distinct values.
*/
@JvmName("scsgsddpoxpatkcj")
public suspend fun categoricalAggregationFunction(`value`: Output) {
this.categoricalAggregationFunction = value
}
/**
* @param value Aggregation for date values.
* - `COUNT` : Aggregate by the total number of values, including duplicates.
* - `DISTINCT_COUNT` : Aggregate by the total number of distinct values.
* - `MIN` : Select the smallest date value.
* - `MAX` : Select the largest date value.
*/
@JvmName("wirbbiopfgctukww")
public suspend fun dateAggregationFunction(`value`: Output) {
this.dateAggregationFunction = value
}
/**
* @param value Aggregation for numerical values.
*/
@JvmName("qocpjlmqoxvqgths")
public suspend fun numericalAggregationFunction(`value`: Output) {
this.numericalAggregationFunction = value
}
/**
* @param value Aggregation for attributes.
*/
@JvmName("qncncmcbxbfwvwgp")
public suspend fun attributeAggregationFunction(`value`: AnalysisAttributeAggregationFunctionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.attributeAggregationFunction = mapped
}
/**
* @param argument Aggregation for attributes.
*/
@JvmName("iyyluthrcfkedshn")
public suspend fun attributeAggregationFunction(argument: suspend AnalysisAttributeAggregationFunctionArgsBuilder.() -> Unit) {
val toBeMapped = AnalysisAttributeAggregationFunctionArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.attributeAggregationFunction = mapped
}
/**
* @param value Aggregation for categorical values.
* - `COUNT` : Aggregate by the total number of values, including duplicates.
* - `DISTINCT_COUNT` : Aggregate by the total number of distinct values.
*/
@JvmName("yraxnhqbdwlmspsk")
public suspend fun categoricalAggregationFunction(`value`: AnalysisCategoricalAggregationFunction?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.categoricalAggregationFunction = mapped
}
/**
* @param value Aggregation for date values.
* - `COUNT` : Aggregate by the total number of values, including duplicates.
* - `DISTINCT_COUNT` : Aggregate by the total number of distinct values.
* - `MIN` : Select the smallest date value.
* - `MAX` : Select the largest date value.
*/
@JvmName("fthshogwioqqiosm")
public suspend fun dateAggregationFunction(`value`: AnalysisDateAggregationFunction?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dateAggregationFunction = mapped
}
/**
* @param value Aggregation for numerical values.
*/
@JvmName("evtbphvqpeoadrne")
public suspend fun numericalAggregationFunction(`value`: AnalysisNumericalAggregationFunctionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.numericalAggregationFunction = mapped
}
/**
* @param argument Aggregation for numerical values.
*/
@JvmName("nnysjsagatxfdgql")
public suspend fun numericalAggregationFunction(argument: suspend AnalysisNumericalAggregationFunctionArgsBuilder.() -> Unit) {
val toBeMapped = AnalysisNumericalAggregationFunctionArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.numericalAggregationFunction = mapped
}
internal fun build(): AnalysisAggregationFunctionArgs = AnalysisAggregationFunctionArgs(
attributeAggregationFunction = attributeAggregationFunction,
categoricalAggregationFunction = categoricalAggregationFunction,
dateAggregationFunction = dateAggregationFunction,
numericalAggregationFunction = numericalAggregationFunction,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy