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

import com.pulumi.aws.wafregional.inputs.WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;


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

    public static final WebAclLoggingConfigurationRedactedFieldsArgs Empty = new WebAclLoggingConfigurationRedactedFieldsArgs();

    /**
     * Set of configuration blocks for fields to redact. Detailed below.
     * 
     */
    @Import(name="fieldToMatches", required=true)
    private Output<List<WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs>> fieldToMatches;

    /**
     * @return Set of configuration blocks for fields to redact. Detailed below.
     * 
     */
    public Output<List<WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs>> fieldToMatches() {
        return this.fieldToMatches;
    }

    private WebAclLoggingConfigurationRedactedFieldsArgs() {}

    private WebAclLoggingConfigurationRedactedFieldsArgs(WebAclLoggingConfigurationRedactedFieldsArgs $) {
        this.fieldToMatches = $.fieldToMatches;
    }

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

    public static final class Builder {
        private WebAclLoggingConfigurationRedactedFieldsArgs $;

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

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

        /**
         * @param fieldToMatches Set of configuration blocks for fields to redact. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder fieldToMatches(Output<List<WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs>> fieldToMatches) {
            $.fieldToMatches = fieldToMatches;
            return this;
        }

        /**
         * @param fieldToMatches Set of configuration blocks for fields to redact. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder fieldToMatches(List<WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs> fieldToMatches) {
            return fieldToMatches(Output.of(fieldToMatches));
        }

        /**
         * @param fieldToMatches Set of configuration blocks for fields to redact. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder fieldToMatches(WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs... fieldToMatches) {
            return fieldToMatches(List.of(fieldToMatches));
        }

        public WebAclLoggingConfigurationRedactedFieldsArgs build() {
            $.fieldToMatches = Objects.requireNonNull($.fieldToMatches, "expected parameter 'fieldToMatches' to be non-null");
            return $;
        }
    }

}
