public static class TransportEndpointState.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TransportEndpointState.Builder |
addAttributes(Map<String,String> attributes)
Adds specified attributes.
|
TransportEndpointState |
build()
Builds
TransportEndpointState . |
TransportEndpointState.Builder |
copyFrom(TransportEndpointState src)
Copies all the fields from
src . |
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.
|
public TransportEndpointState.Builder copyFrom(TransportEndpointState src)
src
.src
- object to copy frompublic TransportEndpointState.Builder withId(TransportEndpointId id)
id
- TransportEndpointId
public TransportEndpointState.Builder withLive(boolean live)
live
- liveness statepublic TransportEndpointState.Builder withDescription(TransportEndpointDescription description)
description
- descriptionpublic TransportEndpointState.Builder addAttributes(Map<String,String> attributes)
attributes
- to addpublic TransportEndpointState.Builder replaceAttributes(Map<String,String> attributes)
attributes
- to addpublic TransportEndpointState build()
TransportEndpointState
.TransportEndpointState