public UpdateEventSourceMappingRequest withMaximumRetryAttempts(Integer maximumRetryAttempts) {
        setMaximumRetryAttempts(maximumRetryAttempts);
        return this;
    }
<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>

@param maximumRetryAttempts
       (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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/UpdateEventSourceMappingRequest.java