public ComputeEnvironmentDetail withServiceRole(String serviceRole) {
        setServiceRole(serviceRole);
        return this;
    }
<p>
The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web
Services API operations on your behalf. For more information, see <a
href="https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html">Batch service IAM role</a> in the
<i>Batch User Guide</i>.
</p>

@param serviceRole
       The service role that's associated with the compute environment that allows Batch to make calls to Amazon
       Web Services API operations on your behalf. For more information, see <a
       href="https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html">Batch service IAM role</a>
       in the <i>Batch User Guide</i>.
@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/ComputeEnvironmentDetail.java