public RetentionArchiveTier withIntervalUnit(RetentionIntervalUnitValues intervalUnit) {
        this.intervalUnit = intervalUnit.toString();
        return this;
    }
<p>
The unit of time in which to measure the <b>Interval</b>. For example, to retain a snapshots in the archive tier
for 6 months, specify <code>Interval=6</code> and <code>IntervalUnit=MONTHS</code>.
</p>

@param intervalUnit
       The unit of time in which to measure the <b>Interval</b>. For example, to retain a snapshots in the
       archive tier for 6 months, specify <code>Interval=6</code> and <code>IntervalUnit=MONTHS</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see RetentionIntervalUnitValues
aws-java-sdk-dlm/src/main/java/com/amazonaws/services/dlm/model/RetentionArchiveTier.java