public GetKxScalingGroupResult withStatusReason(String statusReason) {
        setStatusReason(statusReason);
        return this;
    }
<p>
The error message when a failed state occurs.
</p>

@param statusReason
       The error message when a failed state occurs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-finspace/src/main/java/com/amazonaws/services/finspace/model/GetKxScalingGroupResult.java