public static final class ListTcpRoutesResponse.Builder extends Object
ListTcpRoutesResponse
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
ListTcpRoutesResponse.Builder |
addAllTcpRoutes(Iterable<? extends TcpRoute> elements)
Adds elements to
tcpRoutes list. |
ListTcpRoutesResponse |
build()
Builds a new
ListTcpRoutesResponse . |
ListTcpRoutesResponse.Builder |
from(ListTcpRoutesResponse instance)
Fill a builder with attribute values from the provided
ListTcpRoutesResponse instance. |
ListTcpRoutesResponse.Builder |
tcpRoute(TcpRoute... elements)
Adds elements to
tcpRoutes list. |
ListTcpRoutesResponse.Builder |
tcpRoute(TcpRoute element)
Adds one element to
tcpRoutes list. |
ListTcpRoutesResponse.Builder |
tcpRoutes(Iterable<? extends TcpRoute> elements)
Sets or replaces all elements for
tcpRoutes list. |
public final ListTcpRoutesResponse.Builder from(ListTcpRoutesResponse instance)
ListTcpRoutesResponse
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ListTcpRoutesResponse.Builder tcpRoute(TcpRoute element)
tcpRoutes
list.element
- A tcpRoutes elementthis
builder for use in a chained invocationpublic final ListTcpRoutesResponse.Builder tcpRoute(TcpRoute... elements)
tcpRoutes
list.elements
- An array of tcpRoutes elementsthis
builder for use in a chained invocationpublic final ListTcpRoutesResponse.Builder tcpRoutes(Iterable<? extends TcpRoute> elements)
tcpRoutes
list.elements
- An iterable of tcpRoutes elementsthis
builder for use in a chained invocationpublic final ListTcpRoutesResponse.Builder addAllTcpRoutes(Iterable<? extends TcpRoute> elements)
tcpRoutes
list.elements
- An iterable of tcpRoutes elementsthis
builder for use in a chained invocationpublic ListTcpRoutesResponse build()
ListTcpRoutesResponse
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.