public class VirtualMachineSnapshotInfo extends DynamicData
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>
| Modifier and Type | Field and Description |
|---|---|
protected ManagedObjectReference |
currentSnapshot |
protected List<VirtualMachineSnapshotTree> |
rootSnapshotList |
| Constructor and Description |
|---|
VirtualMachineSnapshotInfo() |
| Modifier and Type | Method and Description |
|---|---|
ManagedObjectReference |
getCurrentSnapshot()
Gets the value of the currentSnapshot property.
|
List<VirtualMachineSnapshotTree> |
getRootSnapshotList()
Gets the value of the rootSnapshotList property.
|
void |
setCurrentSnapshot(ManagedObjectReference value)
Sets the value of the currentSnapshot property.
|
protected ManagedObjectReference currentSnapshot
protected List<VirtualMachineSnapshotTree> rootSnapshotList
public ManagedObjectReference getCurrentSnapshot()
ManagedObjectReferencepublic void setCurrentSnapshot(ManagedObjectReference value)
value - allowed object is
ManagedObjectReferencepublic List<VirtualMachineSnapshotTree> getRootSnapshotList()
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
VirtualMachineSnapshotTree
Copyright © 2018. All rights reserved.