
com.sun.xml.ws.commons.virtualbox.ISATAController Maven / Gradle / Ivy
package com.sun.xml.ws.commons.virtualbox;
import javax.xml.ws.WebServiceException;
/**
*
*/
public class ISATAController {
public final VboxPortType port;
public final String _this;
public ISATAController(String _this, VboxPortType port) {
this._this = _this;
this.port = port;
}
/**
* Flag whether the SATA controller is present in the
* guest system. If disabled, the virtual guest hardware will
* not contain any SATA controller. Can only be changed when
* the VM is powered off.
*
*/
public boolean getEnabled() {
try {
boolean retVal = port.isataControllerGetEnabled(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Flag whether the SATA controller is present in the
* guest system. If disabled, the virtual guest hardware will
* not contain any SATA controller. Can only be changed when
* the VM is powered off.
*
*/
public void setEnabled(boolean value) {
try {
port.isataControllerSetEnabled(_this, value);
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* The number of usable ports on the sata controller.
* It ranges from 1 to 30.
*
*/
public long getPortCount() {
try {
long retVal = port.isataControllerGetPortCount(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* The number of usable ports on the sata controller.
* It ranges from 1 to 30.
*
*/
public void setPortCount(long value) {
try {
port.isataControllerSetPortCount(_this, value);
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Gets the corresponding port number which is emulated as an IDE device.
*
* @param devicePosition
*
* @return
*
*/
public int GetIDEEmulationPort(int devicePosition) {
try {
int retVal = port.isataControllerGetIDEEmulationPort(_this, devicePosition);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Sets the port number which is emulated as an IDE device.
*
* @param portNumber
*
* @param devicePosition
*
*/
public void SetIDEEmulationPort(int devicePosition, int portNumber) {
try {
port.isataControllerSetIDEEmulationPort(_this, devicePosition, portNumber);
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy