public InstanceGroupDetail withInstanceRole(String instanceRole) {
        setInstanceRole(instanceRole);
        return this;
    }
<p>
Instance group role in the cluster
</p>

@param instanceRole
       Instance group role in the cluster
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceRoleType
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceGroupDetail.java