com.vmware.vim25.VirtualMachineSnapshotInfo 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.XmlType;
/**
* Java class for VirtualMachineSnapshotInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="VirtualMachineSnapshotInfo">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="currentSnapshot" type="{urn:vim25}ManagedObjectReference" minOccurs="0"/>
* <element name="rootSnapshotList" type="{urn:vim25}VirtualMachineSnapshotTree" maxOccurs="unbounded"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VirtualMachineSnapshotInfo", propOrder = {
"currentSnapshot",
"rootSnapshotList"
})
public class VirtualMachineSnapshotInfo
extends DynamicData
{
protected ManagedObjectReference currentSnapshot;
@XmlElement(required = true)
protected List rootSnapshotList;
/**
* Gets the value of the currentSnapshot property.
*
* @return
* possible object is
* {@link ManagedObjectReference }
*
*/
public ManagedObjectReference getCurrentSnapshot() {
return currentSnapshot;
}
/**
* Sets the value of the currentSnapshot property.
*
* @param value
* allowed object is
* {@link ManagedObjectReference }
*
*/
public void setCurrentSnapshot(ManagedObjectReference value) {
this.currentSnapshot = value;
}
/**
* Gets the value of the rootSnapshotList 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 rootSnapshotList property.
*
*
* For example, to add a new item, do as follows:
*
* getRootSnapshotList().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link VirtualMachineSnapshotTree }
*
*
*/
public List getRootSnapshotList() {
if (rootSnapshotList == null) {
rootSnapshotList = new ArrayList();
}
return this.rootSnapshotList;
}
}