public TtlDuration withUnit(String unit) {
        setUnit(unit);
        return this;
    }
<p>
<code>TtlDuration</code> time unit.
</p>

@param unit
       <code>TtlDuration</code> time unit.
@return Returns a reference to this object so that method calls can be chained together.
@see TtlDurationUnit
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/TtlDuration.java