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

com.pulumi.awsnative.quicksight.kotlin.outputs.AnalysisAggregationFunction.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.outputs

import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisCategoricalAggregationFunction
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisDateAggregationFunction
import kotlin.Suppress

/**
 *
 * @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 AnalysisAggregationFunction(
    public val attributeAggregationFunction: AnalysisAttributeAggregationFunction? = null,
    public val categoricalAggregationFunction: AnalysisCategoricalAggregationFunction? = null,
    public val dateAggregationFunction: AnalysisDateAggregationFunction? = null,
    public val numericalAggregationFunction: AnalysisNumericalAggregationFunction? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.quicksight.outputs.AnalysisAggregationFunction): AnalysisAggregationFunction = AnalysisAggregationFunction(
            attributeAggregationFunction = javaType.attributeAggregationFunction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.AnalysisAttributeAggregationFunction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            categoricalAggregationFunction = javaType.categoricalAggregationFunction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisCategoricalAggregationFunction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dateAggregationFunction = javaType.dateAggregationFunction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisDateAggregationFunction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            numericalAggregationFunction = javaType.numericalAggregationFunction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.AnalysisNumericalAggregationFunction.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy