com.vmware.vim25.VirtualMachineDiskDeviceInfo 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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for VirtualMachineDiskDeviceInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="VirtualMachineDiskDeviceInfo">
* <complexContent>
* <extension base="{urn:vim25}VirtualMachineTargetInfo">
* <sequence>
* <element name="capacity" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="vm" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VirtualMachineDiskDeviceInfo", propOrder = {
"capacity",
"vm"
})
@XmlSeeAlso({
VirtualMachineIdeDiskDeviceInfo.class,
VirtualMachineScsiDiskDeviceInfo.class
})
public class VirtualMachineDiskDeviceInfo
extends VirtualMachineTargetInfo
{
protected Long capacity;
protected List vm;
/**
* Gets the value of the capacity property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getCapacity() {
return capacity;
}
/**
* Sets the value of the capacity property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setCapacity(Long value) {
this.capacity = value;
}
/**
* Gets the value of the vm 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 vm property.
*
*
* For example, to add a new item, do as follows:
*
* getVm().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ManagedObjectReference }
*
*
*/
public List getVm() {
if (vm == null) {
vm = new ArrayList();
}
return this.vm;
}
}