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

com.pulumi.cloudflare.kotlin.inputs.AccessPolicyApprovalGroupArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.AccessPolicyApprovalGroupArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property approvalsNeeded Number of approvals needed.
 * @property emailAddresses List of emails to request approval from.
 * @property emailListUuid
 */
public data class AccessPolicyApprovalGroupArgs(
    public val approvalsNeeded: Output,
    public val emailAddresses: Output>? = null,
    public val emailListUuid: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.AccessPolicyApprovalGroupArgs =
        com.pulumi.cloudflare.inputs.AccessPolicyApprovalGroupArgs.builder()
            .approvalsNeeded(approvalsNeeded.applyValue({ args0 -> args0 }))
            .emailAddresses(emailAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .emailListUuid(emailListUuid?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessPolicyApprovalGroupArgs].
 */
@PulumiTagMarker
public class AccessPolicyApprovalGroupArgsBuilder internal constructor() {
    private var approvalsNeeded: Output? = null

    private var emailAddresses: Output>? = null

    private var emailListUuid: Output? = null

    /**
     * @param value Number of approvals needed.
     */
    @JvmName("jvopegiaddavgncm")
    public suspend fun approvalsNeeded(`value`: Output) {
        this.approvalsNeeded = value
    }

    /**
     * @param value List of emails to request approval from.
     */
    @JvmName("hipchyvtpevtaabh")
    public suspend fun emailAddresses(`value`: Output>) {
        this.emailAddresses = value
    }

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

    /**
     * @param values List of emails to request approval from.
     */
    @JvmName("koohpckdgargabpe")
    public suspend fun emailAddresses(values: List>) {
        this.emailAddresses = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("wldixueqaptwbpke")
    public suspend fun emailListUuid(`value`: Output) {
        this.emailListUuid = value
    }

    /**
     * @param value Number of approvals needed.
     */
    @JvmName("mlkufmjswcbiprde")
    public suspend fun approvalsNeeded(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.approvalsNeeded = mapped
    }

    /**
     * @param value List of emails to request approval from.
     */
    @JvmName("bqsyhpsmukweoywn")
    public suspend fun emailAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailAddresses = mapped
    }

    /**
     * @param values List of emails to request approval from.
     */
    @JvmName("ccfvmqeybavbkyli")
    public suspend fun emailAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emailAddresses = mapped
    }

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

    internal fun build(): AccessPolicyApprovalGroupArgs = AccessPolicyApprovalGroupArgs(
        approvalsNeeded = approvalsNeeded ?: throw PulumiNullFieldException("approvalsNeeded"),
        emailAddresses = emailAddresses,
        emailListUuid = emailListUuid,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy