public GetCustomDataIdentifierResult withMaximumMatchDistance(Integer maximumMatchDistance) {
        setMaximumMatchDistance(maximumMatchDistance);
        return this;
    }
<p>
The maximum number of characters that can exist between the end of at least one complete character sequence
specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword
precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie
includes the result. Otherwise, Macie excludes the result.
</p>

@param maximumMatchDistance
       The maximum number of characters that can exist between the end of at least one complete character
       sequence specified by the keywords array and the end of the text that matches the regex pattern. If a
       complete keyword precedes all the text that matches the pattern and the keyword is within the specified
       distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/GetCustomDataIdentifierResult.java