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

com.pulumi.cloudflare.kotlin.inputs.ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgs.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.ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgs.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 ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgs(
    public val name: Output,
    public val nameByIdp: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgs =
        com.pulumi.cloudflare.inputs.ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .nameByIdp(
                nameByIdp?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgs].
 */
@PulumiTagMarker
public class ZeroTrustAccessApplicationSaasAppCustomAttributeSourceArgsBuilder 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("kqqypabomkcccqcm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value The name of the attribute as provided by the IDP.
     */
    @JvmName("obgnsydurkghttdy")
    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("mdlrikweuhpedcyi")
    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("dbepngpffgwowsrr")
    public fun nameByIdp(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nameByIdp = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy