com.pulumi.azurenative.web.outputs.GlobalValidationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
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 <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
*
*/
private @Nullable Boolean requireAuthentication;
/**
* @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 <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);
}
/**
* @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 Boolean requireAuthentication;
private @Nullable String unauthenticatedClientAction;
public Builder() {}
public Builder(GlobalValidationResponse defaults) {
Objects.requireNonNull(defaults);
this.excludedPaths = defaults.excludedPaths;
this.redirectToProvider = defaults.redirectToProvider;
this.requireAuthentication = defaults.requireAuthentication;
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 requireAuthentication(@Nullable Boolean requireAuthentication) {
this.requireAuthentication = requireAuthentication;
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.requireAuthentication = requireAuthentication;
_resultValue.unauthenticatedClientAction = unauthenticatedClientAction;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy