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

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

// *** 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.DefaultAuthorizationPolicyArgs;
import com.pulumi.azurenative.web.inputs.JwtClaimChecksArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The configuration settings of the Azure Active Directory token validation flow.
 * 
 */
public final class AzureActiveDirectoryValidationArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureActiveDirectoryValidationArgs Empty = new AzureActiveDirectoryValidationArgs();

    /**
     * The list of audiences that can make successful authentication/authorization requests.
     * 
     */
    @Import(name="allowedAudiences")
    private @Nullable Output> allowedAudiences;

    /**
     * @return The list of audiences that can make successful authentication/authorization requests.
     * 
     */
    public Optional>> allowedAudiences() {
        return Optional.ofNullable(this.allowedAudiences);
    }

    /**
     * The configuration settings of the default authorization policy.
     * 
     */
    @Import(name="defaultAuthorizationPolicy")
    private @Nullable Output defaultAuthorizationPolicy;

    /**
     * @return The configuration settings of the default authorization policy.
     * 
     */
    public Optional> defaultAuthorizationPolicy() {
        return Optional.ofNullable(this.defaultAuthorizationPolicy);
    }

    /**
     * The configuration settings of the checks that should be made while validating the JWT Claims.
     * 
     */
    @Import(name="jwtClaimChecks")
    private @Nullable Output jwtClaimChecks;

    /**
     * @return The configuration settings of the checks that should be made while validating the JWT Claims.
     * 
     */
    public Optional> jwtClaimChecks() {
        return Optional.ofNullable(this.jwtClaimChecks);
    }

    private AzureActiveDirectoryValidationArgs() {}

    private AzureActiveDirectoryValidationArgs(AzureActiveDirectoryValidationArgs $) {
        this.allowedAudiences = $.allowedAudiences;
        this.defaultAuthorizationPolicy = $.defaultAuthorizationPolicy;
        this.jwtClaimChecks = $.jwtClaimChecks;
    }

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

    public static final class Builder {
        private AzureActiveDirectoryValidationArgs $;

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

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

        /**
         * @param allowedAudiences The list of audiences that can make successful authentication/authorization requests.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(@Nullable Output> allowedAudiences) {
            $.allowedAudiences = allowedAudiences;
            return this;
        }

        /**
         * @param allowedAudiences The list of audiences that can make successful authentication/authorization requests.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(List allowedAudiences) {
            return allowedAudiences(Output.of(allowedAudiences));
        }

        /**
         * @param allowedAudiences The list of audiences that can make successful authentication/authorization requests.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(String... allowedAudiences) {
            return allowedAudiences(List.of(allowedAudiences));
        }

        /**
         * @param defaultAuthorizationPolicy The configuration settings of the default authorization policy.
         * 
         * @return builder
         * 
         */
        public Builder defaultAuthorizationPolicy(@Nullable Output defaultAuthorizationPolicy) {
            $.defaultAuthorizationPolicy = defaultAuthorizationPolicy;
            return this;
        }

        /**
         * @param defaultAuthorizationPolicy The configuration settings of the default authorization policy.
         * 
         * @return builder
         * 
         */
        public Builder defaultAuthorizationPolicy(DefaultAuthorizationPolicyArgs defaultAuthorizationPolicy) {
            return defaultAuthorizationPolicy(Output.of(defaultAuthorizationPolicy));
        }

        /**
         * @param jwtClaimChecks The configuration settings of the checks that should be made while validating the JWT Claims.
         * 
         * @return builder
         * 
         */
        public Builder jwtClaimChecks(@Nullable Output jwtClaimChecks) {
            $.jwtClaimChecks = jwtClaimChecks;
            return this;
        }

        /**
         * @param jwtClaimChecks The configuration settings of the checks that should be made while validating the JWT Claims.
         * 
         * @return builder
         * 
         */
        public Builder jwtClaimChecks(JwtClaimChecksArgs jwtClaimChecks) {
            return jwtClaimChecks(Output.of(jwtClaimChecks));
        }

        public AzureActiveDirectoryValidationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy