public void setMaxAgeRule(MaxAgeRule maxAgeRule) {
        this.maxAgeRule = maxAgeRule;
    }
<p>
Specify a max age rule to restrict the length of time that application versions are retained for an application.
</p>

@param maxAgeRule
       Specify a max age rule to restrict the length of time that application versions are retained for an
       application.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/ApplicationVersionLifecycleConfig.java