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

com.pulumi.azure.pim.kotlin.inputs.RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.pim.kotlin.inputs

import com.pulumi.azure.pim.inputs.RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property additionalRecipients The additional recipients to notify
 * @property defaultRecipients Whether the default recipients are notified
 * @property notificationLevel What level of notifications are sent
 */
public data class RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs(
    public val additionalRecipients: Output>? = null,
    public val defaultRecipients: Output,
    public val notificationLevel: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.pim.inputs.RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs =
        com.pulumi.azure.pim.inputs.RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs.builder()
            .additionalRecipients(additionalRecipients?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .defaultRecipients(defaultRecipients.applyValue({ args0 -> args0 }))
            .notificationLevel(notificationLevel.applyValue({ args0 -> args0 })).build()
}

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

    private var defaultRecipients: Output? = null

    private var notificationLevel: Output? = null

    /**
     * @param value The additional recipients to notify
     */
    @JvmName("magqhcnyxpkvuboh")
    public suspend fun additionalRecipients(`value`: Output>) {
        this.additionalRecipients = value
    }

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

    /**
     * @param values The additional recipients to notify
     */
    @JvmName("myerblmpfdtlarro")
    public suspend fun additionalRecipients(values: List>) {
        this.additionalRecipients = Output.all(values)
    }

    /**
     * @param value Whether the default recipients are notified
     */
    @JvmName("qbtwvpluhgnospon")
    public suspend fun defaultRecipients(`value`: Output) {
        this.defaultRecipients = value
    }

    /**
     * @param value What level of notifications are sent
     */
    @JvmName("moavquhytmtrcmpj")
    public suspend fun notificationLevel(`value`: Output) {
        this.notificationLevel = value
    }

    /**
     * @param value The additional recipients to notify
     */
    @JvmName("cdclqqcgntlgcbil")
    public suspend fun additionalRecipients(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalRecipients = mapped
    }

    /**
     * @param values The additional recipients to notify
     */
    @JvmName("ujfacfpotavyitsw")
    public suspend fun additionalRecipients(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalRecipients = mapped
    }

    /**
     * @param value Whether the default recipients are notified
     */
    @JvmName("epmtctbmvnmesxyp")
    public suspend fun defaultRecipients(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultRecipients = mapped
    }

    /**
     * @param value What level of notifications are sent
     */
    @JvmName("exnhwnhmxhhwjced")
    public suspend fun notificationLevel(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notificationLevel = mapped
    }

    internal fun build(): RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs =
        RoleManagementPolicyNotificationRulesActiveAssignmentsAssigneeNotificationsArgs(
            additionalRecipients = additionalRecipients,
            defaultRecipients = defaultRecipients ?: throw PulumiNullFieldException("defaultRecipients"),
            notificationLevel = notificationLevel ?: throw PulumiNullFieldException("notificationLevel"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy