public static final class ListRouterGroupsResponse.Builder extends Object
ListRouterGroupsResponse.
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 |
|---|---|
ListRouterGroupsResponse.Builder |
addAllRouterGroups(Iterable<? extends RouterGroup> elements)
Adds elements to
routerGroups list. |
ListRouterGroupsResponse |
build()
Builds a new
ListRouterGroupsResponse. |
ListRouterGroupsResponse.Builder |
from(ListRouterGroupsResponse instance)
Fill a builder with attribute values from the provided
ListRouterGroupsResponse instance. |
ListRouterGroupsResponse.Builder |
routerGroup(RouterGroup... elements)
Adds elements to
routerGroups list. |
ListRouterGroupsResponse.Builder |
routerGroup(RouterGroup element)
Adds one element to
routerGroups list. |
ListRouterGroupsResponse.Builder |
routerGroups(Iterable<? extends RouterGroup> elements)
Sets or replaces all elements for
routerGroups list. |
public final ListRouterGroupsResponse.Builder from(ListRouterGroupsResponse instance)
ListRouterGroupsResponse 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 ListRouterGroupsResponse.Builder routerGroup(RouterGroup element)
routerGroups list.element - A routerGroups elementthis builder for use in a chained invocationpublic final ListRouterGroupsResponse.Builder routerGroup(RouterGroup... elements)
routerGroups list.elements - An array of routerGroups elementsthis builder for use in a chained invocationpublic final ListRouterGroupsResponse.Builder routerGroups(Iterable<? extends RouterGroup> elements)
routerGroups list.elements - An iterable of routerGroups elementsthis builder for use in a chained invocationpublic final ListRouterGroupsResponse.Builder addAllRouterGroups(Iterable<? extends RouterGroup> elements)
routerGroups list.elements - An iterable of routerGroups elementsthis builder for use in a chained invocationpublic ListRouterGroupsResponse build()
ListRouterGroupsResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.