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

com.pulumi.azure.appservice.kotlin.inputs.FunctionAppSlotAuthSettingsFacebookArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.FunctionAppSlotAuthSettingsFacebookArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property appId The App ID of the Facebook app used for login
 * @property appSecret The App Secret of the Facebook app used for Facebook login.
 * @property oauthScopes The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. 
 */
public data class FunctionAppSlotAuthSettingsFacebookArgs(
    public val appId: Output,
    public val appSecret: Output,
    public val oauthScopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.FunctionAppSlotAuthSettingsFacebookArgs =
        com.pulumi.azure.appservice.inputs.FunctionAppSlotAuthSettingsFacebookArgs.builder()
            .appId(appId.applyValue({ args0 -> args0 }))
            .appSecret(appSecret.applyValue({ args0 -> args0 }))
            .oauthScopes(oauthScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FunctionAppSlotAuthSettingsFacebookArgs].
 */
@PulumiTagMarker
public class FunctionAppSlotAuthSettingsFacebookArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var appSecret: Output? = null

    private var oauthScopes: Output>? = null

    /**
     * @param value The App ID of the Facebook app used for login
     */
    @JvmName("brpakwdvheufmoqr")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value The App Secret of the Facebook app used for Facebook login.
     */
    @JvmName("xbwntemrtfmbagir")
    public suspend fun appSecret(`value`: Output) {
        this.appSecret = value
    }

    /**
     * @param value The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. 
     */
    @JvmName("fvvrksgrxodnifqv")
    public suspend fun oauthScopes(`value`: Output>) {
        this.oauthScopes = value
    }

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

    /**
     * @param values The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. 
     */
    @JvmName("gkoskmfgytavlcja")
    public suspend fun oauthScopes(values: List>) {
        this.oauthScopes = Output.all(values)
    }

    /**
     * @param value The App ID of the Facebook app used for login
     */
    @JvmName("hlhbdqghotyjkawt")
    public suspend fun appId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value The App Secret of the Facebook app used for Facebook login.
     */
    @JvmName("rmgkcdbuswajtutu")
    public suspend fun appSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appSecret = mapped
    }

    /**
     * @param value The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. 
     */
    @JvmName("armkoqfgkvlotsnl")
    public suspend fun oauthScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    /**
     * @param values The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. 
     */
    @JvmName("ududjjjnlbjuekdj")
    public suspend fun oauthScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

    internal fun build(): FunctionAppSlotAuthSettingsFacebookArgs =
        FunctionAppSlotAuthSettingsFacebookArgs(
            appId = appId ?: throw PulumiNullFieldException("appId"),
            appSecret = appSecret ?: throw PulumiNullFieldException("appSecret"),
            oauthScopes = oauthScopes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy