public Cluster withServiceRole(String serviceRole) {
        setServiceRole(serviceRole);
        return this;
    }
<p>
The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
</p>

@param serviceRole
       The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/Cluster.java