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

com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardDateTimeParameterDeclarationArgs.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.DashboardDateTimeParameterDeclarationArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardTimeGranularity
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 defaultValues The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
 * @property mappedDataSetParameters
 * @property name The name of the parameter that is being declared.
 * @property timeGranularity The level of time precision that is used to aggregate `DateTime` values.
 * @property valueWhenUnset The configuration that defines the default value of a `DateTime` parameter when a value has not been set.
 */
public data class DashboardDateTimeParameterDeclarationArgs(
    public val defaultValues: Output? = null,
    public val mappedDataSetParameters: Output>? = null,
    public val name: Output,
    public val timeGranularity: Output? = null,
    public val valueWhenUnset: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardDateTimeParameterDeclarationArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardDateTimeParameterDeclarationArgs.builder()
            .defaultValues(defaultValues?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mappedDataSetParameters(
                mappedDataSetParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .timeGranularity(timeGranularity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .valueWhenUnset(
                valueWhenUnset?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DashboardDateTimeParameterDeclarationArgs].
 */
@PulumiTagMarker
public class DashboardDateTimeParameterDeclarationArgsBuilder internal constructor() {
    private var defaultValues: Output? = null

    private var mappedDataSetParameters: Output>? = null

    private var name: Output? = null

    private var timeGranularity: Output? = null

    private var valueWhenUnset: Output? = null

    /**
     * @param value The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
     */
    @JvmName("momwtsaiaoaiiest")
    public suspend fun defaultValues(`value`: Output) {
        this.defaultValues = value
    }

    /**
     * @param value
     */
    @JvmName("gfjirtfdmbjrbcol")
    public suspend fun mappedDataSetParameters(`value`: Output>) {
        this.mappedDataSetParameters = value
    }

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

    /**
     * @param values
     */
    @JvmName("vqbuxcbwitnelquy")
    public suspend fun mappedDataSetParameters(values: List>) {
        this.mappedDataSetParameters = Output.all(values)
    }

    /**
     * @param value The name of the parameter that is being declared.
     */
    @JvmName("yealetdmadlmdsap")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The level of time precision that is used to aggregate `DateTime` values.
     */
    @JvmName("dbxklwsyjjpcxcrl")
    public suspend fun timeGranularity(`value`: Output) {
        this.timeGranularity = value
    }

    /**
     * @param value The configuration that defines the default value of a `DateTime` parameter when a value has not been set.
     */
    @JvmName("qmqcedfjbpgkndsk")
    public suspend fun valueWhenUnset(`value`: Output) {
        this.valueWhenUnset = value
    }

    /**
     * @param value The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
     */
    @JvmName("qrojenjjcrsnrijh")
    public suspend fun defaultValues(`value`: DashboardDateTimeDefaultValuesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultValues = mapped
    }

    /**
     * @param argument The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
     */
    @JvmName("hrsmbyfyxdfaoose")
    public suspend fun defaultValues(argument: suspend DashboardDateTimeDefaultValuesArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardDateTimeDefaultValuesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultValues = mapped
    }

    /**
     * @param value
     */
    @JvmName("rpktqaburfavqguc")
    public suspend fun mappedDataSetParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mappedDataSetParameters = mapped
    }

    /**
     * @param argument
     */
    @JvmName("iviefkumfwlydvqu")
    public suspend fun mappedDataSetParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardMappedDataSetParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.mappedDataSetParameters = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ppgliljswvrsyrcv")
    public suspend fun mappedDataSetParameters(vararg argument: suspend DashboardMappedDataSetParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardMappedDataSetParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.mappedDataSetParameters = mapped
    }

    /**
     * @param argument
     */
    @JvmName("huhuxagsalsmjtfc")
    public suspend fun mappedDataSetParameters(argument: suspend DashboardMappedDataSetParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DashboardMappedDataSetParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.mappedDataSetParameters = mapped
    }

    /**
     * @param values
     */
    @JvmName("baymjaojnuorwudi")
    public suspend fun mappedDataSetParameters(vararg values: DashboardMappedDataSetParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mappedDataSetParameters = mapped
    }

    /**
     * @param value The name of the parameter that is being declared.
     */
    @JvmName("flsycckkagtjxhyl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The level of time precision that is used to aggregate `DateTime` values.
     */
    @JvmName("juqcxuepytohvfyv")
    public suspend fun timeGranularity(`value`: DashboardTimeGranularity?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeGranularity = mapped
    }

    /**
     * @param value The configuration that defines the default value of a `DateTime` parameter when a value has not been set.
     */
    @JvmName("srhflacalijvsrjn")
    public suspend fun valueWhenUnset(`value`: DashboardDateTimeValueWhenUnsetConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueWhenUnset = mapped
    }

    /**
     * @param argument The configuration that defines the default value of a `DateTime` parameter when a value has not been set.
     */
    @JvmName("dwhfbwcyucoxecfb")
    public suspend fun valueWhenUnset(argument: suspend DashboardDateTimeValueWhenUnsetConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardDateTimeValueWhenUnsetConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.valueWhenUnset = mapped
    }

    internal fun build(): DashboardDateTimeParameterDeclarationArgs =
        DashboardDateTimeParameterDeclarationArgs(
            defaultValues = defaultValues,
            mappedDataSetParameters = mappedDataSetParameters,
            name = name ?: throw PulumiNullFieldException("name"),
            timeGranularity = timeGranularity,
            valueWhenUnset = valueWhenUnset,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy