com.pulumi.azure.eventhub.kotlin.inputs.EventSubscriptionDeadLetterIdentityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.eventhub.kotlin.inputs
import com.pulumi.azure.eventhub.inputs.EventSubscriptionDeadLetterIdentityArgs.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 type Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
* @property userAssignedIdentity The user identity associated with the resource.
*/
public data class EventSubscriptionDeadLetterIdentityArgs(
public val type: Output,
public val userAssignedIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.eventhub.inputs.EventSubscriptionDeadLetterIdentityArgs =
com.pulumi.azure.eventhub.inputs.EventSubscriptionDeadLetterIdentityArgs.builder()
.type(type.applyValue({ args0 -> args0 }))
.userAssignedIdentity(userAssignedIdentity?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EventSubscriptionDeadLetterIdentityArgs].
*/
@PulumiTagMarker
public class EventSubscriptionDeadLetterIdentityArgsBuilder internal constructor() {
private var type: Output? = null
private var userAssignedIdentity: Output? = null
/**
* @param value Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
*/
@JvmName("xdwqvobysuuglapj")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The user identity associated with the resource.
*/
@JvmName("dsqaiowrcepbpspv")
public suspend fun userAssignedIdentity(`value`: Output) {
this.userAssignedIdentity = value
}
/**
* @param value Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
*/
@JvmName("nthoygoecqflpmsm")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The user identity associated with the resource.
*/
@JvmName("ebnrkgatpfudgtje")
public suspend fun userAssignedIdentity(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userAssignedIdentity = mapped
}
internal fun build(): EventSubscriptionDeadLetterIdentityArgs =
EventSubscriptionDeadLetterIdentityArgs(
type = type ?: throw PulumiNullFieldException("type"),
userAssignedIdentity = userAssignedIdentity,
)
}