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

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

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

    private var hierarchyId: Output? = null

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

    @JvmName("woyuuakgkaxxahkm")
    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 `DateTime` hierarchy.
     */
    @JvmName("jctftdjahcndqwmo")
    public suspend fun drillDownFilters(values: List>) {
        this.drillDownFilters = Output.all(values)
    }

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

    /**
     * @param value The option that determines the drill down filters for the `DateTime` hierarchy.
     */
    @JvmName("amsrmakmvohkrjpx")
    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 `DateTime` hierarchy.
     */
    @JvmName("gtrldclesebaolpy")
    public suspend fun drillDownFilters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisDrillDownFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.drillDownFilters = mapped
    }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy