public SharePointConfiguration withExclusionPatterns(String... exclusionPatterns) {
        if (this.exclusionPatterns == null) {
            setExclusionPatterns(new java.util.ArrayList<String>(exclusionPatterns.length));
        }
        for (String ele : exclusionPatterns) {
            this.exclusionPatterns.add(ele);
        }
        return this;
    }
<p>
A list of regular expression patterns to exclude certain documents in your SharePoint. Documents that match the
patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a
document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document
isn't included in the index.
</p>
<p>
The regex applies to the display URL of the SharePoint document.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExclusionPatterns(java.util.Collection)} or {@link #withExclusionPatterns(java.util.Collection)} if
you want to override the existing values.
</p>

@param exclusionPatterns
       A list of regular expression patterns to exclude certain documents in your SharePoint. Documents that
       match the patterns are excluded from the index. Documents that don't match the patterns are included in
       the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes
       precedence and the document isn't included in the index.</p>
       <p>
       The regex applies to the display URL of the SharePoint document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/SharePointConfiguration.java