public class VmAlreadyExistsInDatacenter extends InvalidFolder
Java class for VmAlreadyExistsInDatacenter complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="VmAlreadyExistsInDatacenter">
<complexContent>
<extension base="{urn:vim25}InvalidFolder">
<sequence>
<element name="host" type="{urn:vim25}ManagedObjectReference"/>
<element name="hostname" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="vm" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected ManagedObjectReference |
host |
protected String |
hostname |
protected List<ManagedObjectReference> |
vm |
targetfaultCause, faultMessage| Constructor and Description |
|---|
VmAlreadyExistsInDatacenter() |
| Modifier and Type | Method and Description |
|---|---|
ManagedObjectReference |
getHost()
Gets the value of the host property.
|
String |
getHostname()
Gets the value of the hostname property.
|
List<ManagedObjectReference> |
getVm()
Gets the value of the vm property.
|
void |
setHost(ManagedObjectReference value)
Sets the value of the host property.
|
void |
setHostname(String value)
Sets the value of the hostname property.
|
getTarget, setTargetgetFaultCause, getFaultMessage, setFaultCauseprotected ManagedObjectReference host
protected String hostname
protected List<ManagedObjectReference> vm
public ManagedObjectReference getHost()
ManagedObjectReferencepublic void setHost(ManagedObjectReference value)
value - allowed object is
ManagedObjectReferencepublic String getHostname()
Stringpublic void setHostname(String value)
value - allowed object is
Stringpublic List<ManagedObjectReference> getVm()
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
ManagedObjectReference
Copyright © 2018. All rights reserved.