public JobRunAttemptSummary withStateDetails(String stateDetails) {
        setStateDetails(stateDetails);
        return this;
    }
<p>
The state details of the job run attempt.
</p>

@param stateDetails
       The state details of the job run attempt.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emrserverless/src/main/java/com/amazonaws/services/emrserverless/model/JobRunAttemptSummary.java