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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.compute.inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecurityPolicyRulePreconfiguredWafConfigArgs Empty = new SecurityPolicyRulePreconfiguredWafConfigArgs();

    /**
     * An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
     * 
     */
    @Import(name="exclusions")
    private @Nullable Output<List<SecurityPolicyRulePreconfiguredWafConfigExclusionArgs>> exclusions;

    /**
     * @return An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
     * 
     */
    public Optional<Output<List<SecurityPolicyRulePreconfiguredWafConfigExclusionArgs>>> exclusions() {
        return Optional.ofNullable(this.exclusions);
    }

    private SecurityPolicyRulePreconfiguredWafConfigArgs() {}

    private SecurityPolicyRulePreconfiguredWafConfigArgs(SecurityPolicyRulePreconfiguredWafConfigArgs $) {
        this.exclusions = $.exclusions;
    }

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

    public static final class Builder {
        private SecurityPolicyRulePreconfiguredWafConfigArgs $;

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

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

        /**
         * @param exclusions An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(@Nullable Output<List<SecurityPolicyRulePreconfiguredWafConfigExclusionArgs>> exclusions) {
            $.exclusions = exclusions;
            return this;
        }

        /**
         * @param exclusions An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(List<SecurityPolicyRulePreconfiguredWafConfigExclusionArgs> exclusions) {
            return exclusions(Output.of(exclusions));
        }

        /**
         * @param exclusions An exclusion to apply during preconfigured WAF evaluation. Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(SecurityPolicyRulePreconfiguredWafConfigExclusionArgs... exclusions) {
            return exclusions(List.of(exclusions));
        }

        public SecurityPolicyRulePreconfiguredWafConfigArgs build() {
            return $;
        }
    }

}
