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

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

There is a newer version: 2.72.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.enums.UnauthenticatedClientActionV2;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization.
 * 
 */
public final class GlobalValidationArgs extends com.pulumi.resources.ResourceArgs {

    public static final GlobalValidationArgs Empty = new GlobalValidationArgs();

    /**
     * The paths for which unauthenticated flow would not be redirected to the login page.
     * 
     */
    @Import(name="excludedPaths")
    private @Nullable Output> excludedPaths;

    /**
     * @return The paths for which unauthenticated flow would not be redirected to the login page.
     * 
     */
    public Optional>> excludedPaths() {
        return Optional.ofNullable(this.excludedPaths);
    }

    /**
     * The default authentication provider to use when multiple providers are configured.
     * This setting is only needed if multiple providers are configured and the unauthenticated client
     * action is set to "RedirectToLoginPage".
     * 
     */
    @Import(name="redirectToProvider")
    private @Nullable Output redirectToProvider;

    /**
     * @return The default authentication provider to use when multiple providers are configured.
     * This setting is only needed if multiple providers are configured and the unauthenticated client
     * action is set to "RedirectToLoginPage".
     * 
     */
    public Optional> redirectToProvider() {
        return Optional.ofNullable(this.redirectToProvider);
    }

    /**
     * <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
     * 
     */
    @Import(name="requireAuthentication")
    private @Nullable Output requireAuthentication;

    /**
     * @return <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
     * 
     */
    public Optional> requireAuthentication() {
        return Optional.ofNullable(this.requireAuthentication);
    }

    /**
     * The action to take when an unauthenticated client attempts to access the app.
     * 
     */
    @Import(name="unauthenticatedClientAction")
    private @Nullable Output unauthenticatedClientAction;

    /**
     * @return The action to take when an unauthenticated client attempts to access the app.
     * 
     */
    public Optional> unauthenticatedClientAction() {
        return Optional.ofNullable(this.unauthenticatedClientAction);
    }

    private GlobalValidationArgs() {}

    private GlobalValidationArgs(GlobalValidationArgs $) {
        this.excludedPaths = $.excludedPaths;
        this.redirectToProvider = $.redirectToProvider;
        this.requireAuthentication = $.requireAuthentication;
        this.unauthenticatedClientAction = $.unauthenticatedClientAction;
    }

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

    public static final class Builder {
        private GlobalValidationArgs $;

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

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

        /**
         * @param excludedPaths The paths for which unauthenticated flow would not be redirected to the login page.
         * 
         * @return builder
         * 
         */
        public Builder excludedPaths(@Nullable Output> excludedPaths) {
            $.excludedPaths = excludedPaths;
            return this;
        }

        /**
         * @param excludedPaths The paths for which unauthenticated flow would not be redirected to the login page.
         * 
         * @return builder
         * 
         */
        public Builder excludedPaths(List excludedPaths) {
            return excludedPaths(Output.of(excludedPaths));
        }

        /**
         * @param excludedPaths The paths for which unauthenticated flow would not be redirected to the login page.
         * 
         * @return builder
         * 
         */
        public Builder excludedPaths(String... excludedPaths) {
            return excludedPaths(List.of(excludedPaths));
        }

        /**
         * @param redirectToProvider The default authentication provider to use when multiple providers are configured.
         * This setting is only needed if multiple providers are configured and the unauthenticated client
         * action is set to "RedirectToLoginPage".
         * 
         * @return builder
         * 
         */
        public Builder redirectToProvider(@Nullable Output redirectToProvider) {
            $.redirectToProvider = redirectToProvider;
            return this;
        }

        /**
         * @param redirectToProvider The default authentication provider to use when multiple providers are configured.
         * This setting is only needed if multiple providers are configured and the unauthenticated client
         * action is set to "RedirectToLoginPage".
         * 
         * @return builder
         * 
         */
        public Builder redirectToProvider(String redirectToProvider) {
            return redirectToProvider(Output.of(redirectToProvider));
        }

        /**
         * @param requireAuthentication <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
         * 
         * @return builder
         * 
         */
        public Builder requireAuthentication(@Nullable Output requireAuthentication) {
            $.requireAuthentication = requireAuthentication;
            return this;
        }

        /**
         * @param requireAuthentication <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
         * 
         * @return builder
         * 
         */
        public Builder requireAuthentication(Boolean requireAuthentication) {
            return requireAuthentication(Output.of(requireAuthentication));
        }

        /**
         * @param unauthenticatedClientAction The action to take when an unauthenticated client attempts to access the app.
         * 
         * @return builder
         * 
         */
        public Builder unauthenticatedClientAction(@Nullable Output unauthenticatedClientAction) {
            $.unauthenticatedClientAction = unauthenticatedClientAction;
            return this;
        }

        /**
         * @param unauthenticatedClientAction The action to take when an unauthenticated client attempts to access the app.
         * 
         * @return builder
         * 
         */
        public Builder unauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction) {
            return unauthenticatedClientAction(Output.of(unauthenticatedClientAction));
        }

        public GlobalValidationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy