![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.blueprint.kotlin.inputs.ParameterDefinitionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy