All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.securityinsights.kotlin.inputs.ClientInfoArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.securityinsights.kotlin.inputs

import com.pulumi.azurenative.securityinsights.inputs.ClientInfoArgs.builder
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 client (user or application) that made some action
 * @property email The email of the client.
 * @property name The name of the client.
 * @property objectId The object id of the client.
 * @property userPrincipalName The user principal name of the client.
 */
public data class ClientInfoArgs(
    public val email: Output? = null,
    public val name: Output? = null,
    public val objectId: Output? = null,
    public val userPrincipalName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.ClientInfoArgs =
        com.pulumi.azurenative.securityinsights.inputs.ClientInfoArgs.builder()
            .email(email?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .objectId(objectId?.applyValue({ args0 -> args0 }))
            .userPrincipalName(userPrincipalName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClientInfoArgs].
 */
@PulumiTagMarker
public class ClientInfoArgsBuilder internal constructor() {
    private var email: Output? = null

    private var name: Output? = null

    private var objectId: Output? = null

    private var userPrincipalName: Output? = null

    /**
     * @param value The email of the client.
     */
    @JvmName("evmjrrrlfjeaexuo")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value The name of the client.
     */
    @JvmName("ohxhopwoeuewigri")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The object id of the client.
     */
    @JvmName("csprsyucslphimkb")
    public suspend fun objectId(`value`: Output) {
        this.objectId = value
    }

    /**
     * @param value The user principal name of the client.
     */
    @JvmName("orsvpbccamxmuuyp")
    public suspend fun userPrincipalName(`value`: Output) {
        this.userPrincipalName = value
    }

    /**
     * @param value The email of the client.
     */
    @JvmName("qwrbpqprmnhlkqjc")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value The name of the client.
     */
    @JvmName("cxivetkrnslctbqh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The object id of the client.
     */
    @JvmName("ggwcthsytymekext")
    public suspend fun objectId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectId = mapped
    }

    /**
     * @param value The user principal name of the client.
     */
    @JvmName("jxeccedfjyoujnnk")
    public suspend fun userPrincipalName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userPrincipalName = mapped
    }

    internal fun build(): ClientInfoArgs = ClientInfoArgs(
        email = email,
        name = name,
        objectId = objectId,
        userPrincipalName = userPrincipalName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy