public Detector withState(DetectorState state) {
        setState(state);
        return this;
    }
<p>
The current state of the detector (instance).
</p>

@param state
       The current state of the detector (instance).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ioteventsdata/src/main/java/com/amazonaws/services/ioteventsdata/model/Detector.java