public static final class PortAttachment.Builder
extends java.lang.Object
PortAttachment
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
PortAttachment . |
Modifier and Type | Method and Description |
---|---|
PortAttachment |
build() |
PortAttachment.Builder |
setAllocateAddresses(java.lang.String allocateAddresses)
Possible values are:
PortAttachment.ALLOCATE_ADDRESSES_IP_POOL
PortAttachment.ALLOCATE_ADDRESSES_MAC_POOL
PortAttachment.ALLOCATE_ADDRESSES_BOTH
PortAttachment.ALLOCATE_ADDRESSES_NONE
PortAttachment.ALLOCATE_ADDRESSES_DHCP
PortAttachment.ALLOCATE_ADDRESSES_DHCPV6
PortAttachment.ALLOCATE_ADDRESSES_SLAAC
Indicate how IP will be allocated for the port |
PortAttachment.Builder |
setAppId(java.lang.String appId)
ID used to identify/look up a child attachment behind a parent attachment
|
PortAttachment.Builder |
setBmsInterfaceConfig(AttachedInterfaceEntry bmsInterfaceConfig) |
PortAttachment.Builder |
setContextId(java.lang.String contextId)
If type is CHILD and the parent port is on the same segment as the child port,
then this field should be VIF ID of the parent port.
|
PortAttachment.Builder |
setContextType(java.lang.String contextType)
Possible values are:
PortAttachment.CONTEXT_TYPE_PARENT Set
to PARENT when type field is CHILD. |
PortAttachment.Builder |
setEvpnVlans(java.util.List<java.lang.String> evpnVlans)
List of Evpn tenant VLAN IDs the Parent logical-port serves in Evpn Route-Server
mode.
|
PortAttachment.Builder |
setHyperbusMode(java.lang.String hyperbusMode)
Possible values are:
PortAttachment.HYPERBUS_MODE_ENABLE
PortAttachment.HYPERBUS_MODE_DISABLE
Flag to indicate if hyperbus configuration is required. |
PortAttachment.Builder |
setId(java.lang.String id)
VIF UUID on NSX Manager.
|
PortAttachment.Builder |
setTrafficTag(java.lang.Long trafficTag)
Not valid when type field is INDEPENDENT, mainly used to identify traffic from
different ports in container use case.
|
PortAttachment.Builder |
setType(java.lang.String type)
Possible values are:
PortAttachment.TYPE_PARENT PortAttachment.TYPE_CHILD PortAttachment.TYPE_INDEPENDENT PortAttachment.TYPE_STATIC Type of port
attachment. |
public Builder()
PortAttachment
.public PortAttachment.Builder setAllocateAddresses(java.lang.String allocateAddresses)
allocateAddresses
- New value for the property.public PortAttachment.Builder setAppId(java.lang.String appId)
appId
- New value for the property.public PortAttachment.Builder setBmsInterfaceConfig(AttachedInterfaceEntry bmsInterfaceConfig)
bmsInterfaceConfig
- New value for the property.public PortAttachment.Builder setContextId(java.lang.String contextId)
contextId
- New value for the property.public PortAttachment.Builder setContextType(java.lang.String contextType)
contextType
- New value for the property.public PortAttachment.Builder setEvpnVlans(java.util.List<java.lang.String> evpnVlans)
evpnVlans
- New value for the property.public PortAttachment.Builder setHyperbusMode(java.lang.String hyperbusMode)
hyperbusMode
- New value for the property.public PortAttachment.Builder setId(java.lang.String id)
id
- New value for the property.public PortAttachment.Builder setTrafficTag(java.lang.Long trafficTag)
trafficTag
- New value for the property.public PortAttachment.Builder setType(java.lang.String type)
type
- New value for the property.public PortAttachment build()