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

com.pulumi.azurenative.botservice.kotlin.inputs.ConnectionSettingPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.botservice.kotlin.inputs

import com.pulumi.azurenative.botservice.inputs.ConnectionSettingPropertiesArgs.builder
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

/**
 * Properties for a Connection Setting Item
 * @property clientId Client Id associated with the Connection Setting.
 * @property clientSecret Client Secret associated with the Connection Setting
 * @property id Id of the Connection Setting.
 * @property name Name of the Connection Setting.
 * @property parameters Service Provider Parameters associated with the Connection Setting
 * @property provisioningState Provisioning state of the resource
 * @property scopes Scopes associated with the Connection Setting
 * @property serviceProviderDisplayName Service Provider Display Name associated with the Connection Setting
 * @property serviceProviderId Service Provider Id associated with the Connection Setting
 */
public data class ConnectionSettingPropertiesArgs(
    public val clientId: Output? = null,
    public val clientSecret: Output? = null,
    public val id: Output? = null,
    public val name: Output? = null,
    public val parameters: Output>? = null,
    public val provisioningState: Output? = null,
    public val scopes: Output? = null,
    public val serviceProviderDisplayName: Output? = null,
    public val serviceProviderId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.botservice.inputs.ConnectionSettingPropertiesArgs =
        com.pulumi.azurenative.botservice.inputs.ConnectionSettingPropertiesArgs.builder()
            .clientId(clientId?.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .provisioningState(provisioningState?.applyValue({ args0 -> args0 }))
            .scopes(scopes?.applyValue({ args0 -> args0 }))
            .serviceProviderDisplayName(serviceProviderDisplayName?.applyValue({ args0 -> args0 }))
            .serviceProviderId(serviceProviderId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionSettingPropertiesArgs].
 */
@PulumiTagMarker
public class ConnectionSettingPropertiesArgsBuilder internal constructor() {
    private var clientId: Output? = null

    private var clientSecret: Output? = null

    private var id: Output? = null

    private var name: Output? = null

    private var parameters: Output>? = null

    private var provisioningState: Output? = null

    private var scopes: Output? = null

    private var serviceProviderDisplayName: Output? = null

    private var serviceProviderId: Output? = null

    /**
     * @param value Client Id associated with the Connection Setting.
     */
    @JvmName("ndmovwuyjxhdjauo")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value Client Secret associated with the Connection Setting
     */
    @JvmName("jfhcajwedghviwyl")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value Id of the Connection Setting.
     */
    @JvmName("qqfrojfaywiwmxpt")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Name of the Connection Setting.
     */
    @JvmName("loyiempdxqslyrml")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("nlkekdvrlsobekrb")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("wultcywwbvckpvvv")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value Provisioning state of the resource
     */
    @JvmName("pgvjlwumjixxersr")
    public suspend fun provisioningState(`value`: Output) {
        this.provisioningState = value
    }

    /**
     * @param value Scopes associated with the Connection Setting
     */
    @JvmName("ktejtdtimqlwooqt")
    public suspend fun scopes(`value`: Output) {
        this.scopes = value
    }

    /**
     * @param value Service Provider Display Name associated with the Connection Setting
     */
    @JvmName("radbufiqnceavifu")
    public suspend fun serviceProviderDisplayName(`value`: Output) {
        this.serviceProviderDisplayName = value
    }

    /**
     * @param value Service Provider Id associated with the Connection Setting
     */
    @JvmName("gpniaiyvbjtcruic")
    public suspend fun serviceProviderId(`value`: Output) {
        this.serviceProviderId = value
    }

    /**
     * @param value Client Id associated with the Connection Setting.
     */
    @JvmName("vobojiftvruvlmsu")
    public suspend fun clientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value Client Secret associated with the Connection Setting
     */
    @JvmName("naoonlyrabgkdnfy")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    /**
     * @param value Id of the Connection Setting.
     */
    @JvmName("iyrvoobnuvohtcux")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Name of the Connection Setting.
     */
    @JvmName("yuwjrgkwhgsubboa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("eogudlunnxyvegvb")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("rogwdxtllmuiunbs")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectionSettingParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("gjkwgatrlaqearss")
    public suspend fun parameters(vararg argument: suspend ConnectionSettingParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectionSettingParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("kgiuhfrrkajajajq")
    public suspend fun parameters(argument: suspend ConnectionSettingParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConnectionSettingParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Service Provider Parameters associated with the Connection Setting
     */
    @JvmName("wivshrocjunjpitq")
    public suspend fun parameters(vararg values: ConnectionSettingParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value Provisioning state of the resource
     */
    @JvmName("mpqnpjrhxxkxiyhr")
    public suspend fun provisioningState(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value Scopes associated with the Connection Setting
     */
    @JvmName("qhhjxtdjyqrxlqfr")
    public suspend fun scopes(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value Service Provider Display Name associated with the Connection Setting
     */
    @JvmName("pnupyrcsgtfnnwmp")
    public suspend fun serviceProviderDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceProviderDisplayName = mapped
    }

    /**
     * @param value Service Provider Id associated with the Connection Setting
     */
    @JvmName("trkicjdrbkhnfxdt")
    public suspend fun serviceProviderId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceProviderId = mapped
    }

    internal fun build(): ConnectionSettingPropertiesArgs = ConnectionSettingPropertiesArgs(
        clientId = clientId,
        clientSecret = clientSecret,
        id = id,
        name = name,
        parameters = parameters,
        provisioningState = provisioningState,
        scopes = scopes,
        serviceProviderDisplayName = serviceProviderDisplayName,
        serviceProviderId = serviceProviderId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy