// *** 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.waf.outputs;

import com.pulumi.azure.waf.outputs.PolicyManagedRulesExclusionExcludedRuleSet;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PolicyManagedRulesExclusion {
    /**
     * @return One or more `excluded_rule_set` block defined below.
     * 
     */
    private @Nullable PolicyManagedRulesExclusionExcludedRuleSet excludedRuleSet;
    /**
     * @return The name of the Match Variable. Possible values: `RequestArgKeys`, `RequestArgNames`, `RequestArgValues`, `RequestCookieKeys`, `RequestCookieNames`, `RequestCookieValues`, `RequestHeaderKeys`, `RequestHeaderNames`, `RequestHeaderValues`.
     * 
     */
    private String matchVariable;
    /**
     * @return Describes field of the matchVariable collection.
     * 
     */
    private String selector;
    /**
     * @return Describes operator to be matched. Possible values: `Contains`, `EndsWith`, `Equals`, `EqualsAny`, `StartsWith`.
     * 
     */
    private String selectorMatchOperator;

    private PolicyManagedRulesExclusion() {}
    /**
     * @return One or more `excluded_rule_set` block defined below.
     * 
     */
    public Optional<PolicyManagedRulesExclusionExcludedRuleSet> excludedRuleSet() {
        return Optional.ofNullable(this.excludedRuleSet);
    }
    /**
     * @return The name of the Match Variable. Possible values: `RequestArgKeys`, `RequestArgNames`, `RequestArgValues`, `RequestCookieKeys`, `RequestCookieNames`, `RequestCookieValues`, `RequestHeaderKeys`, `RequestHeaderNames`, `RequestHeaderValues`.
     * 
     */
    public String matchVariable() {
        return this.matchVariable;
    }
    /**
     * @return Describes field of the matchVariable collection.
     * 
     */
    public String selector() {
        return this.selector;
    }
    /**
     * @return Describes operator to be matched. Possible values: `Contains`, `EndsWith`, `Equals`, `EqualsAny`, `StartsWith`.
     * 
     */
    public String selectorMatchOperator() {
        return this.selectorMatchOperator;
    }

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

    public static Builder builder(PolicyManagedRulesExclusion defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PolicyManagedRulesExclusionExcludedRuleSet excludedRuleSet;
        private String matchVariable;
        private String selector;
        private String selectorMatchOperator;
        public Builder() {}
        public Builder(PolicyManagedRulesExclusion defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.excludedRuleSet = defaults.excludedRuleSet;
    	      this.matchVariable = defaults.matchVariable;
    	      this.selector = defaults.selector;
    	      this.selectorMatchOperator = defaults.selectorMatchOperator;
        }

        @CustomType.Setter
        public Builder excludedRuleSet(@Nullable PolicyManagedRulesExclusionExcludedRuleSet excludedRuleSet) {
            this.excludedRuleSet = excludedRuleSet;
            return this;
        }
        @CustomType.Setter
        public Builder matchVariable(String matchVariable) {
            this.matchVariable = Objects.requireNonNull(matchVariable);
            return this;
        }
        @CustomType.Setter
        public Builder selector(String selector) {
            this.selector = Objects.requireNonNull(selector);
            return this;
        }
        @CustomType.Setter
        public Builder selectorMatchOperator(String selectorMatchOperator) {
            this.selectorMatchOperator = Objects.requireNonNull(selectorMatchOperator);
            return this;
        }
        public PolicyManagedRulesExclusion build() {
            final var o = new PolicyManagedRulesExclusion();
            o.excludedRuleSet = excludedRuleSet;
            o.matchVariable = matchVariable;
            o.selector = selector;
            o.selectorMatchOperator = selectorMatchOperator;
            return o;
        }
    }
}
