public static final class LogicalPortAttachment.Builder
extends java.lang.Object
LogicalPortAttachment
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
LogicalPortAttachment . |
Modifier and Type | Method and Description |
---|---|
LogicalPortAttachment |
build() |
LogicalPortAttachment.Builder |
setAttachmentType(java.lang.String attachmentType)
Possible values are:
LogicalPortAttachment.ATTACHMENT_TYPE_VIF LogicalPortAttachment.ATTACHMENT_TYPE_LOGICALROUTER
LogicalPortAttachment.ATTACHMENT_TYPE_BRIDGEENDPOINT
LogicalPortAttachment.ATTACHMENT_TYPE_DHCP_SERVICE
LogicalPortAttachment.ATTACHMENT_TYPE_METADATA_PROXY
LogicalPortAttachment.ATTACHMENT_TYPE_L2VPN_SESSION
LogicalPortAttachment.ATTACHMENT_TYPE_L2FORWARDER
Indicates the type of logical port attachment. |
LogicalPortAttachment.Builder |
setContext(com.vmware.vapi.bindings.Structure context) |
LogicalPortAttachment.Builder |
setId(java.lang.String id)
Identifier of the interface attached to the logical port
|
public Builder()
LogicalPortAttachment
.public LogicalPortAttachment.Builder setAttachmentType(java.lang.String attachmentType)
LogicalPortAttachment.ATTACHMENT_TYPE_VIF
LogicalPortAttachment.ATTACHMENT_TYPE_LOGICALROUTER
LogicalPortAttachment.ATTACHMENT_TYPE_BRIDGEENDPOINT
LogicalPortAttachment.ATTACHMENT_TYPE_DHCP_SERVICE
LogicalPortAttachment.ATTACHMENT_TYPE_METADATA_PROXY
LogicalPortAttachment.ATTACHMENT_TYPE_L2VPN_SESSION
LogicalPortAttachment.ATTACHMENT_TYPE_L2FORWARDER
attachmentType
- New value for the property.public LogicalPortAttachment.Builder setContext(com.vmware.vapi.bindings.Structure context)
context
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain all the properties defined in AttachmentContext
. When methods return a value of this
class as a return value, the property will contain all the properties defined in
AttachmentContext
.public LogicalPortAttachment.Builder setId(java.lang.String id)
id
- New value for the property.public LogicalPortAttachment build()