public Sensor withAllowedValues(java.util.Collection<String> allowedValues) {
        setAllowedValues(allowedValues);
        return this;
    }
<p>
A list of possible values a sensor can take.
</p>

@param allowedValues
       A list of possible values a sensor can take.
@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