public ScheduledInstanceRecurrenceRequest withInterval(Integer interval) {
        setInterval(interval);
        return this;
    }
<p>
The interval quantity. The interval unit depends on the value of <code>Frequency</code>. For example, every 2
weeks or every 2 months.
</p>

@param interval
       The interval quantity. The interval unit depends on the value of <code>Frequency</code>. For example,
       every 2 weeks or every 2 months.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ScheduledInstanceRecurrenceRequest.java