Package com.vmware.nsx_policy.model
Class PortAttachment.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PortAttachment.Builder
-
- Enclosing class:
- PortAttachment
public static final class PortAttachment.Builder extends java.lang.Object
Builder class forPortAttachment
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPortAttachment
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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_DHCP
PortAttachment.ALLOCATE_ADDRESSES_DHCPV6
PortAttachment.ALLOCATE_ADDRESSES_SLAAC
PortAttachment.ALLOCATE_ADDRESSES_NONE
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 attachmentPortAttachment.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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPortAttachment
.
-
-
Method Detail
-
setAllocateAddresses
public PortAttachment.Builder setAllocateAddresses(java.lang.String allocateAddresses)
Possible values are: Indicate how IP will be allocated for the port. Enum BOTH references IP pool and MAC pool. Enum NONE is no allocation.- Parameters:
allocateAddresses
- New value for the property.
-
setAppId
public PortAttachment.Builder setAppId(java.lang.String appId)
ID used to identify/look up a child attachment behind a parent attachment- Parameters:
appId
- New value for the property.
-
setBmsInterfaceConfig
public PortAttachment.Builder setBmsInterfaceConfig(AttachedInterfaceEntry bmsInterfaceConfig)
- Parameters:
bmsInterfaceConfig
- New value for the property.
-
setContextId
public 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. If type is CHILD and the parent port is on a different segment, then this field should be policy path of the parent port. If type is INDEPENDENT/STATIC, then this field should be transport node ID.- Parameters:
contextId
- New value for the property.
-
setContextType
public PortAttachment.Builder setContextType(java.lang.String contextType)
Possible values are: Set to PARENT when type field is CHILD. Read only field. 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:
contextType
- New value for the property.
-
setEvpnVlans
public 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. Only effective when attachment type is PARENT and the logical-port is attached to vRouter VM.- Parameters:
evpnVlans
- New value for the property.
-
setHyperbusMode
public PortAttachment.Builder setHyperbusMode(java.lang.String hyperbusMode)
Possible values are: Flag to indicate if hyperbus configuration is required.- Parameters:
hyperbusMode
- New value for the property.
-
setId
public PortAttachment.Builder setId(java.lang.String id)
VIF UUID on NSX Manager. If the attachement type is PARENT, this property is required.- Parameters:
id
- New value for the property.
-
setTrafficTag
public 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. format: int64- Parameters:
trafficTag
- New value for the property.
-
setType
public PortAttachment.Builder setType(java.lang.String type)
Possible values are: Type of port attachment. STATIC is added to replace INDEPENDENT. INDEPENDENT type and PARENT type are deprecated.- Parameters:
type
- New value for the property.
-
build
public PortAttachment build()
-
-