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

com.pulumi.azurenative.blueprint.kotlin.inputs.ParameterDefinitionArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.blueprint.kotlin.inputs

import com.pulumi.azurenative.blueprint.inputs.ParameterDefinitionArgs.builder
import com.pulumi.azurenative.blueprint.kotlin.enums.TemplateParameterType
import com.pulumi.core.Either
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 kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Represent a parameter with constrains and metadata.
 * @property allowedValues Array of allowed values for this parameter.
 * @property defaultValue Default Value for this parameter.
 * @property description Description of this parameter/resourceGroup.
 * @property displayName DisplayName of this parameter/resourceGroup.
 * @property strongType StrongType for UI to render rich experience during blueprint assignment. Supported strong types are resourceType, principalId and location.
 * @property type Allowed data types for Resource Manager template parameters.
 */
public data class ParameterDefinitionArgs(
    public val allowedValues: Output>? = null,
    public val defaultValue: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val strongType: Output? = null,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.blueprint.inputs.ParameterDefinitionArgs =
        com.pulumi.azurenative.blueprint.inputs.ParameterDefinitionArgs.builder()
            .allowedValues(allowedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .defaultValue(defaultValue?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .strongType(strongType?.applyValue({ args0 -> args0 }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var defaultValue: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var strongType: Output? = null

    private var type: Output>? = null

    /**
     * @param value Array of allowed values for this parameter.
     */
    @JvmName("qeqrtrtahrycbaog")
    public suspend fun allowedValues(`value`: Output>) {
        this.allowedValues = value
    }

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

    /**
     * @param values Array of allowed values for this parameter.
     */
    @JvmName("tqqciyxxkhcbdjyx")
    public suspend fun allowedValues(values: List>) {
        this.allowedValues = Output.all(values)
    }

    /**
     * @param value Default Value for this parameter.
     */
    @JvmName("utjfefaxvodntrtg")
    public suspend fun defaultValue(`value`: Output) {
        this.defaultValue = value
    }

    /**
     * @param value Description of this parameter/resourceGroup.
     */
    @JvmName("rafwfeyiskwfjchh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value DisplayName of this parameter/resourceGroup.
     */
    @JvmName("namhuymvxtnhtjai")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value StrongType for UI to render rich experience during blueprint assignment. Supported strong types are resourceType, principalId and location.
     */
    @JvmName("buiryrfgbnodgedg")
    public suspend fun strongType(`value`: Output) {
        this.strongType = value
    }

    /**
     * @param value Allowed data types for Resource Manager template parameters.
     */
    @JvmName("hnkjvyilfryfioqa")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Array of allowed values for this parameter.
     */
    @JvmName("euipusnuplwdkonu")
    public suspend fun allowedValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedValues = mapped
    }

    /**
     * @param values Array of allowed values for this parameter.
     */
    @JvmName("hystmfkqgajrpskp")
    public suspend fun allowedValues(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedValues = mapped
    }

    /**
     * @param value Default Value for this parameter.
     */
    @JvmName("movkjvkhvfbutass")
    public suspend fun defaultValue(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultValue = mapped
    }

    /**
     * @param value Description of this parameter/resourceGroup.
     */
    @JvmName("tmaimvcapbdxvfbc")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value DisplayName of this parameter/resourceGroup.
     */
    @JvmName("rqeffavmqldrvgvv")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value StrongType for UI to render rich experience during blueprint assignment. Supported strong types are resourceType, principalId and location.
     */
    @JvmName("lpiwxpgnbjuavicu")
    public suspend fun strongType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.strongType = mapped
    }

    /**
     * @param value Allowed data types for Resource Manager template parameters.
     */
    @JvmName("hmpqbcuuxpyxbppn")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Allowed data types for Resource Manager template parameters.
     */
    @JvmName("rprmdagpbriiwwvr")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Allowed data types for Resource Manager template parameters.
     */
    @JvmName("xwdlgycrenstdumt")
    public fun type(`value`: TemplateParameterType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ParameterDefinitionArgs = ParameterDefinitionArgs(
        allowedValues = allowedValues,
        defaultValue = defaultValue,
        description = description,
        displayName = displayName,
        strongType = strongType,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy