public void setNumberOfRecentAmisToKeep(Integer numberOfRecentAmisToKeep) {
        this.numberOfRecentAmisToKeep = numberOfRecentAmisToKeep;
    }
<p>
The maximum number of SMS-created AMIs to retain. The oldest is deleted after the maximum number is reached and a
new AMI is created.
</p>

@param numberOfRecentAmisToKeep
       The maximum number of SMS-created AMIs to retain. The oldest is deleted after the maximum number is
       reached and a new AMI is created.
aws-java-sdk-servermigration/src/main/java/com/amazonaws/services/servermigration/model/CreateReplicationJobRequest.java