com.pulumi.azure.lab.kotlin.inputs.LabSecurityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.lab.kotlin.inputs
import com.pulumi.azure.lab.inputs.LabSecurityArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property openAccessEnabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
* @property registrationCode The registration code for the Lab Service Lab.
*/
public data class LabSecurityArgs(
public val openAccessEnabled: Output,
public val registrationCode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.lab.inputs.LabSecurityArgs =
com.pulumi.azure.lab.inputs.LabSecurityArgs.builder()
.openAccessEnabled(openAccessEnabled.applyValue({ args0 -> args0 }))
.registrationCode(registrationCode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LabSecurityArgs].
*/
@PulumiTagMarker
public class LabSecurityArgsBuilder internal constructor() {
private var openAccessEnabled: Output? = null
private var registrationCode: Output? = null
/**
* @param value Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
*/
@JvmName("jsnuikjkbqanhkiw")
public suspend fun openAccessEnabled(`value`: Output) {
this.openAccessEnabled = value
}
/**
* @param value The registration code for the Lab Service Lab.
*/
@JvmName("xyrhxkbbnmkwvtno")
public suspend fun registrationCode(`value`: Output) {
this.registrationCode = value
}
/**
* @param value Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
*/
@JvmName("ojebjbimfobtyaxm")
public suspend fun openAccessEnabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.openAccessEnabled = mapped
}
/**
* @param value The registration code for the Lab Service Lab.
*/
@JvmName("dihthhgykfginblp")
public suspend fun registrationCode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.registrationCode = mapped
}
internal fun build(): LabSecurityArgs = LabSecurityArgs(
openAccessEnabled = openAccessEnabled ?: throw PulumiNullFieldException("openAccessEnabled"),
registrationCode = registrationCode,
)
}