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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.compute.outputs.SecurityPolicyRulePreconfiguredWafConfigExclusion;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class SecurityPolicyRulePreconfiguredWafConfig {
    /**
     * @return An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
     * 
     */
    private @Nullable List<SecurityPolicyRulePreconfiguredWafConfigExclusion> exclusions;

    private SecurityPolicyRulePreconfiguredWafConfig() {}
    /**
     * @return An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
     * 
     */
    public List<SecurityPolicyRulePreconfiguredWafConfigExclusion> exclusions() {
        return this.exclusions == null ? List.of() : this.exclusions;
    }

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

    public static Builder builder(SecurityPolicyRulePreconfiguredWafConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<SecurityPolicyRulePreconfiguredWafConfigExclusion> exclusions;
        public Builder() {}
        public Builder(SecurityPolicyRulePreconfiguredWafConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.exclusions = defaults.exclusions;
        }

        @CustomType.Setter
        public Builder exclusions(@Nullable List<SecurityPolicyRulePreconfiguredWafConfigExclusion> exclusions) {
            this.exclusions = exclusions;
            return this;
        }
        public Builder exclusions(SecurityPolicyRulePreconfiguredWafConfigExclusion... exclusions) {
            return exclusions(List.of(exclusions));
        }
        public SecurityPolicyRulePreconfiguredWafConfig build() {
            final var o = new SecurityPolicyRulePreconfiguredWafConfig();
            o.exclusions = exclusions;
            return o;
        }
    }
}
