public GetDashboardForJobRunRequest withAttempt(Integer attempt) {
        setAttempt(attempt);
        return this;
    }
<p>
An optimal parameter that indicates the amount of attempts for the job. If not specified, this value defaults to
the attempt of the latest job.
</p>

@param attempt
       An optimal parameter that indicates the amount of attempts for the job. If not specified, this value
       defaults to the attempt of the latest job.
@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/GetDashboardForJobRunRequest.java