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

com.pulumi.azure.appservice.outputs.WindowsFunctionAppAuthSettingsV2FacebookV2 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.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 java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WindowsFunctionAppAuthSettingsV2FacebookV2 {
    /**
     * @return The App ID of the Facebook app used for login.
     * 
     */
    private String appId;
    /**
     * @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.
     * 
     */
    private String appSecretSettingName;
    /**
     * @return The version of the Facebook API to be used while logging in.
     * 
     */
    private @Nullable String graphApiVersion;
    /**
     * @return The list of scopes that should be requested as part of Facebook Login authentication.
     * 
     */
    private @Nullable List loginScopes;

    private WindowsFunctionAppAuthSettingsV2FacebookV2() {}
    /**
     * @return The App ID of the Facebook app used for login.
     * 
     */
    public String appId() {
        return this.appId;
    }
    /**
     * @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 String appSecretSettingName() {
        return this.appSecretSettingName;
    }
    /**
     * @return The version of the Facebook API to be used while logging in.
     * 
     */
    public Optional graphApiVersion() {
        return Optional.ofNullable(this.graphApiVersion);
    }
    /**
     * @return The list of scopes that should be requested as part of Facebook Login authentication.
     * 
     */
    public List loginScopes() {
        return this.loginScopes == null ? List.of() : this.loginScopes;
    }

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

    public static Builder builder(WindowsFunctionAppAuthSettingsV2FacebookV2 defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String appId;
        private String appSecretSettingName;
        private @Nullable String graphApiVersion;
        private @Nullable List loginScopes;
        public Builder() {}
        public Builder(WindowsFunctionAppAuthSettingsV2FacebookV2 defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appId = defaults.appId;
    	      this.appSecretSettingName = defaults.appSecretSettingName;
    	      this.graphApiVersion = defaults.graphApiVersion;
    	      this.loginScopes = defaults.loginScopes;
        }

        @CustomType.Setter
        public Builder appId(String appId) {
            if (appId == null) {
              throw new MissingRequiredPropertyException("WindowsFunctionAppAuthSettingsV2FacebookV2", "appId");
            }
            this.appId = appId;
            return this;
        }
        @CustomType.Setter
        public Builder appSecretSettingName(String appSecretSettingName) {
            if (appSecretSettingName == null) {
              throw new MissingRequiredPropertyException("WindowsFunctionAppAuthSettingsV2FacebookV2", "appSecretSettingName");
            }
            this.appSecretSettingName = appSecretSettingName;
            return this;
        }
        @CustomType.Setter
        public Builder graphApiVersion(@Nullable String graphApiVersion) {

            this.graphApiVersion = graphApiVersion;
            return this;
        }
        @CustomType.Setter
        public Builder loginScopes(@Nullable List loginScopes) {

            this.loginScopes = loginScopes;
            return this;
        }
        public Builder loginScopes(String... loginScopes) {
            return loginScopes(List.of(loginScopes));
        }
        public WindowsFunctionAppAuthSettingsV2FacebookV2 build() {
            final var _resultValue = new WindowsFunctionAppAuthSettingsV2FacebookV2();
            _resultValue.appId = appId;
            _resultValue.appSecretSettingName = appSecretSettingName;
            _resultValue.graphApiVersion = graphApiVersion;
            _resultValue.loginScopes = loginScopes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy