
com.pulumi.azurenative.securityinsights.kotlin.inputs.IncidentOwnerInfoArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.securityinsights.kotlin.inputs
import com.pulumi.azurenative.securityinsights.inputs.IncidentOwnerInfoArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.OwnerType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Information on the user an incident is assigned to
* @property assignedTo The name of the user the incident is assigned to.
* @property email The email of the user the incident is assigned to.
* @property objectId The object id of the user the incident is assigned to.
* @property ownerType The type of the owner the incident is assigned to.
* @property userPrincipalName The user principal name of the user the incident is assigned to.
*/
public data class IncidentOwnerInfoArgs(
public val assignedTo: Output? = null,
public val email: Output? = null,
public val objectId: Output? = null,
public val ownerType: Output>? = null,
public val userPrincipalName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.IncidentOwnerInfoArgs =
com.pulumi.azurenative.securityinsights.inputs.IncidentOwnerInfoArgs.builder()
.assignedTo(assignedTo?.applyValue({ args0 -> args0 }))
.email(email?.applyValue({ args0 -> args0 }))
.objectId(objectId?.applyValue({ args0 -> args0 }))
.ownerType(
ownerType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.userPrincipalName(userPrincipalName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IncidentOwnerInfoArgs].
*/
@PulumiTagMarker
public class IncidentOwnerInfoArgsBuilder internal constructor() {
private var assignedTo: Output? = null
private var email: Output? = null
private var objectId: Output? = null
private var ownerType: Output>? = null
private var userPrincipalName: Output? = null
/**
* @param value The name of the user the incident is assigned to.
*/
@JvmName("wtbskuvmwxjlxiio")
public suspend fun assignedTo(`value`: Output) {
this.assignedTo = value
}
/**
* @param value The email of the user the incident is assigned to.
*/
@JvmName("kokyvkawlrmcgpvj")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value The object id of the user the incident is assigned to.
*/
@JvmName("uqdrjuaxqjpwvvnb")
public suspend fun objectId(`value`: Output) {
this.objectId = value
}
/**
* @param value The type of the owner the incident is assigned to.
*/
@JvmName("texldftncbjockei")
public suspend fun ownerType(`value`: Output>) {
this.ownerType = value
}
/**
* @param value The user principal name of the user the incident is assigned to.
*/
@JvmName("wkpudwtmsuxwdclv")
public suspend fun userPrincipalName(`value`: Output) {
this.userPrincipalName = value
}
/**
* @param value The name of the user the incident is assigned to.
*/
@JvmName("kahiaqoekvyrjaas")
public suspend fun assignedTo(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.assignedTo = mapped
}
/**
* @param value The email of the user the incident is assigned to.
*/
@JvmName("elroicyxoiynawkf")
public suspend fun email(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value The object id of the user the incident is assigned to.
*/
@JvmName("pqcpvfsytvvrfsgn")
public suspend fun objectId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.objectId = mapped
}
/**
* @param value The type of the owner the incident is assigned to.
*/
@JvmName("fmjgmjqafgkolagh")
public suspend fun ownerType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ownerType = mapped
}
/**
* @param value The type of the owner the incident is assigned to.
*/
@JvmName("onluwwjaopumeboi")
public fun ownerType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ownerType = mapped
}
/**
* @param value The type of the owner the incident is assigned to.
*/
@JvmName("tiesdugllhcvmffd")
public fun ownerType(`value`: OwnerType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ownerType = mapped
}
/**
* @param value The user principal name of the user the incident is assigned to.
*/
@JvmName("ekurjgmlxooxtmdh")
public suspend fun userPrincipalName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userPrincipalName = mapped
}
internal fun build(): IncidentOwnerInfoArgs = IncidentOwnerInfoArgs(
assignedTo = assignedTo,
email = email,
objectId = objectId,
ownerType = ownerType,
userPrincipalName = userPrincipalName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy