Package kubevirt.io
Class V1Interface
- java.lang.Object
-
- kubevirt.io.V1Interface
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1Interface extends java.lang.ObjectV1Interface
-
-
Constructor Summary
Constructors Constructor Description V1Interface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1InterfaceaddPortsItem(V1Port portsItem)V1InterfacebootOrder(java.lang.Integer bootOrder)V1Interfacebridge(V1InterfaceBridge bridge)V1InterfacedhcpOptions(V1DHCPOptions dhcpOptions)booleanequals(java.lang.Object o)java.lang.IntegergetBootOrder()BootOrder is an integer value > 0, used to determine ordering of boot devices.V1InterfaceBridgegetBridge()Get bridgeV1DHCPOptionsgetDhcpOptions()If specified the network interface will pass additional DHCP options to the VMI +optionaljava.lang.StringgetMacAddress()Interface MAC address.V1InterfaceMasqueradegetMasquerade()Get masqueradejava.lang.StringgetModel()Interface model.java.lang.StringgetName()Logical name of the interface as well as a reference to the associated networks.java.lang.StringgetPciAddress()If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address.java.util.List<V1Port>getPorts()List of ports to be forwarded to the virtual machine.V1InterfaceSlirpgetSlirp()Get slirpV1InterfaceSRIOVgetSriov()Get sriovinthashCode()V1InterfacemacAddress(java.lang.String macAddress)V1Interfacemasquerade(V1InterfaceMasquerade masquerade)V1Interfacemodel(java.lang.String model)V1Interfacename(java.lang.String name)V1InterfacepciAddress(java.lang.String pciAddress)V1Interfaceports(java.util.List<V1Port> ports)voidsetBootOrder(java.lang.Integer bootOrder)voidsetBridge(V1InterfaceBridge bridge)voidsetDhcpOptions(V1DHCPOptions dhcpOptions)voidsetMacAddress(java.lang.String macAddress)voidsetMasquerade(V1InterfaceMasquerade masquerade)voidsetModel(java.lang.String model)voidsetName(java.lang.String name)voidsetPciAddress(java.lang.String pciAddress)voidsetPorts(java.util.List<V1Port> ports)voidsetSlirp(V1InterfaceSlirp slirp)voidsetSriov(V1InterfaceSRIOV sriov)V1Interfaceslirp(V1InterfaceSlirp slirp)V1Interfacesriov(V1InterfaceSRIOV sriov)java.lang.StringtoString()
-
-
-
Method Detail
-
bootOrder
public V1Interface bootOrder(java.lang.Integer bootOrder)
-
getBootOrder
public java.lang.Integer getBootOrder()
BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. +optional- Returns:
- bootOrder
-
setBootOrder
public void setBootOrder(java.lang.Integer bootOrder)
-
bridge
public V1Interface bridge(V1InterfaceBridge bridge)
-
getBridge
public V1InterfaceBridge getBridge()
Get bridge- Returns:
- bridge
-
setBridge
public void setBridge(V1InterfaceBridge bridge)
-
dhcpOptions
public V1Interface dhcpOptions(V1DHCPOptions dhcpOptions)
-
getDhcpOptions
public V1DHCPOptions getDhcpOptions()
If specified the network interface will pass additional DHCP options to the VMI +optional- Returns:
- dhcpOptions
-
setDhcpOptions
public void setDhcpOptions(V1DHCPOptions dhcpOptions)
-
macAddress
public V1Interface macAddress(java.lang.String macAddress)
-
getMacAddress
public java.lang.String getMacAddress()
Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.- Returns:
- macAddress
-
setMacAddress
public void setMacAddress(java.lang.String macAddress)
-
masquerade
public V1Interface masquerade(V1InterfaceMasquerade masquerade)
-
getMasquerade
public V1InterfaceMasquerade getMasquerade()
Get masquerade- Returns:
- masquerade
-
setMasquerade
public void setMasquerade(V1InterfaceMasquerade masquerade)
-
model
public V1Interface model(java.lang.String model)
-
getModel
public java.lang.String getModel()
Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio.- Returns:
- model
-
setModel
public void setModel(java.lang.String model)
-
name
public V1Interface name(java.lang.String name)
-
getName
public java.lang.String getName()
Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network.- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
pciAddress
public V1Interface pciAddress(java.lang.String pciAddress)
-
getPciAddress
public java.lang.String getPciAddress()
If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional- Returns:
- pciAddress
-
setPciAddress
public void setPciAddress(java.lang.String pciAddress)
-
ports
public V1Interface ports(java.util.List<V1Port> ports)
-
addPortsItem
public V1Interface addPortsItem(V1Port portsItem)
-
getPorts
public java.util.List<V1Port> getPorts()
List of ports to be forwarded to the virtual machine.- Returns:
- ports
-
setPorts
public void setPorts(java.util.List<V1Port> ports)
-
slirp
public V1Interface slirp(V1InterfaceSlirp slirp)
-
getSlirp
public V1InterfaceSlirp getSlirp()
Get slirp- Returns:
- slirp
-
setSlirp
public void setSlirp(V1InterfaceSlirp slirp)
-
sriov
public V1Interface sriov(V1InterfaceSRIOV sriov)
-
getSriov
public V1InterfaceSRIOV getSriov()
Get sriov- Returns:
- sriov
-
setSriov
public void setSriov(V1InterfaceSRIOV sriov)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-