public AttemptContainerDetail withExitCode(Integer exitCode) {
        setExitCode(exitCode);
        return this;
    }
<p>
The exit code for the job attempt. A non-zero exit code is considered failed.
</p>

@param exitCode
       The exit code for the job attempt. A non-zero exit code is considered failed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/AttemptContainerDetail.java