public Integer getMaximumRetryAttempts() {
        return this.maximumRetryAttempts;
    }
<p>
(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, EventBridge retries failed records
until the record expires in the event source.
</p>

@return (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, EventBridge retries
        failed records until the record expires in the event source.
aws-java-sdk-pipes/src/main/java/com/amazonaws/services/pipes/model/PipeSourceDynamoDBStreamParameters.java