public class VirtualHardware extends DynamicData
Java class for VirtualHardware complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="VirtualHardware">
<complexContent>
<extension base="{urn:vim25}DynamicData">
<sequence>
<element name="numCPU" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="numCoresPerSocket" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="memoryMB" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="virtualICH7MPresent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="virtualSMCPresent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="device" type="{urn:vim25}VirtualDevice" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<VirtualDevice> |
device |
protected int |
memoryMB |
protected Integer |
numCoresPerSocket |
protected int |
numCPU |
protected Boolean |
virtualICH7MPresent |
protected Boolean |
virtualSMCPresent |
| Constructor and Description |
|---|
VirtualHardware() |
| Modifier and Type | Method and Description |
|---|---|
List<VirtualDevice> |
getDevice()
Gets the value of the device property.
|
int |
getMemoryMB()
Gets the value of the memoryMB property.
|
Integer |
getNumCoresPerSocket()
Gets the value of the numCoresPerSocket property.
|
int |
getNumCPU()
Gets the value of the numCPU property.
|
Boolean |
isVirtualICH7MPresent()
Gets the value of the virtualICH7MPresent property.
|
Boolean |
isVirtualSMCPresent()
Gets the value of the virtualSMCPresent property.
|
void |
setMemoryMB(int value)
Sets the value of the memoryMB property.
|
void |
setNumCoresPerSocket(Integer value)
Sets the value of the numCoresPerSocket property.
|
void |
setNumCPU(int value)
Sets the value of the numCPU property.
|
void |
setVirtualICH7MPresent(Boolean value)
Sets the value of the virtualICH7MPresent property.
|
void |
setVirtualSMCPresent(Boolean value)
Sets the value of the virtualSMCPresent property.
|
protected int numCPU
protected Integer numCoresPerSocket
protected int memoryMB
protected Boolean virtualICH7MPresent
protected Boolean virtualSMCPresent
protected List<VirtualDevice> device
public int getNumCPU()
public void setNumCPU(int value)
public Integer getNumCoresPerSocket()
Integerpublic void setNumCoresPerSocket(Integer value)
value - allowed object is
Integerpublic int getMemoryMB()
public void setMemoryMB(int value)
public Boolean isVirtualICH7MPresent()
Booleanpublic void setVirtualICH7MPresent(Boolean value)
value - allowed object is
Booleanpublic Boolean isVirtualSMCPresent()
Booleanpublic void setVirtualSMCPresent(Boolean value)
value - allowed object is
Booleanpublic List<VirtualDevice> getDevice()
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 device property.
For example, to add a new item, do as follows:
getDevice().add(newItem);
Objects of the following type(s) are allowed in the list
VirtualDevice
Copyright © 2018. All rights reserved.