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

com.pulumi.azurenative.logic.kotlin.inputs.OpenAuthenticationAccessPolicyArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.logic.kotlin.inputs

import com.pulumi.azurenative.logic.inputs.OpenAuthenticationAccessPolicyArgs.builder
import com.pulumi.azurenative.logic.kotlin.enums.OpenAuthenticationProviderType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * Open authentication access policy defined by user.
 * @property claims The access policy claims.
 * @property type Type of provider for OAuth.
 */
public data class OpenAuthenticationAccessPolicyArgs(
    public val claims: Output>? = null,
    public val type: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.inputs.OpenAuthenticationAccessPolicyArgs =
        com.pulumi.azurenative.logic.inputs.OpenAuthenticationAccessPolicyArgs.builder()
            .claims(claims?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var type: Output>? = null

    /**
     * @param value The access policy claims.
     */
    @JvmName("gnkaoyhjatyhoman")
    public suspend fun claims(`value`: Output>) {
        this.claims = value
    }

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

    /**
     * @param values The access policy claims.
     */
    @JvmName("ybeiygxpddplmaao")
    public suspend fun claims(values: List>) {
        this.claims = Output.all(values)
    }

    /**
     * @param value Type of provider for OAuth.
     */
    @JvmName("yieqbskqsnvcdpjc")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value The access policy claims.
     */
    @JvmName("bhudklbieyklwbom")
    public suspend fun claims(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.claims = mapped
    }

    /**
     * @param argument The access policy claims.
     */
    @JvmName("krnkdarohypuievo")
    public suspend fun claims(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OpenAuthenticationPolicyClaimArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param argument The access policy claims.
     */
    @JvmName("vgfjoddwkneepvsp")
    public suspend fun claims(vararg argument: suspend OpenAuthenticationPolicyClaimArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OpenAuthenticationPolicyClaimArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param argument The access policy claims.
     */
    @JvmName("ijawfukveiiulsoc")
    public suspend fun claims(argument: suspend OpenAuthenticationPolicyClaimArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            OpenAuthenticationPolicyClaimArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.claims = mapped
    }

    /**
     * @param values The access policy claims.
     */
    @JvmName("ctlkwofbxjjukahe")
    public suspend fun claims(vararg values: OpenAuthenticationPolicyClaimArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.claims = mapped
    }

    /**
     * @param value Type of provider for OAuth.
     */
    @JvmName("sidwckgvghtfhins")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Type of provider for OAuth.
     */
    @JvmName("kasvbgubgxsckopa")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Type of provider for OAuth.
     */
    @JvmName("nflbvpsnyktrivvh")
    public fun type(`value`: OpenAuthenticationProviderType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): OpenAuthenticationAccessPolicyArgs = OpenAuthenticationAccessPolicyArgs(
        claims = claims,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy