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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisContributionAnalysisDefaultArgs.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.inputs

import com.pulumi.awsnative.quicksight.inputs.AnalysisContributionAnalysisDefaultArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property contributorDimensions The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
 * @property measureFieldId The measure field that is used in the contribution analysis.
 */
public data class AnalysisContributionAnalysisDefaultArgs(
    public val contributorDimensions: Output>,
    public val measureFieldId: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisContributionAnalysisDefaultArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisContributionAnalysisDefaultArgs.builder()
            .contributorDimensions(
                contributorDimensions.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .measureFieldId(measureFieldId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AnalysisContributionAnalysisDefaultArgs].
 */
@PulumiTagMarker
public class AnalysisContributionAnalysisDefaultArgsBuilder internal constructor() {
    private var contributorDimensions: Output>? = null

    private var measureFieldId: Output? = null

    /**
     * @param value The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("ydmpldvdplscevlc")
    public suspend fun contributorDimensions(`value`: Output>) {
        this.contributorDimensions = value
    }

    @JvmName("pnjfkvxibptvviju")
    public suspend fun contributorDimensions(vararg values: Output) {
        this.contributorDimensions = Output.all(values.asList())
    }

    /**
     * @param values The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("guvjivbixoecfsbm")
    public suspend fun contributorDimensions(values: List>) {
        this.contributorDimensions = Output.all(values)
    }

    /**
     * @param value The measure field that is used in the contribution analysis.
     */
    @JvmName("rlehvlftotnjxuot")
    public suspend fun measureFieldId(`value`: Output) {
        this.measureFieldId = value
    }

    /**
     * @param value The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("ieohxpwgiuinlnnn")
    public suspend fun contributorDimensions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contributorDimensions = mapped
    }

    /**
     * @param argument The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("twshehdqrfdvgbgf")
    public suspend fun contributorDimensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisColumnIdentifierArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.contributorDimensions = mapped
    }

    /**
     * @param argument The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("cewfthnmvhmjwrnx")
    public suspend fun contributorDimensions(vararg argument: suspend AnalysisColumnIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisColumnIdentifierArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.contributorDimensions = mapped
    }

    /**
     * @param argument The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("tkebnissbsvikbok")
    public suspend fun contributorDimensions(argument: suspend AnalysisColumnIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnalysisColumnIdentifierArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.contributorDimensions = mapped
    }

    /**
     * @param values The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
     */
    @JvmName("idpoytcxeynperio")
    public suspend fun contributorDimensions(vararg values: AnalysisColumnIdentifierArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contributorDimensions = mapped
    }

    /**
     * @param value The measure field that is used in the contribution analysis.
     */
    @JvmName("uwbcdtibieeqfqna")
    public suspend fun measureFieldId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.measureFieldId = mapped
    }

    internal fun build(): AnalysisContributionAnalysisDefaultArgs =
        AnalysisContributionAnalysisDefaultArgs(
            contributorDimensions = contributorDimensions ?: throw
                PulumiNullFieldException("contributorDimensions"),
            measureFieldId = measureFieldId ?: throw PulumiNullFieldException("measureFieldId"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy