public Sensor withUnit(String unit) {
        setUnit(unit);
        return this;
    }
<p>
The scientific unit of measurement for data collected by the sensor.
</p>

@param unit
       The scientific unit of measurement for data collected by the sensor.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotfleetwise/src/main/java/com/amazonaws/services/iotfleetwise/model/Sensor.java