// *** 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.azure.frontdoor.inputs;

import com.pulumi.azure.frontdoor.inputs.RulesEngineRuleArgs;
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;


public final class RulesEngineState extends com.pulumi.resources.ResourceArgs {

    public static final RulesEngineState Empty = new RulesEngineState();

    /**
     * Whether this Rules engine configuration is enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    /**
     * @return Whether this Rules engine configuration is enabled? Defaults to `true`.
     * 
     */
    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The name of the Front Door instance. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="frontdoorName")
    private @Nullable Output<String> frontdoorName;

    /**
     * @return The name of the Front Door instance. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> frontdoorName() {
        return Optional.ofNullable(this.frontdoorName);
    }

    @Import(name="location")
    private @Nullable Output<String> location;

    public Optional<Output<String>> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the Rules engine configuration. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the Rules engine configuration. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output<String> resourceGroupName;

    /**
     * @return The name of the resource group. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A `rule` block as defined below.
     * 
     */
    @Import(name="rules")
    private @Nullable Output<List<RulesEngineRuleArgs>> rules;

    /**
     * @return A `rule` block as defined below.
     * 
     */
    public Optional<Output<List<RulesEngineRuleArgs>>> rules() {
        return Optional.ofNullable(this.rules);
    }

    private RulesEngineState() {}

    private RulesEngineState(RulesEngineState $) {
        this.enabled = $.enabled;
        this.frontdoorName = $.frontdoorName;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private RulesEngineState $;

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

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

        /**
         * @param enabled Whether this Rules engine configuration is enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether this Rules engine configuration is enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param frontdoorName The name of the Front Door instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder frontdoorName(@Nullable Output<String> frontdoorName) {
            $.frontdoorName = frontdoorName;
            return this;
        }

        /**
         * @param frontdoorName The name of the Front Door instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder frontdoorName(String frontdoorName) {
            return frontdoorName(Output.of(frontdoorName));
        }

        public Builder location(@Nullable Output<String> location) {
            $.location = location;
            return this;
        }

        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name of the Rules engine configuration. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Rules engine configuration. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output<String> resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param rules A `rule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output<List<RulesEngineRuleArgs>> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules A `rule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rules(List<RulesEngineRuleArgs> rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules A `rule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rules(RulesEngineRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public RulesEngineState build() {
            return $;
        }
    }

}
