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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplatePredefinedHierarchyArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.TemplatePredefinedHierarchyArgs.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 columns The list of columns that define the predefined hierarchy.
 * @property drillDownFilters The option that determines the drill down filters for the predefined hierarchy.
 * @property hierarchyId The hierarchy ID of the predefined hierarchy.
 */
public data class TemplatePredefinedHierarchyArgs(
    public val columns: Output>,
    public val drillDownFilters: Output>? = null,
    public val hierarchyId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplatePredefinedHierarchyArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplatePredefinedHierarchyArgs.builder()
            .columns(
                columns.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .drillDownFilters(
                drillDownFilters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .hierarchyId(hierarchyId.applyValue({ args0 -> args0 })).build()
}

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

    private var drillDownFilters: Output>? = null

    private var hierarchyId: Output? = null

    /**
     * @param value The list of columns that define the predefined hierarchy.
     */
    @JvmName("tanakqlmmmbfvnsk")
    public suspend fun columns(`value`: Output>) {
        this.columns = value
    }

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

    /**
     * @param values The list of columns that define the predefined hierarchy.
     */
    @JvmName("wcyuapamlfokqluw")
    public suspend fun columns(values: List>) {
        this.columns = Output.all(values)
    }

    /**
     * @param value The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("cjlexuxgibbtimye")
    public suspend fun drillDownFilters(`value`: Output>) {
        this.drillDownFilters = value
    }

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

    /**
     * @param values The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("ypnfheicwsyltbym")
    public suspend fun drillDownFilters(values: List>) {
        this.drillDownFilters = Output.all(values)
    }

    /**
     * @param value The hierarchy ID of the predefined hierarchy.
     */
    @JvmName("hpwquyghxdiujcnx")
    public suspend fun hierarchyId(`value`: Output) {
        this.hierarchyId = value
    }

    /**
     * @param value The list of columns that define the predefined hierarchy.
     */
    @JvmName("tannaqurjjkcakhe")
    public suspend fun columns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param argument The list of columns that define the predefined hierarchy.
     */
    @JvmName("mryjldrlncgrvwqm")
    public suspend fun columns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateColumnIdentifierArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument The list of columns that define the predefined hierarchy.
     */
    @JvmName("irbbxpwojuyifyee")
    public suspend fun columns(vararg argument: suspend TemplateColumnIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateColumnIdentifierArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument The list of columns that define the predefined hierarchy.
     */
    @JvmName("ubscwwjvqqptyoga")
    public suspend fun columns(argument: suspend TemplateColumnIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateColumnIdentifierArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param values The list of columns that define the predefined hierarchy.
     */
    @JvmName("dynqmttgoqwirutv")
    public suspend fun columns(vararg values: TemplateColumnIdentifierArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param value The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("ugvvqwycombafdkh")
    public suspend fun drillDownFilters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.drillDownFilters = mapped
    }

    /**
     * @param argument The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("denuntfghniryfuv")
    public suspend fun drillDownFilters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateDrillDownFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.drillDownFilters = mapped
    }

    /**
     * @param argument The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("ohlvbbyfyodgyrkw")
    public suspend fun drillDownFilters(vararg argument: suspend TemplateDrillDownFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateDrillDownFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.drillDownFilters = mapped
    }

    /**
     * @param argument The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("dqxibrrolvhwiani")
    public suspend fun drillDownFilters(argument: suspend TemplateDrillDownFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateDrillDownFilterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.drillDownFilters = mapped
    }

    /**
     * @param values The option that determines the drill down filters for the predefined hierarchy.
     */
    @JvmName("bfvqsflpntgokbfb")
    public suspend fun drillDownFilters(vararg values: TemplateDrillDownFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.drillDownFilters = mapped
    }

    /**
     * @param value The hierarchy ID of the predefined hierarchy.
     */
    @JvmName("ewvtiogfieqdscih")
    public suspend fun hierarchyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hierarchyId = mapped
    }

    internal fun build(): TemplatePredefinedHierarchyArgs = TemplatePredefinedHierarchyArgs(
        columns = columns ?: throw PulumiNullFieldException("columns"),
        drillDownFilters = drillDownFilters,
        hierarchyId = hierarchyId ?: throw PulumiNullFieldException("hierarchyId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy