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

com.pulumi.azure.appservice.inputs.FunctionAppSlotAuthSettingsFacebookArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.appservice.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FunctionAppSlotAuthSettingsFacebookArgs extends com.pulumi.resources.ResourceArgs {

    public static final FunctionAppSlotAuthSettingsFacebookArgs Empty = new FunctionAppSlotAuthSettingsFacebookArgs();

    /**
     * The App ID of the Facebook app used for login
     * 
     */
    @Import(name="appId", required=true)
    private Output appId;

    /**
     * @return The App ID of the Facebook app used for login
     * 
     */
    public Output appId() {
        return this.appId;
    }

    /**
     * The App Secret of the Facebook app used for Facebook login.
     * 
     */
    @Import(name="appSecret", required=true)
    private Output appSecret;

    /**
     * @return The App Secret of the Facebook app used for Facebook login.
     * 
     */
    public Output appSecret() {
        return this.appSecret;
    }

    /**
     * The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
     * 
     */
    @Import(name="oauthScopes")
    private @Nullable Output> oauthScopes;

    /**
     * @return The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
     * 
     */
    public Optional>> oauthScopes() {
        return Optional.ofNullable(this.oauthScopes);
    }

    private FunctionAppSlotAuthSettingsFacebookArgs() {}

    private FunctionAppSlotAuthSettingsFacebookArgs(FunctionAppSlotAuthSettingsFacebookArgs $) {
        this.appId = $.appId;
        this.appSecret = $.appSecret;
        this.oauthScopes = $.oauthScopes;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(FunctionAppSlotAuthSettingsFacebookArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private FunctionAppSlotAuthSettingsFacebookArgs $;

        public Builder() {
            $ = new FunctionAppSlotAuthSettingsFacebookArgs();
        }

        public Builder(FunctionAppSlotAuthSettingsFacebookArgs defaults) {
            $ = new FunctionAppSlotAuthSettingsFacebookArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param appId The App ID of the Facebook app used for login
         * 
         * @return builder
         * 
         */
        public Builder appId(Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId The App ID of the Facebook app used for login
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param appSecret The App Secret of the Facebook app used for Facebook login.
         * 
         * @return builder
         * 
         */
        public Builder appSecret(Output appSecret) {
            $.appSecret = appSecret;
            return this;
        }

        /**
         * @param appSecret The App Secret of the Facebook app used for Facebook login.
         * 
         * @return builder
         * 
         */
        public Builder appSecret(String appSecret) {
            return appSecret(Output.of(appSecret));
        }

        /**
         * @param oauthScopes The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(@Nullable Output> oauthScopes) {
            $.oauthScopes = oauthScopes;
            return this;
        }

        /**
         * @param oauthScopes The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(List oauthScopes) {
            return oauthScopes(Output.of(oauthScopes));
        }

        /**
         * @param oauthScopes The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(String... oauthScopes) {
            return oauthScopes(List.of(oauthScopes));
        }

        public FunctionAppSlotAuthSettingsFacebookArgs build() {
            if ($.appId == null) {
                throw new MissingRequiredPropertyException("FunctionAppSlotAuthSettingsFacebookArgs", "appId");
            }
            if ($.appSecret == null) {
                throw new MissingRequiredPropertyException("FunctionAppSlotAuthSettingsFacebookArgs", "appSecret");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy