The java client doesn't support that functionality and this method is private: https://github.com/UhuruSoftware/jenkins-cloud-plugin/blob/master/src/main/java/hudson/plugins/openshift/OpenShiftSlave.java#L145

Plus, it does the same thing.