Package com.vmware.nsx_policy.model
Class VirtualNetworkInterface.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.VirtualNetworkInterface.Builder
-
- Enclosing class:
- VirtualNetworkInterface
public static final class VirtualNetworkInterface.Builder extends java.lang.Object
Builder class forVirtualNetworkInterface
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofVirtualNetworkInterface
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualNetworkInterface
build()
VirtualNetworkInterface.Builder
setDescription(java.lang.String description)
Description of this resourceVirtualNetworkInterface.Builder
setDeviceKey(java.lang.String deviceKey)
Device key of the virtual network interface.VirtualNetworkInterface.Builder
setDeviceName(java.lang.String deviceName)
Device name of the virtual network interface.VirtualNetworkInterface.Builder
setDisplayName(java.lang.String displayName)
Defaults to ID if not setVirtualNetworkInterface.Builder
setExternalId(java.lang.String externalId)
External Id of the virtual network inferface.VirtualNetworkInterface.Builder
setHostId(java.lang.String hostId)
Id of the host on which the vm exists.VirtualNetworkInterface.Builder
setIpAddressInfo(java.util.List<IpAddressInfo> ipAddressInfo)
IP Addresses of the the virtual network interface, from various sources.VirtualNetworkInterface.Builder
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.VirtualNetworkInterface.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.VirtualNetworkInterface.Builder
setLportAttachmentId(java.lang.String lportAttachmentId)
LPort Attachment Id of the virtual network interface.VirtualNetworkInterface.Builder
setMacAddress(java.lang.String macAddress)
MAC address of the virtual network interface.VirtualNetworkInterface.Builder
setOwnerVmId(java.lang.String ownerVmId)
Id of the vm to which this virtual network interface belongs.VirtualNetworkInterface.Builder
setOwnerVmType(java.lang.String ownerVmType)
Possible values are:VirtualNetworkInterface.OWNER_VM_TYPE_EDGE
VirtualNetworkInterface.OWNER_VM_TYPE_SERVICE
VirtualNetworkInterface.OWNER_VM_TYPE_REGULAR
Owner virtual machine type; Edge, Service VM or other.VirtualNetworkInterface.Builder
setResourceType(java.lang.String resourceType)
The type of this resource.VirtualNetworkInterface.Builder
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.VirtualNetworkInterface.Builder
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.VirtualNetworkInterface.Builder
setSelf(SelfResourceLink self)
VirtualNetworkInterface.Builder
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API userVirtualNetworkInterface.Builder
setUptv2Enabled(java.lang.Boolean uptv2Enabled)
Specifies if UPTv2 (Universal Pass-through version 2) compatibility is enabled for the virtual network interface or not.VirtualNetworkInterface.Builder
setVmLocalIdOnHost(java.lang.String vmLocalIdOnHost)
Id of the vm unique within the host.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofVirtualNetworkInterface
.
-
-
Method Detail
-
setLinks
public VirtualNetworkInterface.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
links
- New value for the property.
-
setSchema
public VirtualNetworkInterface.Builder 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.- Parameters:
schema
- New value for the property.
-
setSelf
public VirtualNetworkInterface.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setLastSyncTime
public VirtualNetworkInterface.Builder 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.- Parameters:
lastSyncTime
- New value for the property.
-
setDescription
public VirtualNetworkInterface.Builder setDescription(java.lang.String description)
Description of this resource- Parameters:
description
- New value for the property.
-
setDisplayName
public VirtualNetworkInterface.Builder setDisplayName(java.lang.String displayName)
Defaults to ID if not set- Parameters:
displayName
- New value for the property.
-
setResourceType
public VirtualNetworkInterface.Builder setResourceType(java.lang.String resourceType)
The type of this resource.- Parameters:
resourceType
- New value for the property.
-
setScope
public VirtualNetworkInterface.Builder setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource. e.g. if VHC path is associated with principal identity, who owns the discovered resource, then scope id will be VHC path and scope type will be VHC.- Parameters:
scope
- New value for the property.
-
setTags
public VirtualNetworkInterface.Builder setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user- Parameters:
tags
- New value for the property.
-
setDeviceKey
public VirtualNetworkInterface.Builder setDeviceKey(java.lang.String deviceKey)
Device key of the virtual network interface.- Parameters:
deviceKey
- New value for the property.
-
setDeviceName
public VirtualNetworkInterface.Builder setDeviceName(java.lang.String deviceName)
Device name of the virtual network interface.- Parameters:
deviceName
- New value for the property.
-
setExternalId
public VirtualNetworkInterface.Builder setExternalId(java.lang.String externalId)
External Id of the virtual network inferface.- Parameters:
externalId
- New value for the property.
-
setHostId
public VirtualNetworkInterface.Builder setHostId(java.lang.String hostId)
Id of the host on which the vm exists.- Parameters:
hostId
- New value for the property.
-
setIpAddressInfo
public VirtualNetworkInterface.Builder setIpAddressInfo(java.util.List<IpAddressInfo> ipAddressInfo)
IP Addresses of the the virtual network interface, from various sources.- Parameters:
ipAddressInfo
- New value for the property.
-
setLportAttachmentId
public VirtualNetworkInterface.Builder setLportAttachmentId(java.lang.String lportAttachmentId)
LPort Attachment Id of the virtual network interface.- Parameters:
lportAttachmentId
- New value for the property.
-
setMacAddress
public VirtualNetworkInterface.Builder setMacAddress(java.lang.String macAddress)
MAC address of the virtual network interface.- Parameters:
macAddress
- New value for the property.
-
setOwnerVmId
public VirtualNetworkInterface.Builder setOwnerVmId(java.lang.String ownerVmId)
Id of the vm to which this virtual network interface belongs.- Parameters:
ownerVmId
- New value for the property.
-
setOwnerVmType
public VirtualNetworkInterface.Builder setOwnerVmType(java.lang.String ownerVmType)
Possible values are: Owner virtual machine type; Edge, Service VM or other. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ownerVmType
- New value for the property.
-
setUptv2Enabled
public VirtualNetworkInterface.Builder setUptv2Enabled(java.lang.Boolean uptv2Enabled)
Specifies if UPTv2 (Universal Pass-through version 2) compatibility is enabled for the virtual network interface or not. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
uptv2Enabled
- New value for the property.
-
setVmLocalIdOnHost
public VirtualNetworkInterface.Builder setVmLocalIdOnHost(java.lang.String vmLocalIdOnHost)
Id of the vm unique within the host.- Parameters:
vmLocalIdOnHost
- New value for the property.
-
build
public VirtualNetworkInterface build()
-
-