Class ProtectedTransportEndpointState.Builder
- java.lang.Object
- 
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointState.Builder
 
- 
- Enclosing class:
- ProtectedTransportEndpointState
 
 public static class ProtectedTransportEndpointState.Builder extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectedTransportEndpointStatebuild()BuildsProtectedTransportEndpointState.ProtectedTransportEndpointState.BuildercopyFrom(ProtectedTransportEndpointState src)Copies all the fields fromsrc.ProtectedTransportEndpointState.BuilderwithActivePathIndex(int activePathIndex)Sets the activePathIndex.ProtectedTransportEndpointState.BuilderwithDescription(ProtectedTransportEndpointDescription description)Sets the description.ProtectedTransportEndpointState.BuilderwithPathStates(java.util.List<TransportEndpointState> pathStates)Sets the path states.
 
- 
- 
- 
Method Detail- 
copyFrompublic ProtectedTransportEndpointState.Builder copyFrom(ProtectedTransportEndpointState src) Copies all the fields fromsrc.- Parameters:
- src- object to copy from
- Returns:
- this
 
 - 
withPathStatespublic ProtectedTransportEndpointState.Builder withPathStates(java.util.List<TransportEndpointState> pathStates) Sets the path states.- Parameters:
- pathStates- the path states
- Returns:
- this
 
 - 
withActivePathIndexpublic ProtectedTransportEndpointState.Builder withActivePathIndex(int activePathIndex) Sets the activePathIndex.- Parameters:
- activePathIndex- the activePathIndex
- Returns:
- this
 
 - 
withDescriptionpublic ProtectedTransportEndpointState.Builder withDescription(ProtectedTransportEndpointDescription description) Sets the description.- Parameters:
- description- of this- ProtectedTransportEndpointState
- Returns:
- this
 
 - 
buildpublic ProtectedTransportEndpointState build() BuildsProtectedTransportEndpointState.- Returns:
- ProtectedTransportEndpointState
 
 
- 
 
-