com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateAttributeAggregationFunctionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.TemplateAttributeAggregationFunctionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateSimpleAttributeAggregationFunction
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property simpleAttributeAggregation The built-in aggregation functions for attributes.
* - `UNIQUE_VALUE` : Returns the unique value for a field, aggregated by the dimension fields.
* @property valueForMultipleValues Used by the `UNIQUE_VALUE` aggregation function. If there are multiple values for the field used by the aggregation, the value for this property will be returned instead. Defaults to '*'.
*/
public data class TemplateAttributeAggregationFunctionArgs(
public val simpleAttributeAggregation: Output? = null,
public val valueForMultipleValues: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateAttributeAggregationFunctionArgs =
com.pulumi.awsnative.quicksight.inputs.TemplateAttributeAggregationFunctionArgs.builder()
.simpleAttributeAggregation(
simpleAttributeAggregation?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.valueForMultipleValues(valueForMultipleValues?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TemplateAttributeAggregationFunctionArgs].
*/
@PulumiTagMarker
public class TemplateAttributeAggregationFunctionArgsBuilder internal constructor() {
private var simpleAttributeAggregation: Output? = null
private var valueForMultipleValues: Output? = null
/**
* @param value The built-in aggregation functions for attributes.
* - `UNIQUE_VALUE` : Returns the unique value for a field, aggregated by the dimension fields.
*/
@JvmName("lwucjmohomjbbvww")
public suspend fun simpleAttributeAggregation(`value`: Output) {
this.simpleAttributeAggregation = value
}
/**
* @param value Used by the `UNIQUE_VALUE` aggregation function. If there are multiple values for the field used by the aggregation, the value for this property will be returned instead. Defaults to '*'.
*/
@JvmName("kdjuorahmxdpbijk")
public suspend fun valueForMultipleValues(`value`: Output) {
this.valueForMultipleValues = value
}
/**
* @param value The built-in aggregation functions for attributes.
* - `UNIQUE_VALUE` : Returns the unique value for a field, aggregated by the dimension fields.
*/
@JvmName("tlkqacnsstvpiegx")
public suspend fun simpleAttributeAggregation(`value`: TemplateSimpleAttributeAggregationFunction?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.simpleAttributeAggregation = mapped
}
/**
* @param value Used by the `UNIQUE_VALUE` aggregation function. If there are multiple values for the field used by the aggregation, the value for this property will be returned instead. Defaults to '*'.
*/
@JvmName("cmdydbfxxwggtufk")
public suspend fun valueForMultipleValues(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.valueForMultipleValues = mapped
}
internal fun build(): TemplateAttributeAggregationFunctionArgs =
TemplateAttributeAggregationFunctionArgs(
simpleAttributeAggregation = simpleAttributeAggregation,
valueForMultipleValues = valueForMultipleValues,
)
}