![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vim25.VirtualController Maven / Gradle / Ivy
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for VirtualController complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="VirtualController">
* <complexContent>
* <extension base="{urn:vim25}VirtualDevice">
* <sequence>
* <element name="busNumber" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="device" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VirtualController", propOrder = {
"busNumber",
"device"
})
@XmlSeeAlso({
VirtualIDEController.class,
VirtualNVMEController.class,
VirtualPCIController.class,
VirtualPS2Controller.class,
VirtualSATAController.class,
VirtualSCSIController.class,
VirtualSIOController.class,
VirtualUSBController.class,
VirtualUSBXHCIController.class
})
public class VirtualController
extends VirtualDevice
{
protected int busNumber;
@XmlElement(type = Integer.class)
protected List device;
/**
* Gets the value of the busNumber property.
*
*/
public int getBusNumber() {
return busNumber;
}
/**
* Sets the value of the busNumber property.
*
*/
public void setBusNumber(int value) {
this.busNumber = value;
}
/**
* Gets the value of the device property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the device property.
*
*
* For example, to add a new item, do as follows:
*
* getDevice().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*
*
*/
public List getDevice() {
if (device == null) {
device = new ArrayList();
}
return this.device;
}
}