public LoggingConfiguration withRedactedFields(FieldToMatch... redactedFields) {
        if (this.redactedFields == null) {
            setRedactedFields(new java.util.ArrayList<FieldToMatch>(redactedFields.length));
        }
        for (FieldToMatch ele : redactedFields) {
            this.redactedFields.add(ele);
        }
        return this;
    }
<p>
The parts of the request that you want to keep out of the logs.
</p>
<p>
For example, if you redact the <code>SingleHeader</code> field, the <code>HEADER</code> field in the logs will be
<code>REDACTED</code> for all rules that use the <code>SingleHeader</code> <code>FieldToMatch</code> setting.
</p>
<p>
Redaction applies only to the component that's specified in the rule's <code>FieldToMatch</code> setting, so the
<code>SingleHeader</code> redaction doesn't apply to rules that use the <code>Headers</code>
<code>FieldToMatch</code>.
</p>
<note>
<p>
You can specify only the following fields for redaction: <code>UriPath</code>, <code>QueryString</code>,
<code>SingleHeader</code>, and <code>Method</code>.
</p>
</note> <note>
<p>
This setting has no impact on request sampling. With request sampling, the only way to exclude fields is by
disabling sampling in the web ACL visibility configuration.
</p>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRedactedFields(java.util.Collection)} or {@link #withRedactedFields(java.util.Collection)} if you want
to override the existing values.
</p>

@param redactedFields
       The parts of the request that you want to keep out of the logs.</p>
       <p>
       For example, if you redact the <code>SingleHeader</code> field, the <code>HEADER</code> field in the logs
       will be <code>REDACTED</code> for all rules that use the <code>SingleHeader</code>
       <code>FieldToMatch</code> setting.
       </p>
       <p>
       Redaction applies only to the component that's specified in the rule's <code>FieldToMatch</code> setting,
       so the <code>SingleHeader</code> redaction doesn't apply to rules that use the <code>Headers</code>
       <code>FieldToMatch</code>.
       </p>
       <note>
       <p>
       You can specify only the following fields for redaction: <code>UriPath</code>, <code>QueryString</code>,
       <code>SingleHeader</code>, and <code>Method</code>.
       </p>
       </note> <note>
       <p>
       This setting has no impact on request sampling. With request sampling, the only way to exclude fields is
       by disabling sampling in the web ACL visibility configuration.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/LoggingConfiguration.java