Package com.vmware.nsx_policy.model
Class SegmentPortState.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentPortState.Builder
-
- Enclosing class:
- SegmentPortState
public static final class SegmentPortState.Builder extends java.lang.Object
Builder class forSegmentPortState
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSegmentPortState
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentPortState
build()
SegmentPortState.Builder
setAttachment(SegmentPortAttachmentState attachment)
SegmentPortState.Builder
setDiscoveredBindings(java.util.List<AddressBindingEntry> discoveredBindings)
Contains the list of address bindings for a segment port that were automatically dicovered using various snooping methods like ARP, DHCP etc.SegmentPortState.Builder
setDuplicateBindings(java.util.List<DuplicateAddressBindingEntry> duplicateBindings)
If any address binding discovered on the port is also found on other port on the same segment, then it is included in the duplicate bindings list along with the ID of the port with which it conflicts.SegmentPortState.Builder
setRealizedBindings(java.util.List<AddressBindingEntry> realizedBindings)
List of segment port bindings that are realized.SegmentPortState.Builder
setTransportNodeIds(java.util.List<java.lang.String> transportNodeIds)
Identifiers of the transport nodes where the port is located
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentPortState
.
-
-
Method Detail
-
setAttachment
public SegmentPortState.Builder setAttachment(SegmentPortAttachmentState attachment)
- Parameters:
attachment
- New value for the property.
-
setDiscoveredBindings
public SegmentPortState.Builder setDiscoveredBindings(java.util.List<AddressBindingEntry> discoveredBindings)
Contains the list of address bindings for a segment port that were automatically dicovered using various snooping methods like ARP, DHCP etc.- Parameters:
discoveredBindings
- New value for the property.
-
setDuplicateBindings
public SegmentPortState.Builder setDuplicateBindings(java.util.List<DuplicateAddressBindingEntry> duplicateBindings)
If any address binding discovered on the port is also found on other port on the same segment, then it is included in the duplicate bindings list along with the ID of the port with which it conflicts.- Parameters:
duplicateBindings
- New value for the property.
-
setRealizedBindings
public SegmentPortState.Builder setRealizedBindings(java.util.List<AddressBindingEntry> realizedBindings)
List of segment port bindings that are realized. This list may be populated from the discovered bindings or manual user specified bindings. This binding configuration can be used by features such as firewall, spoof-guard, traceflow etc.- Parameters:
realizedBindings
- New value for the property.
-
setTransportNodeIds
public SegmentPortState.Builder setTransportNodeIds(java.util.List<java.lang.String> transportNodeIds)
Identifiers of the transport nodes where the port is located- Parameters:
transportNodeIds
- New value for the property.
-
build
public SegmentPortState build()
-
-