com.pulumi.azure.automation.kotlin.outputs.RunBookDraftParameter.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automation.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 RunBookDraftParameter(
public val defaultValue: String? = null,
public val key: String,
public val mandatory: Boolean? = null,
public val position: Int? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.automation.outputs.RunBookDraftParameter): RunBookDraftParameter = RunBookDraftParameter(
defaultValue = javaType.defaultValue().map({ args0 -> args0 }).orElse(null),
key = javaType.key(),
mandatory = javaType.mandatory().map({ args0 -> args0 }).orElse(null),
position = javaType.position().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}