public static class TransportEndpointState.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TransportEndpointState.Builder |
addAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Adds specified attributes.
|
TransportEndpointState |
build()
Builds
TransportEndpointState . |
TransportEndpointState.Builder |
copyFrom(TransportEndpointState src)
Copies all the fields from
src . |
TransportEndpointState.Builder |
replaceAttributes(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- to addpublic TransportEndpointState.Builder replaceAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- to addpublic TransportEndpointState build()
TransportEndpointState
.TransportEndpointState