public final class VirtualNetworkInterface
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
VirtualNetworkInterface.Builder
Builder class for
VirtualNetworkInterface . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
OWNER_VM_TYPE_EDGE |
static java.lang.String |
OWNER_VM_TYPE_REGULAR |
static java.lang.String |
OWNER_VM_TYPE_SERVICE |
Modifier | Constructor and Description |
---|---|
|
VirtualNetworkInterface()
Default constructor.
|
protected |
VirtualNetworkInterface(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static VirtualNetworkInterface |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static VirtualNetworkInterface |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
Description of this resource
|
java.lang.String |
getDeviceKey()
Device key of the virtual network interface.
|
java.lang.String |
getDeviceName()
Device name of the virtual network interface.
|
java.lang.String |
getDisplayName()
Defaults to ID if not set
|
java.lang.String |
getExternalId()
External Id of the virtual network inferface.
|
java.lang.String |
getHostId()
Id of the host on which the vm exists.
|
java.util.List<IpAddressInfo> |
getIpAddressInfo()
IP Addresses of the the virtual network interface, from various sources.
|
java.lang.Long |
getLastSyncTime()
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.util.List<ResourceLink> |
getLinks()
The server will populate this field when returing the resource.
|
java.lang.String |
getLportAttachmentId()
LPort Attachment Id of the virtual network interface.
|
java.lang.String |
getMacAddress()
MAC address of the virtual network interface.
|
java.lang.String |
getOwnerVmId()
Id of the vm to which this virtual network interface belongs.
|
java.lang.String |
getOwnerVmType()
Possible values are:
OWNER_VM_TYPE_EDGE
OWNER_VM_TYPE_SERVICE
OWNER_VM_TYPE_REGULAR
Owner virtual machine type; Edge, Service VM or other. |
java.lang.String |
getResourceType()
The type of this resource.
|
java.lang.String |
getSchema()
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.util.List<DiscoveredResourceScope> |
getScope()
Specifies list of scope of discovered resource.
|
SelfResourceLink |
getSelf() |
java.util.List<Tag> |
getTags()
Opaque identifiers meaningful to the API user
|
java.lang.Boolean |
getUptv2Enabled()
Specifies if UPTv2 (Universal Pass-through version 2) compatibility is enabled
for the virtual network interface or not.
|
java.lang.String |
getVmLocalIdOnHost()
Id of the vm unique within the host.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
Description of this resource
|
void |
setDeviceKey(java.lang.String deviceKey)
Device key of the virtual network interface.
|
void |
setDeviceName(java.lang.String deviceName)
Device name of the virtual network interface.
|
void |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
void |
setExternalId(java.lang.String externalId)
External Id of the virtual network inferface.
|
void |
setHostId(java.lang.String hostId)
Id of the host on which the vm exists.
|
void |
setIpAddressInfo(java.util.List<IpAddressInfo> ipAddressInfo)
IP Addresses of the the virtual network interface, from various sources.
|
void |
setLastSyncTime(java.lang.Long lastSyncTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
void |
setLportAttachmentId(java.lang.String lportAttachmentId)
LPort Attachment Id of the virtual network interface.
|
void |
setMacAddress(java.lang.String macAddress)
MAC address of the virtual network interface.
|
void |
setOwnerVmId(java.lang.String ownerVmId)
Id of the vm to which this virtual network interface belongs.
|
void |
setOwnerVmType(java.lang.String ownerVmType)
Possible values are:
OWNER_VM_TYPE_EDGE
OWNER_VM_TYPE_SERVICE
OWNER_VM_TYPE_REGULAR
Owner virtual machine type; Edge, Service VM or other. |
void |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
void |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.
|
void |
setSelf(SelfResourceLink self) |
void |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
void |
setUptv2Enabled(java.lang.Boolean uptv2Enabled)
Specifies if UPTv2 (Universal Pass-through version 2) compatibility is enabled
for the virtual network interface or not.
|
void |
setVmLocalIdOnHost(java.lang.String vmLocalIdOnHost)
Id of the vm unique within the host.
|
java.lang.String |
toString() |
public static final java.lang.String OWNER_VM_TYPE_EDGE
public static final java.lang.String OWNER_VM_TYPE_SERVICE
public static final java.lang.String OWNER_VM_TYPE_REGULAR
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public VirtualNetworkInterface()
protected VirtualNetworkInterface(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<ResourceLink> getLinks()
public void setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema
- New value for the property.public SelfResourceLink getSelf()
public void setSelf(SelfResourceLink self)
self
- New value for the property.public java.lang.Long getLastSyncTime()
public void setLastSyncTime(java.lang.Long lastSyncTime)
lastSyncTime
- New value for the property.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value for the property.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public java.lang.String getResourceType()
public void setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public java.util.List<DiscoveredResourceScope> getScope()
public void setScope(java.util.List<DiscoveredResourceScope> scope)
scope
- New value for the property.public java.util.List<Tag> getTags()
public void setTags(java.util.List<Tag> tags)
tags
- New value for the property.public java.lang.String getDeviceKey()
public void setDeviceKey(java.lang.String deviceKey)
deviceKey
- New value for the property.public java.lang.String getDeviceName()
public void setDeviceName(java.lang.String deviceName)
deviceName
- New value for the property.public java.lang.String getExternalId()
public void setExternalId(java.lang.String externalId)
externalId
- New value for the property.public java.lang.String getHostId()
public void setHostId(java.lang.String hostId)
hostId
- New value for the property.public java.util.List<IpAddressInfo> getIpAddressInfo()
public void setIpAddressInfo(java.util.List<IpAddressInfo> ipAddressInfo)
ipAddressInfo
- New value for the property.public java.lang.String getLportAttachmentId()
public void setLportAttachmentId(java.lang.String lportAttachmentId)
lportAttachmentId
- New value for the property.public java.lang.String getMacAddress()
public void setMacAddress(java.lang.String macAddress)
macAddress
- New value for the property.public java.lang.String getOwnerVmId()
public void setOwnerVmId(java.lang.String ownerVmId)
ownerVmId
- New value for the property.public java.lang.String getOwnerVmType()
public void setOwnerVmType(java.lang.String ownerVmType)
ownerVmType
- New value for the property.public java.lang.Boolean getUptv2Enabled()
public void setUptv2Enabled(java.lang.Boolean uptv2Enabled)
uptv2Enabled
- New value for the property.public java.lang.String getVmLocalIdOnHost()
public void setVmLocalIdOnHost(java.lang.String vmLocalIdOnHost)
vmLocalIdOnHost
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static VirtualNetworkInterface _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static VirtualNetworkInterface _newInstance2(com.vmware.vapi.data.StructValue structValue)