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.ObjectBuilder 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 PortAttachmentbuild()PortAttachment.BuildersetAllocateAddresses(java.lang.String allocateAddresses)Possible values are:PortAttachment.ALLOCATE_ADDRESSES_IP_POOLPortAttachment.ALLOCATE_ADDRESSES_MAC_POOLPortAttachment.ALLOCATE_ADDRESSES_BOTHPortAttachment.ALLOCATE_ADDRESSES_DHCPPortAttachment.ALLOCATE_ADDRESSES_DHCPV6PortAttachment.ALLOCATE_ADDRESSES_SLAACPortAttachment.ALLOCATE_ADDRESSES_NONEIndicate how IP will be allocated for the port.PortAttachment.BuildersetAppId(java.lang.String appId)ID used to identify/look up a child attachment behind a parent attachmentPortAttachment.BuildersetBmsInterfaceConfig(AttachedInterfaceEntry bmsInterfaceConfig)PortAttachment.BuildersetContextId(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.BuildersetContextType(java.lang.String contextType)Possible values are:PortAttachment.CONTEXT_TYPE_PARENTSet to PARENT when type field is CHILD.PortAttachment.BuildersetEvpnVlans(java.util.List<java.lang.String> evpnVlans)List of Evpn tenant VLAN IDs the Parent logical-port serves in Evpn Route-Server mode.PortAttachment.BuildersetHyperbusMode(java.lang.String hyperbusMode)Possible values are:PortAttachment.HYPERBUS_MODE_ENABLEPortAttachment.HYPERBUS_MODE_DISABLEFlag to indicate if hyperbus configuration is required.PortAttachment.BuildersetId(java.lang.String id)VIF UUID on NSX Manager.PortAttachment.BuildersetTrafficTag(java.lang.Long trafficTag)Not valid when type field is INDEPENDENT, mainly used to identify traffic from different ports in container use case.PortAttachment.BuildersetType(java.lang.String type)Possible values are:PortAttachment.TYPE_PARENTPortAttachment.TYPE_CHILDPortAttachment.TYPE_INDEPENDENTPortAttachment.TYPE_STATICType 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()
-
-