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

com.pulumi.azurenative.network.inputs.FrontDoorManagedRuleOverrideArgs 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.network.inputs;

import com.pulumi.azurenative.network.enums.ActionType;
import com.pulumi.azurenative.network.enums.ManagedRuleEnabledState;
import com.pulumi.azurenative.network.inputs.ManagedRuleExclusionArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines a managed rule group override setting.
 * 
 */
public final class FrontDoorManagedRuleOverrideArgs extends com.pulumi.resources.ResourceArgs {

    public static final FrontDoorManagedRuleOverrideArgs Empty = new FrontDoorManagedRuleOverrideArgs();

    /**
     * Describes the override action to be applied when rule matches.
     * 
     */
    @Import(name="action")
    private @Nullable Output> action;

    /**
     * @return Describes the override action to be applied when rule matches.
     * 
     */
    public Optional>> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
     * 
     */
    @Import(name="enabledState")
    private @Nullable Output> enabledState;

    /**
     * @return Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
     * 
     */
    public Optional>> enabledState() {
        return Optional.ofNullable(this.enabledState);
    }

    /**
     * Describes the exclusions that are applied to this specific rule.
     * 
     */
    @Import(name="exclusions")
    private @Nullable Output> exclusions;

    /**
     * @return Describes the exclusions that are applied to this specific rule.
     * 
     */
    public Optional>> exclusions() {
        return Optional.ofNullable(this.exclusions);
    }

    /**
     * Identifier for the managed rule.
     * 
     */
    @Import(name="ruleId", required=true)
    private Output ruleId;

    /**
     * @return Identifier for the managed rule.
     * 
     */
    public Output ruleId() {
        return this.ruleId;
    }

    private FrontDoorManagedRuleOverrideArgs() {}

    private FrontDoorManagedRuleOverrideArgs(FrontDoorManagedRuleOverrideArgs $) {
        this.action = $.action;
        this.enabledState = $.enabledState;
        this.exclusions = $.exclusions;
        this.ruleId = $.ruleId;
    }

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

    public static final class Builder {
        private FrontDoorManagedRuleOverrideArgs $;

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

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

        /**
         * @param action Describes the override action to be applied when rule matches.
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Describes the override action to be applied when rule matches.
         * 
         * @return builder
         * 
         */
        public Builder action(Either action) {
            return action(Output.of(action));
        }

        /**
         * @param action Describes the override action to be applied when rule matches.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Either.ofLeft(action));
        }

        /**
         * @param action Describes the override action to be applied when rule matches.
         * 
         * @return builder
         * 
         */
        public Builder action(ActionType action) {
            return action(Either.ofRight(action));
        }

        /**
         * @param enabledState Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(@Nullable Output> enabledState) {
            $.enabledState = enabledState;
            return this;
        }

        /**
         * @param enabledState Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(Either enabledState) {
            return enabledState(Output.of(enabledState));
        }

        /**
         * @param enabledState Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(String enabledState) {
            return enabledState(Either.ofLeft(enabledState));
        }

        /**
         * @param enabledState Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(ManagedRuleEnabledState enabledState) {
            return enabledState(Either.ofRight(enabledState));
        }

        /**
         * @param exclusions Describes the exclusions that are applied to this specific rule.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(@Nullable Output> exclusions) {
            $.exclusions = exclusions;
            return this;
        }

        /**
         * @param exclusions Describes the exclusions that are applied to this specific rule.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(List exclusions) {
            return exclusions(Output.of(exclusions));
        }

        /**
         * @param exclusions Describes the exclusions that are applied to this specific rule.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(ManagedRuleExclusionArgs... exclusions) {
            return exclusions(List.of(exclusions));
        }

        /**
         * @param ruleId Identifier for the managed rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(Output ruleId) {
            $.ruleId = ruleId;
            return this;
        }

        /**
         * @param ruleId Identifier for the managed rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(String ruleId) {
            return ruleId(Output.of(ruleId));
        }

        public FrontDoorManagedRuleOverrideArgs build() {
            if ($.ruleId == null) {
                throw new MissingRequiredPropertyException("FrontDoorManagedRuleOverrideArgs", "ruleId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy