public TimestreamTimestamp withUnit(String unit) {
        setUnit(unit);
        return this;
    }
<p>
The precision of the timestamp value that results from the expression described in <code>value</code>.
</p>
<p>
Valid values: <code>SECONDS</code> | <code>MILLISECONDS</code> | <code>MICROSECONDS</code> |
<code>NANOSECONDS</code>. The default is <code>MILLISECONDS</code>.
</p>

@param unit
       The precision of the timestamp value that results from the expression described in <code>value</code>.</p>
       <p>
       Valid values: <code>SECONDS</code> | <code>MILLISECONDS</code> | <code>MICROSECONDS</code> |
       <code>NANOSECONDS</code>. The default is <code>MILLISECONDS</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TimestreamTimestamp.java