public RetryPolicy withMaximumRetryAttempts(Integer maximumRetryAttempts) {
        setMaximumRetryAttempts(maximumRetryAttempts);
        return this;
    }
<p>
The maximum number of retry attempts to make before the request fails. Retry attempts continue until either the
maximum number of attempts is made or until the duration of the <code>MaximumEventAgeInSeconds</code> is met.
</p>

@param maximumRetryAttempts
       The maximum number of retry attempts to make before the request fails. Retry attempts continue until
       either the maximum number of attempts is made or until the duration of the
       <code>MaximumEventAgeInSeconds</code> is met.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/RetryPolicy.java