public Integer getMaximumRetryAttempts() {
        return this.maximumRetryAttempts;
    }
<p>
(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is
-1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries
failed records until the record expires in the event source.
</p>

@return (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default
        value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite,
        Lambda retries failed records until the record expires in the event source.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/DeleteEventSourceMappingResult.java