public static final class EthernetTypes.BackingInfo.Builder
extends java.lang.Object
EthernetTypes.BackingInfo
.Constructor and Description |
---|
Builder(EthernetTypes.BackingType type)
Constructor with parameters for the required properties of
EthernetTypes.BackingInfo . |
Modifier and Type | Method and Description |
---|---|
EthernetTypes.BackingInfo |
build() |
EthernetTypes.BackingInfo.Builder |
setConnectionCookie(java.lang.Long connectionCookie)
Server-generated cookie that identifies the connection to the port.
|
EthernetTypes.BackingInfo.Builder |
setDistributedPort(java.lang.String distributedPort)
Key of the distributed virtual port that backs the virtual Ethernet adapter.
|
EthernetTypes.BackingInfo.Builder |
setDistributedSwitchUuid(java.lang.String distributedSwitchUuid)
UUID of the distributed virtual switch that backs the virtual Ethernet adapter.
|
EthernetTypes.BackingInfo.Builder |
setHostDevice(java.lang.String hostDevice)
Name of the device backing the virtual Ethernet adapter.
|
EthernetTypes.BackingInfo.Builder |
setNetwork(java.lang.String network)
Identifier of the network backing the virtual Ethernet adapter.
|
EthernetTypes.BackingInfo.Builder |
setNetworkName(java.lang.String networkName)
Name of the standard portgroup backing the virtual Ethernet adapter.
|
EthernetTypes.BackingInfo.Builder |
setOpaqueNetworkId(java.lang.String opaqueNetworkId)
Identifier of the opaque network that backs the virtual Ethernet adapter.
|
EthernetTypes.BackingInfo.Builder |
setOpaqueNetworkType(java.lang.String opaqueNetworkType)
Type of the opaque network that backs the virtual Ethernet adapter.
|
public Builder(EthernetTypes.BackingType type)
EthernetTypes.BackingInfo
.public EthernetTypes.BackingInfo.Builder setNetwork(java.lang.String network)
null
, the identifier of the network backing could not be determined.network
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: Network
. When methods return a value
of this class as a return value, the property will be an identifier for the
resource type: Network
.public EthernetTypes.BackingInfo.Builder setNetworkName(java.lang.String networkName)
getType()
is EthernetTypes.BackingType.STANDARD_PORTGROUP
.networkName
- New value for the property.public EthernetTypes.BackingInfo.Builder setHostDevice(java.lang.String hostDevice)
getType()
is EthernetTypes.BackingType.HOST_DEVICE
.hostDevice
- New value for the property.public EthernetTypes.BackingInfo.Builder setDistributedSwitchUuid(java.lang.String distributedSwitchUuid)
getType()
is EthernetTypes.BackingType.DISTRIBUTED_PORTGROUP
.distributedSwitchUuid
- New value for the property.public EthernetTypes.BackingInfo.Builder setDistributedPort(java.lang.String distributedPort)
null
if the virtual Ethernet device is not bound
to a distributed virtual port; this can happen if the virtual machine is powered
off or the virtual Ethernet device is not connected.distributedPort
- New value for the property.public EthernetTypes.BackingInfo.Builder setConnectionCookie(java.lang.Long connectionCookie)
null
if the virtual Ethernet device is not bound
to a distributed virtual port; this can happen if the virtual machine is powered
off or the virtual Ethernet device is not connected.connectionCookie
- New value for the property.public EthernetTypes.BackingInfo.Builder setOpaqueNetworkType(java.lang.String opaqueNetworkType)
getType()
is EthernetTypes.BackingType.OPAQUE_NETWORK
.opaqueNetworkType
- New value for the property.public EthernetTypes.BackingInfo.Builder setOpaqueNetworkId(java.lang.String opaqueNetworkId)
getType()
is EthernetTypes.BackingType.OPAQUE_NETWORK
.opaqueNetworkId
- New value for the property.public EthernetTypes.BackingInfo build()