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

com.pulumi.azurenative.web.inputs.FacebookArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.web.inputs;

import com.pulumi.azurenative.web.inputs.AppRegistrationArgs;
import com.pulumi.azurenative.web.inputs.LoginScopesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The configuration settings of the Facebook provider.
 * 
 */
public final class FacebookArgs extends com.pulumi.resources.ResourceArgs {

    public static final FacebookArgs Empty = new FacebookArgs();

    /**
     * <code>false</code> if the Facebook provider should not be enabled despite the set registration; otherwise, <code>true</code>.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return <code>false</code> if the Facebook provider should not be enabled despite the set registration; otherwise, <code>true</code>.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * 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 configuration settings of the login flow.
     * 
     */
    @Import(name="login")
    private @Nullable Output login;

    /**
     * @return The configuration settings of the login flow.
     * 
     */
    public Optional> login() {
        return Optional.ofNullable(this.login);
    }

    /**
     * The configuration settings of the app registration for the Facebook provider.
     * 
     */
    @Import(name="registration")
    private @Nullable Output registration;

    /**
     * @return The configuration settings of the app registration for the Facebook provider.
     * 
     */
    public Optional> registration() {
        return Optional.ofNullable(this.registration);
    }

    private FacebookArgs() {}

    private FacebookArgs(FacebookArgs $) {
        this.enabled = $.enabled;
        this.graphApiVersion = $.graphApiVersion;
        this.login = $.login;
        this.registration = $.registration;
    }

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

    public static final class Builder {
        private FacebookArgs $;

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

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

        /**
         * @param enabled <code>false</code> if the Facebook provider should not be enabled despite the set registration; otherwise, <code>true</code>.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled <code>false</code> if the Facebook provider should not be enabled despite the set registration; otherwise, <code>true</code>.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @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 login The configuration settings of the login flow.
         * 
         * @return builder
         * 
         */
        public Builder login(@Nullable Output login) {
            $.login = login;
            return this;
        }

        /**
         * @param login The configuration settings of the login flow.
         * 
         * @return builder
         * 
         */
        public Builder login(LoginScopesArgs login) {
            return login(Output.of(login));
        }

        /**
         * @param registration The configuration settings of the app registration for the Facebook provider.
         * 
         * @return builder
         * 
         */
        public Builder registration(@Nullable Output registration) {
            $.registration = registration;
            return this;
        }

        /**
         * @param registration The configuration settings of the app registration for the Facebook provider.
         * 
         * @return builder
         * 
         */
        public Builder registration(AppRegistrationArgs registration) {
            return registration(Output.of(registration));
        }

        public FacebookArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy