public ScheduledInstanceRecurrenceRequest withOccurrenceUnit(String occurrenceUnit) {
        setOccurrenceUnit(occurrenceUnit);
        return this;
    }
<p>
The unit for <code>OccurrenceDays</code> (<code>DayOfWeek</code> or <code>DayOfMonth</code>). This value is
required for a monthly schedule. You can't specify <code>DayOfWeek</code> with a weekly schedule. You can't
specify this value with a daily schedule.
</p>

@param occurrenceUnit
       The unit for <code>OccurrenceDays</code> (<code>DayOfWeek</code> or <code>DayOfMonth</code>). This value
       is required for a monthly schedule. You can't specify <code>DayOfWeek</code> with a weekly schedule. You
       can't specify this value with a daily schedule.
@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