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

com.pulumi.azure.logicapps.kotlin.inputs.WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.logicapps.kotlin.inputs

import com.pulumi.azure.logicapps.inputs.WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property claims A `claim` block as defined below.
 * @property name The OAuth policy name for the Logic App Workflow.
 */
public data class WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs(
    public val claims: Output>,
    public val name: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.logicapps.inputs.WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs =
        com.pulumi.azure.logicapps.inputs.WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs.builder()
            .claims(claims.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    /**
     * @param value A `claim` block as defined below.
     */
    @JvmName("fldrchvgfdgmtpfw")
    public suspend fun claims(`value`: Output>) {
        this.claims = value
    }

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

    /**
     * @param values A `claim` block as defined below.
     */
    @JvmName("whvsgcltwhpxjhjv")
    public suspend fun claims(values: List>) {
        this.claims = Output.all(values)
    }

    /**
     * @param value The OAuth policy name for the Logic App Workflow.
     */
    @JvmName("flhbkemiwvqeuroo")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `claim` block as defined below.
     */
    @JvmName("gajnoyvkwstagmsj")
    public suspend fun claims(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.claims = mapped
    }

    /**
     * @param argument A `claim` block as defined below.
     */
    @JvmName("djllwyotvxvyvfte")
    public suspend fun claims(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkflowAccessControlTriggerOpenAuthenticationPolicyClaimArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param argument A `claim` block as defined below.
     */
    @JvmName("enqufrhkesrjmdfs")
    public suspend fun claims(vararg argument: suspend WorkflowAccessControlTriggerOpenAuthenticationPolicyClaimArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkflowAccessControlTriggerOpenAuthenticationPolicyClaimArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param argument A `claim` block as defined below.
     */
    @JvmName("mlwgxbnwxwhptldc")
    public suspend fun claims(argument: suspend WorkflowAccessControlTriggerOpenAuthenticationPolicyClaimArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WorkflowAccessControlTriggerOpenAuthenticationPolicyClaimArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param values A `claim` block as defined below.
     */
    @JvmName("wamllfoyvirlnnsu")
    public suspend fun claims(vararg values: WorkflowAccessControlTriggerOpenAuthenticationPolicyClaimArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.claims = mapped
    }

    /**
     * @param value The OAuth policy name for the Logic App Workflow.
     */
    @JvmName("obqgmfhrpxbmutfa")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs =
        WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs(
            claims = claims ?: throw PulumiNullFieldException("claims"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy