
com.vmware.vim.PhysicalNic Maven / Gradle / Ivy
Show all versions of vi-api Show documentation
package com.vmware.vim;
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 PhysicalNic complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PhysicalNic">
* <complexContent>
* <extension base="{urn:vim2}DynamicData">
* <sequence>
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="device" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="pci" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="driver" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="linkSpeed" type="{urn:vim2}PhysicalNicLinkInfo" minOccurs="0"/>
* <element name="validLinkSpecification" type="{urn:vim2}PhysicalNicLinkInfo" maxOccurs="unbounded" minOccurs="0"/>
* <element name="spec" type="{urn:vim2}PhysicalNicSpec"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PhysicalNic", propOrder = {
"key",
"device",
"pci",
"driver",
"linkSpeed",
"validLinkSpecification",
"spec"
})
public class PhysicalNic
extends DynamicData
{
protected String key;
@XmlElement(required = true)
protected String device;
@XmlElement(required = true)
protected String pci;
protected String driver;
protected PhysicalNicLinkInfo linkSpeed;
protected List validLinkSpecification;
@XmlElement(required = true)
protected PhysicalNicSpec spec;
/**
* 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 device property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDevice() {
return device;
}
/**
* Sets the value of the device property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDevice(String value) {
this.device = value;
}
/**
* Gets the value of the pci property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPci() {
return pci;
}
/**
* Sets the value of the pci property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPci(String value) {
this.pci = value;
}
/**
* Gets the value of the driver property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDriver() {
return driver;
}
/**
* Sets the value of the driver property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDriver(String value) {
this.driver = value;
}
/**
* Gets the value of the linkSpeed property.
*
* @return
* possible object is
* {@link PhysicalNicLinkInfo }
*
*/
public PhysicalNicLinkInfo getLinkSpeed() {
return linkSpeed;
}
/**
* Sets the value of the linkSpeed property.
*
* @param value
* allowed object is
* {@link PhysicalNicLinkInfo }
*
*/
public void setLinkSpeed(PhysicalNicLinkInfo value) {
this.linkSpeed = value;
}
/**
* Gets the value of the validLinkSpecification 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 validLinkSpecification property.
*
*
* For example, to add a new item, do as follows:
*
* getValidLinkSpecification().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PhysicalNicLinkInfo }
*
*
*/
public List getValidLinkSpecification() {
if (validLinkSpecification == null) {
validLinkSpecification = new ArrayList();
}
return this.validLinkSpecification;
}
/**
* Gets the value of the spec property.
*
* @return
* possible object is
* {@link PhysicalNicSpec }
*
*/
public PhysicalNicSpec getSpec() {
return spec;
}
/**
* Sets the value of the spec property.
*
* @param value
* allowed object is
* {@link PhysicalNicSpec }
*
*/
public void setSpec(PhysicalNicSpec value) {
this.spec = value;
}
/**
* Sets the value of the validLinkSpecification property.
*
* @param validLinkSpecification
* allowed object is
* {@link PhysicalNicLinkInfo }
*
*/
public void setValidLinkSpecification(List validLinkSpecification) {
this.validLinkSpecification = validLinkSpecification;
}
}