com.vmware.vim25.HostVirtualSwitch Maven / Gradle / Ivy
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HostVirtualSwitch", propOrder = {
"name",
"key",
"numPorts",
"numPortsAvailable",
"mtu",
"portgroup",
"pnic",
"spec"
})
public class HostVirtualSwitch
extends DynamicData
{
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected String key;
protected int numPorts;
protected int numPortsAvailable;
protected Integer mtu;
protected List portgroup;
protected List pnic;
@XmlElement(required = true)
protected HostVirtualSwitchSpec spec;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the key property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}
/**
* Sets the value of the key property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}
/**
* Gets the value of the numPorts property.
*
*/
public int getNumPorts() {
return numPorts;
}
/**
* Sets the value of the numPorts property.
*
*/
public void setNumPorts(int value) {
this.numPorts = value;
}
/**
* Gets the value of the numPortsAvailable property.
*
*/
public int getNumPortsAvailable() {
return numPortsAvailable;
}
/**
* Sets the value of the numPortsAvailable property.
*
*/
public void setNumPortsAvailable(int value) {
this.numPortsAvailable = value;
}
/**
* Gets the value of the mtu property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getMtu() {
return mtu;
}
/**
* Sets the value of the mtu property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setMtu(Integer value) {
this.mtu = value;
}
/**
* Gets the value of the portgroup property.
*
*
* 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
* {@link String }
*
*
*/
public List getPortgroup() {
if (portgroup == null) {
portgroup = new ArrayList();
}
return this.portgroup;
}
/**
* Gets the value of the pnic property.
*
*
* 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
* {@link String }
*
*
*/
public List getPnic() {
if (pnic == null) {
pnic = new ArrayList();
}
return this.pnic;
}
/**
* Gets the value of the spec property.
*
* @return
* possible object is
* {@link HostVirtualSwitchSpec }
*
*/
public HostVirtualSwitchSpec getSpec() {
return spec;
}
/**
* Sets the value of the spec property.
*
* @param value
* allowed object is
* {@link HostVirtualSwitchSpec }
*
*/
public void setSpec(HostVirtualSwitchSpec value) {
this.spec = value;
}
}