Class TransportEndpointDescription.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.TransportEndpointDescription.Builder
-
- Enclosing class:
- TransportEndpointDescription
public static class TransportEndpointDescription.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportEndpointDescription
build()
BuildsTransportEndpointDescription
.TransportEndpointDescription.Builder
copyFrom(TransportEndpointDescription src)
Copies all the fields fromsrc
.TransportEndpointDescription.Builder
withEnabled(boolean enabled)
Sets enabled state.TransportEndpointDescription.Builder
withOutput(FilteredConnectPoint output)
Sets output configuration.
-
-
-
Method Detail
-
copyFrom
public TransportEndpointDescription.Builder copyFrom(TransportEndpointDescription src)
Copies all the fields fromsrc
.- Parameters:
src
- object to copy from- Returns:
- this
-
withOutput
public TransportEndpointDescription.Builder withOutput(FilteredConnectPoint output)
Sets output configuration.- Parameters:
output
- configuration to set- Returns:
- this
-
withEnabled
public TransportEndpointDescription.Builder withEnabled(boolean enabled)
Sets enabled state.- Parameters:
enabled
- state to set- Returns:
- this
-
build
public TransportEndpointDescription build()
BuildsTransportEndpointDescription
.- Returns:
TransportEndpointDescription
-
-