Class TransportEndpointState.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.TransportEndpointState.Builder
-
- Enclosing class:
- TransportEndpointState
public static class TransportEndpointState.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportEndpointState.Builder
addAttributes(Map<String,String> attributes)
Adds specified attributes.TransportEndpointState
build()
BuildsTransportEndpointState
.TransportEndpointState.Builder
copyFrom(TransportEndpointState src)
Copies all the fields fromsrc
.TransportEndpointState.Builder
replaceAttributes(Map<String,String> attributes)
Replaces attributes with the specified Map.TransportEndpointState.Builder
withDescription(TransportEndpointDescription description)
Sets the description.TransportEndpointState.Builder
withId(TransportEndpointId id)
Sets id.TransportEndpointState.Builder
withLive(boolean live)
Sets liveness state.
-
-
-
Method Detail
-
copyFrom
public TransportEndpointState.Builder copyFrom(TransportEndpointState src)
Copies all the fields fromsrc
.- Parameters:
src
- object to copy from- Returns:
- this
-
withId
public TransportEndpointState.Builder withId(TransportEndpointId id)
Sets id.- Parameters:
id
-TransportEndpointId
- Returns:
- this
-
withLive
public TransportEndpointState.Builder withLive(boolean live)
Sets liveness state.- Parameters:
live
- liveness state- Returns:
- this
-
withDescription
public TransportEndpointState.Builder withDescription(TransportEndpointDescription description)
Sets the description.- Parameters:
description
- description- Returns:
- this
-
addAttributes
public TransportEndpointState.Builder addAttributes(Map<String,String> attributes)
Adds specified attributes.- Parameters:
attributes
- to add- Returns:
- this
-
replaceAttributes
public TransportEndpointState.Builder replaceAttributes(Map<String,String> attributes)
Replaces attributes with the specified Map.- Parameters:
attributes
- to add- Returns:
- this
-
build
public TransportEndpointState build()
BuildsTransportEndpointState
.- Returns:
TransportEndpointState
-
-