public static final class ListRouteDestinationsResponse.Builder extends Object
ListRouteDestinationsResponse.
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 |
|---|---|
ListRouteDestinationsResponse.Builder |
addAllDestinations(Iterable<? extends Destination> elements)
Adds elements to
destinations list. |
ListRouteDestinationsResponse |
build()
Builds a new
ListRouteDestinationsResponse. |
ListRouteDestinationsResponse.Builder |
destination(Destination element)
Adds one element to
destinations list. |
ListRouteDestinationsResponse.Builder |
destinations(Destination... elements)
Adds elements to
destinations list. |
ListRouteDestinationsResponse.Builder |
destinations(Iterable<? extends Destination> elements)
Sets or replaces all elements for
destinations list. |
ListRouteDestinationsResponse.Builder |
from(org.cloudfoundry.client.v3.routes._ListRouteDestinationsResponse instance)
Copy abstract value type
_ListRouteDestinationsResponse instance into builder. |
ListRouteDestinationsResponse.Builder |
from(ListRouteDestinationsResponse instance)
Fill a builder with attribute values from the provided
ListRouteDestinationsResponse instance. |
ListRouteDestinationsResponse.Builder |
from(RouteDestinations instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.routes.RouteDestinations instance. |
ListRouteDestinationsResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
ListRouteDestinationsResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
ListRouteDestinationsResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
ListRouteDestinationsResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
public final ListRouteDestinationsResponse.Builder from(RouteDestinations instance)
org.cloudfoundry.client.v3.routes.RouteDestinations instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder from(ListRouteDestinationsResponse instance)
ListRouteDestinationsResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder from(org.cloudfoundry.client.v3.routes._ListRouteDestinationsResponse instance)
_ListRouteDestinationsResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder link(String key, Link value)
links map.key - The key in the links mapvalue - The associated value in the links mapthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder link(Map.Entry<String,? extends Link> entry)
links map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder links(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder putAllLinks(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder destination(Destination element)
destinations list.element - A destinations elementthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder destinations(Destination... elements)
destinations list.elements - An array of destinations elementsthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder destinations(Iterable<? extends Destination> elements)
destinations list.elements - An iterable of destinations elementsthis builder for use in a chained invocationpublic final ListRouteDestinationsResponse.Builder addAllDestinations(Iterable<? extends Destination> elements)
destinations list.elements - An iterable of destinations elementsthis builder for use in a chained invocationpublic ListRouteDestinationsResponse build()
ListRouteDestinationsResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.