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

@param state
       The current state of the detector (instance).
aws-java-sdk-ioteventsdata/src/main/java/com/amazonaws/services/ioteventsdata/model/Detector.java