public ConverseResult withStopReason(StopReason stopReason) {
        this.stopReason = stopReason.toString();
        return this;
    }
<p>
The reason why the model stopped generating output.
</p>

@param stopReason
       The reason why the model stopped generating output.
@return Returns a reference to this object so that method calls can be chained together.
@see StopReason
aws-java-sdk-bedrockruntime/src/main/java/com/amazonaws/services/bedrockruntime/model/ConverseResult.java