public static final class LogicalPort.Builder
extends java.lang.Object
LogicalPort
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
LogicalPort . |
Modifier and Type | Method and Description |
---|---|
LogicalPort |
build() |
LogicalPort.Builder |
setAddressBindings(java.util.List<PacketAddressClassifier> addressBindings)
Each address binding must contain both an IPElement and MAC address.
|
LogicalPort.Builder |
setAdminState(java.lang.String adminState)
Possible values are:
LogicalPort.ADMIN_STATE_UP LogicalPort.ADMIN_STATE_DOWN Represents Desired
state of the logical port |
LogicalPort.Builder |
setAttachment(LogicalPortAttachment attachment) |
LogicalPort.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation 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.
|
LogicalPort.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created 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.
|
LogicalPort.Builder |
setDescription(java.lang.String description)
Description of this resource
|
LogicalPort.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
LogicalPort.Builder |
setExtraConfigs(java.util.List<ExtraConfig> extraConfigs)
This property could be used for vendor specific configuration in key value
string pairs.
|
LogicalPort.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
LogicalPort.Builder |
setIgnoreAddressBindings(java.util.List<PacketAddressClassifier> ignoreAddressBindings)
IP Discovery module uses various mechanisms to discover address bindings being
used on each port.
|
LogicalPort.Builder |
setInitState(java.lang.String initState)
Possible values are:
LogicalPort.INIT_STATE_UNBLOCKED_VLAN LogicalPort.INIT_STATE_RESTORE_VIF Set initial
state when a new logical port is created. |
LogicalPort.Builder |
setInternalId(java.lang.String internalId)
The internal_id of the logical port may or may not be identical to it's managed
resource ID.
|
LogicalPort.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
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.
|
LogicalPort.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified 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.
|
LogicalPort.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
LogicalPort.Builder |
setLogicalSwitchId(java.lang.String logicalSwitchId)
Id of the Logical switch that this port belongs to.
|
LogicalPort.Builder |
setOriginId(java.lang.String originId)
ID populated by NSX when NSX on DVPG is used to indicate the source distributed
virtual port and the corresponding distributed virtual switch.
|
LogicalPort.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
LogicalPort.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
LogicalPort.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
LogicalPort.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.
|
LogicalPort.Builder |
setSelf(SelfResourceLink self) |
LogicalPort.Builder |
setSwitchingProfileIds(java.util.List<SwitchingProfileTypeIdEntry> switchingProfileIds) |
LogicalPort.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned 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.
|
LogicalPort.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
LogicalPort
.public LogicalPort.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public LogicalPort.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public LogicalPort.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public LogicalPort.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public LogicalPort.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public LogicalPort.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public LogicalPort.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public LogicalPort.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public LogicalPort.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public LogicalPort.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public LogicalPort.Builder setDescription(java.lang.String description)
description
- New value for the property.public LogicalPort.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public LogicalPort.Builder setId(java.lang.String id)
id
- New value for the property.public LogicalPort.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public LogicalPort.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public LogicalPort.Builder setAddressBindings(java.util.List<PacketAddressClassifier> addressBindings)
addressBindings
- New value for the property.public LogicalPort.Builder setAdminState(java.lang.String adminState)
adminState
- New value for the property.public LogicalPort.Builder setAttachment(LogicalPortAttachment attachment)
attachment
- New value for the property.public LogicalPort.Builder setExtraConfigs(java.util.List<ExtraConfig> extraConfigs)
extraConfigs
- New value for the property.public LogicalPort.Builder setIgnoreAddressBindings(java.util.List<PacketAddressClassifier> ignoreAddressBindings)
ignoreAddressBindings
- New value for the property.public LogicalPort.Builder setInitState(java.lang.String initState)
initState
- New value for the property.public LogicalPort.Builder setInternalId(java.lang.String internalId)
internalId
- New value for the property.public LogicalPort.Builder setLogicalSwitchId(java.lang.String logicalSwitchId)
logicalSwitchId
- New value for the property.public LogicalPort.Builder setOriginId(java.lang.String originId)
originId
- New value for the property.public LogicalPort.Builder setSwitchingProfileIds(java.util.List<SwitchingProfileTypeIdEntry> switchingProfileIds)
switchingProfileIds
- New value for the property.public LogicalPort build()