public LoggingConfiguration withRedactedFields(java.util.Collection<FieldToMatch> redactedFields) {
        setRedactedFields(redactedFields);
        return this;
    }
<p>
The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the
cookie field in the firehose will be <code>xxx</code>.
</p>

@param redactedFields
       The parts of the request that you want redacted from the logs. For example, if you redact the cookie
       field, the cookie field in the firehose will be <code>xxx</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/LoggingConfiguration.java