Class ProtectedTransportEndpointState.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointState.Builder
-
- Enclosing class:
- ProtectedTransportEndpointState
public static class ProtectedTransportEndpointState.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectedTransportEndpointState
build()
BuildsProtectedTransportEndpointState
.ProtectedTransportEndpointState.Builder
copyFrom(ProtectedTransportEndpointState src)
Copies all the fields fromsrc
.ProtectedTransportEndpointState.Builder
withActivePathIndex(int activePathIndex)
Sets the activePathIndex.ProtectedTransportEndpointState.Builder
withDescription(ProtectedTransportEndpointDescription description)
Sets the description.ProtectedTransportEndpointState.Builder
withPathStates(List<TransportEndpointState> pathStates)
Sets the path states.
-
-
-
Method Detail
-
copyFrom
public ProtectedTransportEndpointState.Builder copyFrom(ProtectedTransportEndpointState src)
Copies all the fields fromsrc
.- Parameters:
src
- object to copy from- Returns:
- this
-
withPathStates
public ProtectedTransportEndpointState.Builder withPathStates(List<TransportEndpointState> pathStates)
Sets the path states.- Parameters:
pathStates
- the path states- Returns:
- this
-
withActivePathIndex
public ProtectedTransportEndpointState.Builder withActivePathIndex(int activePathIndex)
Sets the activePathIndex.- Parameters:
activePathIndex
- the activePathIndex- Returns:
- this
-
withDescription
public ProtectedTransportEndpointState.Builder withDescription(ProtectedTransportEndpointDescription description)
Sets the description.- Parameters:
description
- of thisProtectedTransportEndpointState
- Returns:
- this
-
build
public ProtectedTransportEndpointState build()
BuildsProtectedTransportEndpointState
.- Returns:
ProtectedTransportEndpointState
-
-