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

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

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

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

import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisTopBottomComputationType
import kotlin.Double
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property category The category field that is used in a computation.
 * @property computationId The ID for a computation.
 * @property name The name of a computation.
 * @property resultSize The result size of a top and bottom ranked computation.
 * @property type The computation type. Choose one of the following options:
 * - TOP: A top ranked computation.
 * - BOTTOM: A bottom ranked computation.
 * @property value The value field that is used in a computation.
 */
public data class AnalysisTopBottomRankedComputation(
    public val category: AnalysisDimensionField? = null,
    public val computationId: String,
    public val name: String? = null,
    public val resultSize: Double? = null,
    public val type: AnalysisTopBottomComputationType,
    public val `value`: AnalysisMeasureField? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.quicksight.outputs.AnalysisTopBottomRankedComputation): AnalysisTopBottomRankedComputation = AnalysisTopBottomRankedComputation(
            category = javaType.category().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.AnalysisDimensionField.Companion.toKotlin(args0)
                })
            }).orElse(null),
            computationId = javaType.computationId(),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            resultSize = javaType.resultSize().map({ args0 -> args0 }).orElse(null),
            type = javaType.type().let({ args0 ->
                com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisTopBottomComputationType.Companion.toKotlin(args0)
            }),
            `value` = javaType.`value`().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.AnalysisMeasureField.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy