public StopPipeResult withDesiredState(RequestedPipeState desiredState) {
        this.desiredState = desiredState.toString();
        return this;
    }
<p>
The state the pipe should be in.
</p>

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