com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisTotalAggregationOptionArgs.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.AnalysisTotalAggregationOptionArgs.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 AnalysisTotalAggregationOptionArgs(
public val fieldId: Output,
public val totalAggregationFunction: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisTotalAggregationOptionArgs =
com.pulumi.awsnative.quicksight.inputs.AnalysisTotalAggregationOptionArgs.builder()
.fieldId(fieldId.applyValue({ args0 -> args0 }))
.totalAggregationFunction(
totalAggregationFunction.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [AnalysisTotalAggregationOptionArgs].
*/
@PulumiTagMarker
public class AnalysisTotalAggregationOptionArgsBuilder 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("avtndkhuugfipnfv")
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("nuyudnabgoeodrwc")
public suspend fun totalAggregationFunction(`value`: Output) {
this.totalAggregationFunction = value
}
/**
* @param value The field id that's associated with the total aggregation option.
*/
@JvmName("ybinpyiyygprwmkr")
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("dmmwbfvatpnrshbs")
public suspend fun totalAggregationFunction(`value`: AnalysisTotalAggregationFunctionArgs) {
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("tffjitfwyhgepyfa")
public suspend fun totalAggregationFunction(argument: suspend AnalysisTotalAggregationFunctionArgsBuilder.() -> Unit) {
val toBeMapped = AnalysisTotalAggregationFunctionArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.totalAggregationFunction = mapped
}
internal fun build(): AnalysisTotalAggregationOptionArgs = AnalysisTotalAggregationOptionArgs(
fieldId = fieldId ?: throw PulumiNullFieldException("fieldId"),
totalAggregationFunction = totalAggregationFunction ?: throw
PulumiNullFieldException("totalAggregationFunction"),
)
}