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

com.pulumi.azure.appservice.kotlin.inputs.FunctionAppAuthSettingsFacebookArgs.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.FunctionAppAuthSettingsFacebookArgs.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 FunctionAppAuthSettingsFacebookArgs(
    public val appId: Output,
    public val appSecret: Output,
    public val oauthScopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.FunctionAppAuthSettingsFacebookArgs =
        com.pulumi.azure.appservice.inputs.FunctionAppAuthSettingsFacebookArgs.builder()
            .appId(appId.applyValue({ args0 -> args0 }))
            .appSecret(appSecret.applyValue({ args0 -> args0 }))
            .oauthScopes(oauthScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value The App Secret of the Facebook app used for Facebook login.
     */
    @JvmName("bvroagaguovpughx")
    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("xgrdihgmklgxsxhd")
    public suspend fun oauthScopes(`value`: Output>) {
        this.oauthScopes = value
    }

    @JvmName("hvyxjpwjeenwoljj")
    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("bdmvvraftejjcbdf")
    public suspend fun oauthScopes(values: List>) {
        this.oauthScopes = Output.all(values)
    }

    /**
     * @param value The App ID of the Facebook app used for login
     */
    @JvmName("mdfkkkswlbegbetx")
    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("oriqhgfldppmrfqk")
    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("rpkhlwekjckuenst")
    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("jchbxrmjwlsibmeo")
    public suspend fun oauthScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oauthScopes = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy