public ApplicationVersionLifecycleConfig withMaxCountRule(MaxCountRule maxCountRule) {
        setMaxCountRule(maxCountRule);
        return this;
    }
<p>
Specify a max count rule to restrict the number of application versions that are retained for an application.
</p>

@param maxCountRule
       Specify a max count rule to restrict the number of application versions that are retained for an
       application.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/ApplicationVersionLifecycleConfig.java