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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateIntegerParameterDeclarationArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateIntegerParameterDeclarationArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateParameterValueType
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 parameterValueType The value type determines whether the parameter is a single-value or multi-value parameter.
 * @property valueWhenUnset A parameter declaration for the `Integer` data type.
 */
public data class TemplateIntegerParameterDeclarationArgs(
    public val defaultValues: Output? = null,
    public val mappedDataSetParameters: Output>? = null,
    public val name: Output,
    public val parameterValueType: Output,
    public val valueWhenUnset: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateIntegerParameterDeclarationArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateIntegerParameterDeclarationArgs.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 }))
            .parameterValueType(
                parameterValueType.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .valueWhenUnset(
                valueWhenUnset?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var mappedDataSetParameters: Output>? = null

    private var name: Output? = null

    private var parameterValueType: 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("hyfjuaiilvoxlxdp")
    public suspend fun defaultValues(`value`: Output) {
        this.defaultValues = value
    }

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

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

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

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

    /**
     * @param value The value type determines whether the parameter is a single-value or multi-value parameter.
     */
    @JvmName("tulklcywyxvqfmrl")
    public suspend fun parameterValueType(`value`: Output) {
        this.parameterValueType = value
    }

    /**
     * @param value A parameter declaration for the `Integer` data type.
     */
    @JvmName("lwrpvrlwmcyirykh")
    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("enarjxhjuwvdenmj")
    public suspend fun defaultValues(`value`: TemplateIntegerDefaultValuesArgs?) {
        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("ugrchipgismusarm")
    public suspend fun defaultValues(argument: suspend TemplateIntegerDefaultValuesArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateIntegerDefaultValuesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultValues = mapped
    }

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

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

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

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

    /**
     * @param values
     */
    @JvmName("scrfrbvvrkxhsgbg")
    public suspend fun mappedDataSetParameters(vararg values: TemplateMappedDataSetParameterArgs) {
        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("hltencegtjmdcgev")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The value type determines whether the parameter is a single-value or multi-value parameter.
     */
    @JvmName("ujrxbctcmlibbyvh")
    public suspend fun parameterValueType(`value`: TemplateParameterValueType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameterValueType = mapped
    }

    /**
     * @param value A parameter declaration for the `Integer` data type.
     */
    @JvmName("nyvyvxuftlftpcon")
    public suspend fun valueWhenUnset(`value`: TemplateIntegerValueWhenUnsetConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueWhenUnset = mapped
    }

    /**
     * @param argument A parameter declaration for the `Integer` data type.
     */
    @JvmName("rohguiyukfvifmov")
    public suspend fun valueWhenUnset(argument: suspend TemplateIntegerValueWhenUnsetConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateIntegerValueWhenUnsetConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.valueWhenUnset = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy