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

com.pulumi.azurenative.iotoperationsmq.inputs.AuthorizationConfigArgs 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.iotoperationsmq.inputs;

import com.pulumi.azurenative.iotoperationsmq.inputs.AuthorizationBasicRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Broker AuthorizationConfig properties
 * 
 */
public final class AuthorizationConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final AuthorizationConfigArgs Empty = new AuthorizationConfigArgs();

    /**
     * Enable caching of the authorization rules.
     * 
     */
    @Import(name="enableCache")
    private @Nullable Output enableCache;

    /**
     * @return Enable caching of the authorization rules.
     * 
     */
    public Optional> enableCache() {
        return Optional.ofNullable(this.enableCache);
    }

    /**
     * Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    private AuthorizationConfigArgs() {}

    private AuthorizationConfigArgs(AuthorizationConfigArgs $) {
        this.enableCache = $.enableCache;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private AuthorizationConfigArgs $;

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

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

        /**
         * @param enableCache Enable caching of the authorization rules.
         * 
         * @return builder
         * 
         */
        public Builder enableCache(@Nullable Output enableCache) {
            $.enableCache = enableCache;
            return this;
        }

        /**
         * @param enableCache Enable caching of the authorization rules.
         * 
         * @return builder
         * 
         */
        public Builder enableCache(Boolean enableCache) {
            return enableCache(Output.of(enableCache));
        }

        /**
         * @param rules Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
         * 
         * @return builder
         * 
         */
        public Builder rules(AuthorizationBasicRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public AuthorizationConfigArgs build() {
            $.enableCache = Codegen.booleanProp("enableCache").output().arg($.enableCache).def(true).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy