public JobRunAttemptSummary withState(JobRunState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the job run attempt.
</p>

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