com.pulumi.azure.automation.kotlin.inputs.RunBookDraftParameterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automation.kotlin.inputs
import com.pulumi.azure.automation.inputs.RunBookDraftParameterArgs.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 kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property defaultValue Specifies the default value of the parameter.
* @property key The name of the parameter.
* @property mandatory Whether this parameter is mandatory.
* @property position Specifies the position of the parameter.
* @property type Specifies the type of this parameter.
*/
public data class RunBookDraftParameterArgs(
public val defaultValue: Output? = null,
public val key: Output,
public val mandatory: Output? = null,
public val position: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.automation.inputs.RunBookDraftParameterArgs =
com.pulumi.azure.automation.inputs.RunBookDraftParameterArgs.builder()
.defaultValue(defaultValue?.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.mandatory(mandatory?.applyValue({ args0 -> args0 }))
.position(position?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RunBookDraftParameterArgs].
*/
@PulumiTagMarker
public class RunBookDraftParameterArgsBuilder internal constructor() {
private var defaultValue: Output? = null
private var key: Output? = null
private var mandatory: Output? = null
private var position: Output? = null
private var type: Output? = null
/**
* @param value Specifies the default value of the parameter.
*/
@JvmName("budbdfxhtfdgkqle")
public suspend fun defaultValue(`value`: Output) {
this.defaultValue = value
}
/**
* @param value The name of the parameter.
*/
@JvmName("porfdekqlsisjyrp")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value Whether this parameter is mandatory.
*/
@JvmName("nvvsyoamketsgsxy")
public suspend fun mandatory(`value`: Output) {
this.mandatory = value
}
/**
* @param value Specifies the position of the parameter.
*/
@JvmName("rmujrbgqdvstihok")
public suspend fun position(`value`: Output) {
this.position = value
}
/**
* @param value Specifies the type of this parameter.
*/
@JvmName("eegpcyxdajtjiroc")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Specifies the default value of the parameter.
*/
@JvmName("xxbjecfmchoaikhx")
public suspend fun defaultValue(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultValue = mapped
}
/**
* @param value The name of the parameter.
*/
@JvmName("osqowhdqfnsxgpcn")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value Whether this parameter is mandatory.
*/
@JvmName("oofymxwchilynlpr")
public suspend fun mandatory(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mandatory = mapped
}
/**
* @param value Specifies the position of the parameter.
*/
@JvmName("upiebgyyjdwjrxfm")
public suspend fun position(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.position = mapped
}
/**
* @param value Specifies the type of this parameter.
*/
@JvmName("eupwpmklmmnieoik")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): RunBookDraftParameterArgs = RunBookDraftParameterArgs(
defaultValue = defaultValue,
key = key ?: throw PulumiNullFieldException("key"),
mandatory = mandatory,
position = position,
type = type ?: throw PulumiNullFieldException("type"),
)
}