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

com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs.EntitlementAdditionalNotificationTargetsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementAdditionalNotificationTargetsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property adminEmailRecipients Optional. Additional email addresses to be notified when a principal(requester) is granted access.
 * @property requesterEmailRecipients Optional. Additional email address to be notified about an eligible entitlement.
 */
public data class EntitlementAdditionalNotificationTargetsArgs(
    public val adminEmailRecipients: Output>? = null,
    public val requesterEmailRecipients: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementAdditionalNotificationTargetsArgs =
        com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementAdditionalNotificationTargetsArgs.builder()
            .adminEmailRecipients(adminEmailRecipients?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .requesterEmailRecipients(
                requesterEmailRecipients?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [EntitlementAdditionalNotificationTargetsArgs].
 */
@PulumiTagMarker
public class EntitlementAdditionalNotificationTargetsArgsBuilder internal constructor() {
    private var adminEmailRecipients: Output>? = null

    private var requesterEmailRecipients: Output>? = null

    /**
     * @param value Optional. Additional email addresses to be notified when a principal(requester) is granted access.
     */
    @JvmName("hcplqbfjwvqslcdu")
    public suspend fun adminEmailRecipients(`value`: Output>) {
        this.adminEmailRecipients = value
    }

    @JvmName("ktvviyswuspkkhkc")
    public suspend fun adminEmailRecipients(vararg values: Output) {
        this.adminEmailRecipients = Output.all(values.asList())
    }

    /**
     * @param values Optional. Additional email addresses to be notified when a principal(requester) is granted access.
     */
    @JvmName("eshgkdieyllydbfd")
    public suspend fun adminEmailRecipients(values: List>) {
        this.adminEmailRecipients = Output.all(values)
    }

    /**
     * @param value Optional. Additional email address to be notified about an eligible entitlement.
     */
    @JvmName("vyrwwmgpmuooxitv")
    public suspend fun requesterEmailRecipients(`value`: Output>) {
        this.requesterEmailRecipients = value
    }

    @JvmName("clgfgmusihmdpniv")
    public suspend fun requesterEmailRecipients(vararg values: Output) {
        this.requesterEmailRecipients = Output.all(values.asList())
    }

    /**
     * @param values Optional. Additional email address to be notified about an eligible entitlement.
     */
    @JvmName("cxrudrgqrjdbcgco")
    public suspend fun requesterEmailRecipients(values: List>) {
        this.requesterEmailRecipients = Output.all(values)
    }

    /**
     * @param value Optional. Additional email addresses to be notified when a principal(requester) is granted access.
     */
    @JvmName("mefnxnaxyfasjkwh")
    public suspend fun adminEmailRecipients(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminEmailRecipients = mapped
    }

    /**
     * @param values Optional. Additional email addresses to be notified when a principal(requester) is granted access.
     */
    @JvmName("jtfcrwnhlrorxmdg")
    public suspend fun adminEmailRecipients(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminEmailRecipients = mapped
    }

    /**
     * @param value Optional. Additional email address to be notified about an eligible entitlement.
     */
    @JvmName("fwgyjaonugftvqke")
    public suspend fun requesterEmailRecipients(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requesterEmailRecipients = mapped
    }

    /**
     * @param values Optional. Additional email address to be notified about an eligible entitlement.
     */
    @JvmName("uscyviuofrdjhyif")
    public suspend fun requesterEmailRecipients(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requesterEmailRecipients = mapped
    }

    internal fun build(): EntitlementAdditionalNotificationTargetsArgs =
        EntitlementAdditionalNotificationTargetsArgs(
            adminEmailRecipients = adminEmailRecipients,
            requesterEmailRecipients = requesterEmailRecipients,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy