Package com.vmware.nsx_policy.model
Class SegmentPortAttachmentState.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentPortAttachmentState.Builder
-
- Enclosing class:
- SegmentPortAttachmentState
public static final class SegmentPortAttachmentState.Builder extends java.lang.Object
Builder class forSegmentPortAttachmentState
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSegmentPortAttachmentState
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentPortAttachmentState
build()
SegmentPortAttachmentState.Builder
setAttachers(java.util.List<PortAttacher> attachers)
VM or vmknic entities that are attached to the Segment Port This property may be present in responses from the server, but if it is present in a request to server it will be ignored.SegmentPortAttachmentState.Builder
setId(java.lang.String id)
VIF ID This property may be present in responses from the server, but if it is present in a request to server it will be ignored.SegmentPortAttachmentState.Builder
setState(java.lang.String state)
Possible values are:SegmentPortAttachmentState.STATE_FREE
SegmentPortAttachmentState.STATE_ATTACHED
SegmentPortAttachmentState.STATE_ATTACHED_PENDING_CONF
SegmentPortAttachmentState.STATE_ATTACHED_IN_MOTION
SegmentPortAttachmentState.STATE_DETACHED
A segment port must be in one of following states.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentPortAttachmentState
.
-
-
Method Detail
-
setAttachers
public SegmentPortAttachmentState.Builder setAttachers(java.util.List<PortAttacher> attachers)
VM or vmknic entities that are attached to the Segment Port 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:
attachers
- New value for the property.
-
setId
public SegmentPortAttachmentState.Builder setId(java.lang.String id)
VIF ID 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:
id
- New value for the property.
-
setState
public SegmentPortAttachmentState.Builder setState(java.lang.String state)
Possible values are: A segment port must be in one of following states. FREE - If there are no active attachers. The port may or may not have an attachment ID configured on it. This state is applicable only to port of static type. ATTACHED - Segment port has exactly one active attacher and no further configuration is pending. ATTACHED_PENDING_CONF - Segment port has exactly one attacher, however it may not have been configured completely. Additional configuration will be provided by other nsx components. ATTACHED_IN_MOTION - Segment port has multiple active attachers. This state represents a scenario where VM is moving from one location (host or storage) to another (e.g. vmotion, vSphere HA) DETACHED - A temporary state after all port attachers have been detached. This state is applicable only to a port of ephemeral type and the port will soon be deleted. 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:
state
- New value for the property.
-
build
public SegmentPortAttachmentState build()
-
-