public Observation withStatesStatus(String statesStatus) {
        setStatesStatus(statesStatus);
        return this;
    }
<p>
The status of the step function-related observation.
</p>

@param statesStatus
       The status of the step function-related observation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/Observation.java