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

com.pulumi.cloudflare.kotlin.inputs.AccessApplicationSaasAppCustomAttributeSourceArgs.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.AccessApplicationSaasAppCustomAttributeSourceArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property name The name of the attribute as provided by the IDP.
 * @property nameByIdp A mapping from IdP ID to claim name.
 */
public data class AccessApplicationSaasAppCustomAttributeSourceArgs(
    public val name: Output,
    public val nameByIdp: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.AccessApplicationSaasAppCustomAttributeSourceArgs =
        com.pulumi.cloudflare.inputs.AccessApplicationSaasAppCustomAttributeSourceArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .nameByIdp(
                nameByIdp?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AccessApplicationSaasAppCustomAttributeSourceArgs].
 */
@PulumiTagMarker
public class AccessApplicationSaasAppCustomAttributeSourceArgsBuilder internal constructor() {
    private var name: Output? = null

    private var nameByIdp: Output>? = null

    /**
     * @param value The name of the attribute as provided by the IDP.
     */
    @JvmName("yfsdfyxefqgilxtr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A mapping from IdP ID to claim name.
     */
    @JvmName("lqparqeiowaqlsml")
    public suspend fun nameByIdp(`value`: Output>) {
        this.nameByIdp = value
    }

    /**
     * @param value The name of the attribute as provided by the IDP.
     */
    @JvmName("kvbghyutidcngwpy")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A mapping from IdP ID to claim name.
     */
    @JvmName("kmyhpjtjuacxvvpy")
    public suspend fun nameByIdp(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nameByIdp = mapped
    }

    /**
     * @param values A mapping from IdP ID to claim name.
     */
    @JvmName("pcuwbafychabepch")
    public fun nameByIdp(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nameByIdp = mapped
    }

    internal fun build(): AccessApplicationSaasAppCustomAttributeSourceArgs =
        AccessApplicationSaasAppCustomAttributeSourceArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            nameByIdp = nameByIdp,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy