com.pulumi.azure.healthcare.kotlin.inputs.ServiceIdentityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.healthcare.kotlin.inputs
import com.pulumi.azure.healthcare.inputs.ServiceIdentityArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property principalId
* @property tenantId
* @property type The type of managed identity to assign. The only possible value is `SystemAssigned`.
*/
public data class ServiceIdentityArgs(
public val principalId: Output? = null,
public val tenantId: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.healthcare.inputs.ServiceIdentityArgs =
com.pulumi.azure.healthcare.inputs.ServiceIdentityArgs.builder()
.principalId(principalId?.applyValue({ args0 -> args0 }))
.tenantId(tenantId?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceIdentityArgs].
*/
@PulumiTagMarker
public class ServiceIdentityArgsBuilder internal constructor() {
private var principalId: Output? = null
private var tenantId: Output? = null
private var type: Output? = null
/**
* @param value
*/
@JvmName("mywxxgmcqiltqeef")
public suspend fun principalId(`value`: Output) {
this.principalId = value
}
/**
* @param value
*/
@JvmName("wlgnsxsgiaiesahm")
public suspend fun tenantId(`value`: Output) {
this.tenantId = value
}
/**
* @param value The type of managed identity to assign. The only possible value is `SystemAssigned`.
*/
@JvmName("akxswlhiowcsldpe")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value
*/
@JvmName("onffclcnpuaigiua")
public suspend fun principalId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.principalId = mapped
}
/**
* @param value
*/
@JvmName("kdswlridbrvknsut")
public suspend fun tenantId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenantId = mapped
}
/**
* @param value The type of managed identity to assign. The only possible value is `SystemAssigned`.
*/
@JvmName("dsxkubpfpxpajwjy")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): ServiceIdentityArgs = ServiceIdentityArgs(
principalId = principalId,
tenantId = tenantId,
type = type ?: throw PulumiNullFieldException("type"),
)
}