public class HostVirtualSwitch extends DynamicData
Java class for HostVirtualSwitch complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HostVirtualSwitch">
<complexContent>
<extension base="{urn:vim25}DynamicData">
<sequence>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="numPorts" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="numPortsAvailable" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="mtu" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="portgroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="pnic" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="spec" type="{urn:vim25}HostVirtualSwitchSpec"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected Integer |
mtu |
protected String |
name |
protected int |
numPorts |
protected int |
numPortsAvailable |
protected List<String> |
pnic |
protected List<String> |
portgroup |
protected HostVirtualSwitchSpec |
spec |
| Constructor and Description |
|---|
HostVirtualSwitch() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Gets the value of the key property.
|
Integer |
getMtu()
Gets the value of the mtu property.
|
String |
getName()
Gets the value of the name property.
|
int |
getNumPorts()
Gets the value of the numPorts property.
|
int |
getNumPortsAvailable()
Gets the value of the numPortsAvailable property.
|
List<String> |
getPnic()
Gets the value of the pnic property.
|
List<String> |
getPortgroup()
Gets the value of the portgroup property.
|
HostVirtualSwitchSpec |
getSpec()
Gets the value of the spec property.
|
void |
setKey(String value)
Sets the value of the key property.
|
void |
setMtu(Integer value)
Sets the value of the mtu property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNumPorts(int value)
Sets the value of the numPorts property.
|
void |
setNumPortsAvailable(int value)
Sets the value of the numPortsAvailable property.
|
void |
setSpec(HostVirtualSwitchSpec value)
Sets the value of the spec property.
|
protected String name
protected String key
protected int numPorts
protected int numPortsAvailable
protected Integer mtu
protected HostVirtualSwitchSpec spec
public String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getKey()
Stringpublic void setKey(String value)
value - allowed object is
Stringpublic int getNumPorts()
public void setNumPorts(int value)
public int getNumPortsAvailable()
public void setNumPortsAvailable(int value)
public Integer getMtu()
Integerpublic void setMtu(Integer value)
value - allowed object is
Integerpublic List<String> getPortgroup()
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 portgroup property.
For example, to add a new item, do as follows:
getPortgroup().add(newItem);
Objects of the following type(s) are allowed in the list
String
public List<String> getPnic()
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 pnic property.
For example, to add a new item, do as follows:
getPnic().add(newItem);
Objects of the following type(s) are allowed in the list
String
public HostVirtualSwitchSpec getSpec()
HostVirtualSwitchSpecpublic void setSpec(HostVirtualSwitchSpec value)
value - allowed object is
HostVirtualSwitchSpecCopyright © 2018. All rights reserved.