public PublishVersionResult withStateReasonCode(String stateReasonCode) {
        setStateReasonCode(stateReasonCode);
        return this;
    }
<p>
The reason code for the function's current state. When the code is <code>Creating</code>, you can't invoke or
modify the function.
</p>

@param stateReasonCode
       The reason code for the function's current state. When the code is <code>Creating</code>, you can't invoke
       or modify the function.
@return Returns a reference to this object so that method calls can be chained together.
@see StateReasonCode
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/PublishVersionResult.java