public Record withTime(String time) {
        setTime(time);
        return this;
    }
<p>
Contains the time at which the measure value for the data point was collected. The time value plus the unit
provides the time elapsed since the epoch. For example, if the time value is <code>12345</code> and the unit is
<code>ms</code>, then <code>12345 ms</code> have elapsed since the epoch.
</p>

@param time
       Contains the time at which the measure value for the data point was collected. The time value plus the
       unit provides the time elapsed since the epoch. For example, if the time value is <code>12345</code> and
       the unit is <code>ms</code>, then <code>12345 ms</code> have elapsed since the epoch.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-timestreamwrite/src/main/java/com/amazonaws/services/timestreamwrite/model/Record.java