public MaxCountRule withMaxCount(Integer maxCount) {
        setMaxCount(maxCount);
        return this;
    }
<p>
Specify the maximum number of application versions to retain.
</p>

@param maxCount
       Specify the maximum number of application versions to retain.
@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/MaxCountRule.java