public class PlacementSpec extends DynamicData
Java class for PlacementSpec complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PlacementSpec">
<complexContent>
<extension base="{urn:vim25}DynamicData">
<sequence>
<element name="priority" type="{urn:vim25}VirtualMachineMovePriority" minOccurs="0"/>
<element name="vm" type="{urn:vim25}ManagedObjectReference" minOccurs="0"/>
<element name="configSpec" type="{urn:vim25}VirtualMachineConfigSpec" minOccurs="0"/>
<element name="relocateSpec" type="{urn:vim25}VirtualMachineRelocateSpec" minOccurs="0"/>
<element name="hosts" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded" minOccurs="0"/>
<element name="datastores" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded" minOccurs="0"/>
<element name="storagePods" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded" minOccurs="0"/>
<element name="disallowPrerequisiteMoves" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="rules" type="{urn:vim25}ClusterRuleInfo" maxOccurs="unbounded" minOccurs="0"/>
<element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="placementType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="cloneSpec" type="{urn:vim25}VirtualMachineCloneSpec" minOccurs="0"/>
<element name="cloneName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
cloneName |
protected VirtualMachineCloneSpec |
cloneSpec |
protected VirtualMachineConfigSpec |
configSpec |
protected List<ManagedObjectReference> |
datastores |
protected Boolean |
disallowPrerequisiteMoves |
protected List<ManagedObjectReference> |
hosts |
protected String |
key |
protected String |
placementType |
protected VirtualMachineMovePriority |
priority |
protected VirtualMachineRelocateSpec |
relocateSpec |
protected List<ClusterRuleInfo> |
rules |
protected List<ManagedObjectReference> |
storagePods |
protected ManagedObjectReference |
vm |
| Constructor and Description |
|---|
PlacementSpec() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCloneName()
Gets the value of the cloneName property.
|
VirtualMachineCloneSpec |
getCloneSpec()
Gets the value of the cloneSpec property.
|
VirtualMachineConfigSpec |
getConfigSpec()
Gets the value of the configSpec property.
|
List<ManagedObjectReference> |
getDatastores()
Gets the value of the datastores property.
|
List<ManagedObjectReference> |
getHosts()
Gets the value of the hosts property.
|
String |
getKey()
Gets the value of the key property.
|
String |
getPlacementType()
Gets the value of the placementType property.
|
VirtualMachineMovePriority |
getPriority()
Gets the value of the priority property.
|
VirtualMachineRelocateSpec |
getRelocateSpec()
Gets the value of the relocateSpec property.
|
List<ClusterRuleInfo> |
getRules()
Gets the value of the rules property.
|
List<ManagedObjectReference> |
getStoragePods()
Gets the value of the storagePods property.
|
ManagedObjectReference |
getVm()
Gets the value of the vm property.
|
Boolean |
isDisallowPrerequisiteMoves()
Gets the value of the disallowPrerequisiteMoves property.
|
void |
setCloneName(String value)
Sets the value of the cloneName property.
|
void |
setCloneSpec(VirtualMachineCloneSpec value)
Sets the value of the cloneSpec property.
|
void |
setConfigSpec(VirtualMachineConfigSpec value)
Sets the value of the configSpec property.
|
void |
setDisallowPrerequisiteMoves(Boolean value)
Sets the value of the disallowPrerequisiteMoves property.
|
void |
setKey(String value)
Sets the value of the key property.
|
void |
setPlacementType(String value)
Sets the value of the placementType property.
|
void |
setPriority(VirtualMachineMovePriority value)
Sets the value of the priority property.
|
void |
setRelocateSpec(VirtualMachineRelocateSpec value)
Sets the value of the relocateSpec property.
|
void |
setVm(ManagedObjectReference value)
Sets the value of the vm property.
|
protected VirtualMachineMovePriority priority
protected ManagedObjectReference vm
protected VirtualMachineConfigSpec configSpec
protected VirtualMachineRelocateSpec relocateSpec
protected List<ManagedObjectReference> hosts
protected List<ManagedObjectReference> datastores
protected List<ManagedObjectReference> storagePods
protected Boolean disallowPrerequisiteMoves
protected List<ClusterRuleInfo> rules
protected String key
protected String placementType
protected VirtualMachineCloneSpec cloneSpec
protected String cloneName
public VirtualMachineMovePriority getPriority()
VirtualMachineMovePrioritypublic void setPriority(VirtualMachineMovePriority value)
value - allowed object is
VirtualMachineMovePrioritypublic ManagedObjectReference getVm()
ManagedObjectReferencepublic void setVm(ManagedObjectReference value)
value - allowed object is
ManagedObjectReferencepublic VirtualMachineConfigSpec getConfigSpec()
VirtualMachineConfigSpecpublic void setConfigSpec(VirtualMachineConfigSpec value)
value - allowed object is
VirtualMachineConfigSpecpublic VirtualMachineRelocateSpec getRelocateSpec()
VirtualMachineRelocateSpecpublic void setRelocateSpec(VirtualMachineRelocateSpec value)
value - allowed object is
VirtualMachineRelocateSpecpublic List<ManagedObjectReference> getHosts()
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 hosts property.
For example, to add a new item, do as follows:
getHosts().add(newItem);
Objects of the following type(s) are allowed in the list
ManagedObjectReference
public List<ManagedObjectReference> getDatastores()
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 datastores property.
For example, to add a new item, do as follows:
getDatastores().add(newItem);
Objects of the following type(s) are allowed in the list
ManagedObjectReference
public List<ManagedObjectReference> getStoragePods()
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 storagePods property.
For example, to add a new item, do as follows:
getStoragePods().add(newItem);
Objects of the following type(s) are allowed in the list
ManagedObjectReference
public Boolean isDisallowPrerequisiteMoves()
Booleanpublic void setDisallowPrerequisiteMoves(Boolean value)
value - allowed object is
Booleanpublic List<ClusterRuleInfo> getRules()
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 rules property.
For example, to add a new item, do as follows:
getRules().add(newItem);
Objects of the following type(s) are allowed in the list
ClusterRuleInfo
public String getKey()
Stringpublic void setKey(String value)
value - allowed object is
Stringpublic String getPlacementType()
Stringpublic void setPlacementType(String value)
value - allowed object is
Stringpublic VirtualMachineCloneSpec getCloneSpec()
VirtualMachineCloneSpecpublic void setCloneSpec(VirtualMachineCloneSpec value)
value - allowed object is
VirtualMachineCloneSpecpublic String getCloneName()
StringCopyright © 2018. All rights reserved.