public StopPipeResult withCurrentState(String currentState) {
        setCurrentState(currentState);
        return this;
    }
<p>
The state the pipe is in.
</p>

@param currentState
       The state the pipe is in.
@return Returns a reference to this object so that method calls can be chained together.
@see PipeState
aws-java-sdk-pipes/src/main/java/com/amazonaws/services/pipes/model/StopPipeResult.java