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.Object
V1Interface
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integer
bootOrder
private V1InterfaceBridge
bridge
private V1DHCPOptions
dhcpOptions
private java.lang.String
macAddress
private V1InterfaceMasquerade
masquerade
private java.lang.String
model
private java.lang.String
name
private java.lang.String
pciAddress
private java.util.List<V1Port>
ports
private V1InterfaceSlirp
slirp
private V1InterfaceSRIOV
sriov
-
Constructor Summary
Constructors Constructor Description V1Interface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1Interface
addPortsItem(V1Port portsItem)
V1Interface
bootOrder(java.lang.Integer bootOrder)
V1Interface
bridge(V1InterfaceBridge bridge)
V1Interface
dhcpOptions(V1DHCPOptions dhcpOptions)
boolean
equals(java.lang.Object o)
java.lang.Integer
getBootOrder()
BootOrder is an integer value > 0, used to determine ordering of boot devices.V1InterfaceBridge
getBridge()
Get bridgeV1DHCPOptions
getDhcpOptions()
If specified the network interface will pass additional DHCP options to the VMI +optionaljava.lang.String
getMacAddress()
Interface MAC address.V1InterfaceMasquerade
getMasquerade()
Get masqueradejava.lang.String
getModel()
Interface model.java.lang.String
getName()
Logical name of the interface as well as a reference to the associated networks.java.lang.String
getPciAddress()
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.V1InterfaceSlirp
getSlirp()
Get slirpV1InterfaceSRIOV
getSriov()
Get sriovint
hashCode()
V1Interface
macAddress(java.lang.String macAddress)
V1Interface
masquerade(V1InterfaceMasquerade masquerade)
V1Interface
model(java.lang.String model)
V1Interface
name(java.lang.String name)
V1Interface
pciAddress(java.lang.String pciAddress)
V1Interface
ports(java.util.List<V1Port> ports)
void
setBootOrder(java.lang.Integer bootOrder)
void
setBridge(V1InterfaceBridge bridge)
void
setDhcpOptions(V1DHCPOptions dhcpOptions)
void
setMacAddress(java.lang.String macAddress)
void
setMasquerade(V1InterfaceMasquerade masquerade)
void
setModel(java.lang.String model)
void
setName(java.lang.String name)
void
setPciAddress(java.lang.String pciAddress)
void
setPorts(java.util.List<V1Port> ports)
void
setSlirp(V1InterfaceSlirp slirp)
void
setSriov(V1InterfaceSRIOV sriov)
V1Interface
slirp(V1InterfaceSlirp slirp)
V1Interface
sriov(V1InterfaceSRIOV sriov)
private java.lang.String
toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.String
toString()
-
-
-
Field Detail
-
bootOrder
private java.lang.Integer bootOrder
-
bridge
private V1InterfaceBridge bridge
-
dhcpOptions
private V1DHCPOptions dhcpOptions
-
macAddress
private java.lang.String macAddress
-
masquerade
private V1InterfaceMasquerade masquerade
-
model
private java.lang.String model
-
name
private java.lang.String name
-
pciAddress
private java.lang.String pciAddress
-
ports
private java.util.List<V1Port> ports
-
slirp
private V1InterfaceSlirp slirp
-
sriov
private V1InterfaceSRIOV sriov
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toIndentedString
private java.lang.String toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-