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

com.pulumi.azure.appservice.inputs.LinuxWebAppSlotAuthSettingsV2FacebookV2Args 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 LinuxWebAppSlotAuthSettingsV2FacebookV2Args extends com.pulumi.resources.ResourceArgs {

    public static final LinuxWebAppSlotAuthSettingsV2FacebookV2Args Empty = new LinuxWebAppSlotAuthSettingsV2FacebookV2Args();

    /**
     * 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 setting name that contains the `app_secret` value used for Facebook Login.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    @Import(name="appSecretSettingName", required=true)
    private Output appSecretSettingName;

    /**
     * @return The app setting name that contains the `app_secret` value used for Facebook Login.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    public Output appSecretSettingName() {
        return this.appSecretSettingName;
    }

    /**
     * The version of the Facebook API to be used while logging in.
     * 
     */
    @Import(name="graphApiVersion")
    private @Nullable Output graphApiVersion;

    /**
     * @return The version of the Facebook API to be used while logging in.
     * 
     */
    public Optional> graphApiVersion() {
        return Optional.ofNullable(this.graphApiVersion);
    }

    /**
     * The list of scopes that should be requested as part of Facebook Login authentication.
     * 
     */
    @Import(name="loginScopes")
    private @Nullable Output> loginScopes;

    /**
     * @return The list of scopes that should be requested as part of Facebook Login authentication.
     * 
     */
    public Optional>> loginScopes() {
        return Optional.ofNullable(this.loginScopes);
    }

    private LinuxWebAppSlotAuthSettingsV2FacebookV2Args() {}

    private LinuxWebAppSlotAuthSettingsV2FacebookV2Args(LinuxWebAppSlotAuthSettingsV2FacebookV2Args $) {
        this.appId = $.appId;
        this.appSecretSettingName = $.appSecretSettingName;
        this.graphApiVersion = $.graphApiVersion;
        this.loginScopes = $.loginScopes;
    }

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

    public static final class Builder {
        private LinuxWebAppSlotAuthSettingsV2FacebookV2Args $;

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

        public Builder(LinuxWebAppSlotAuthSettingsV2FacebookV2Args defaults) {
            $ = new LinuxWebAppSlotAuthSettingsV2FacebookV2Args(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 appSecretSettingName The app setting name that contains the `app_secret` value used for Facebook Login.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder appSecretSettingName(Output appSecretSettingName) {
            $.appSecretSettingName = appSecretSettingName;
            return this;
        }

        /**
         * @param appSecretSettingName The app setting name that contains the `app_secret` value used for Facebook Login.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder appSecretSettingName(String appSecretSettingName) {
            return appSecretSettingName(Output.of(appSecretSettingName));
        }

        /**
         * @param graphApiVersion The version of the Facebook API to be used while logging in.
         * 
         * @return builder
         * 
         */
        public Builder graphApiVersion(@Nullable Output graphApiVersion) {
            $.graphApiVersion = graphApiVersion;
            return this;
        }

        /**
         * @param graphApiVersion The version of the Facebook API to be used while logging in.
         * 
         * @return builder
         * 
         */
        public Builder graphApiVersion(String graphApiVersion) {
            return graphApiVersion(Output.of(graphApiVersion));
        }

        /**
         * @param loginScopes The list of scopes that should be requested as part of Facebook Login authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(@Nullable Output> loginScopes) {
            $.loginScopes = loginScopes;
            return this;
        }

        /**
         * @param loginScopes The list of scopes that should be requested as part of Facebook Login authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(List loginScopes) {
            return loginScopes(Output.of(loginScopes));
        }

        /**
         * @param loginScopes The list of scopes that should be requested as part of Facebook Login authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(String... loginScopes) {
            return loginScopes(List.of(loginScopes));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy