public Integer getMaximumRetryAttempts() {
        return this.maximumRetryAttempts;
    }
<p>
(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is
infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
</p>

@return (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default
        value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/UpdateEventSourceMappingRequest.java