public Observation withStatesInput(String statesInput) {
        setStatesInput(statesInput);
        return this;
    }
<p>
The input to the step function-based observation.
</p>

@param statesInput
       The input to the step function-based 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