public RetryPolicy withMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds) {
        setMaximumEventAgeInSeconds(maximumEventAgeInSeconds);
        return this;
    }
<p>
The maximum amount of time, in seconds, to continue to make retry attempts.
</p>

@param maximumEventAgeInSeconds
       The maximum amount of time, in seconds, to continue to make retry attempts.
@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