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

com.pulumi.azure.appservice.outputs.FunctionAppAuthSettingsFacebook 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.15.0
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.outputs;

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

@CustomType
public final class FunctionAppAuthSettingsFacebook {
    /**
     * @return The App ID of the Facebook app used for login
     * 
     */
    private String appId;
    /**
     * @return The App Secret of the Facebook app used for Facebook login.
     * 
     */
    private String appSecret;
    /**
     * @return The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
     * 
     */
    private @Nullable List oauthScopes;

    private FunctionAppAuthSettingsFacebook() {}
    /**
     * @return The App ID of the Facebook app used for login
     * 
     */
    public String appId() {
        return this.appId;
    }
    /**
     * @return The App Secret of the Facebook app used for Facebook login.
     * 
     */
    public String appSecret() {
        return this.appSecret;
    }
    /**
     * @return The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. <https://developers.facebook.com/docs/facebook-login>
     * 
     */
    public List oauthScopes() {
        return this.oauthScopes == null ? List.of() : this.oauthScopes;
    }

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

    public static Builder builder(FunctionAppAuthSettingsFacebook defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String appId;
        private String appSecret;
        private @Nullable List oauthScopes;
        public Builder() {}
        public Builder(FunctionAppAuthSettingsFacebook defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appId = defaults.appId;
    	      this.appSecret = defaults.appSecret;
    	      this.oauthScopes = defaults.oauthScopes;
        }

        @CustomType.Setter
        public Builder appId(String appId) {
            if (appId == null) {
              throw new MissingRequiredPropertyException("FunctionAppAuthSettingsFacebook", "appId");
            }
            this.appId = appId;
            return this;
        }
        @CustomType.Setter
        public Builder appSecret(String appSecret) {
            if (appSecret == null) {
              throw new MissingRequiredPropertyException("FunctionAppAuthSettingsFacebook", "appSecret");
            }
            this.appSecret = appSecret;
            return this;
        }
        @CustomType.Setter
        public Builder oauthScopes(@Nullable List oauthScopes) {

            this.oauthScopes = oauthScopes;
            return this;
        }
        public Builder oauthScopes(String... oauthScopes) {
            return oauthScopes(List.of(oauthScopes));
        }
        public FunctionAppAuthSettingsFacebook build() {
            final var _resultValue = new FunctionAppAuthSettingsFacebook();
            _resultValue.appId = appId;
            _resultValue.appSecret = appSecret;
            _resultValue.oauthScopes = oauthScopes;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy