public DetectorStateSummary withStateName(String stateName) {
        setStateName(stateName);
        return this;
    }
<p>
The name of the state.
</p>

@param stateName
       The name of the state.
@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/DetectorStateSummary.java