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

com.pulumi.azurenative.app.outputs.GlobalValidationResponse 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.app.outputs;

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

@CustomType
public final class GlobalValidationResponse {
    /**
     * @return The paths for which unauthenticated flow would not be redirected to the login page.
     * 
     */
    private @Nullable List excludedPaths;
    /**
     * @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".
     * 
     */
    private @Nullable String redirectToProvider;
    /**
     * @return The action to take when an unauthenticated client attempts to access the app.
     * 
     */
    private @Nullable String unauthenticatedClientAction;

    private GlobalValidationResponse() {}
    /**
     * @return The paths for which unauthenticated flow would not be redirected to the login page.
     * 
     */
    public List excludedPaths() {
        return this.excludedPaths == null ? List.of() : this.excludedPaths;
    }
    /**
     * @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);
    }
    /**
     * @return The action to take when an unauthenticated client attempts to access the app.
     * 
     */
    public Optional unauthenticatedClientAction() {
        return Optional.ofNullable(this.unauthenticatedClientAction);
    }

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

    public static Builder builder(GlobalValidationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List excludedPaths;
        private @Nullable String redirectToProvider;
        private @Nullable String unauthenticatedClientAction;
        public Builder() {}
        public Builder(GlobalValidationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.excludedPaths = defaults.excludedPaths;
    	      this.redirectToProvider = defaults.redirectToProvider;
    	      this.unauthenticatedClientAction = defaults.unauthenticatedClientAction;
        }

        @CustomType.Setter
        public Builder excludedPaths(@Nullable List excludedPaths) {

            this.excludedPaths = excludedPaths;
            return this;
        }
        public Builder excludedPaths(String... excludedPaths) {
            return excludedPaths(List.of(excludedPaths));
        }
        @CustomType.Setter
        public Builder redirectToProvider(@Nullable String redirectToProvider) {

            this.redirectToProvider = redirectToProvider;
            return this;
        }
        @CustomType.Setter
        public Builder unauthenticatedClientAction(@Nullable String unauthenticatedClientAction) {

            this.unauthenticatedClientAction = unauthenticatedClientAction;
            return this;
        }
        public GlobalValidationResponse build() {
            final var _resultValue = new GlobalValidationResponse();
            _resultValue.excludedPaths = excludedPaths;
            _resultValue.redirectToProvider = redirectToProvider;
            _resultValue.unauthenticatedClientAction = unauthenticatedClientAction;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy