public static final class UpdateRouteResponse.Builder extends Object
UpdateRouteResponse.
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 |
|---|---|
UpdateRouteResponse.Builder |
addAllDestinations(Iterable<? extends Destination> elements)
Adds elements to
destinations list. |
UpdateRouteResponse |
build()
Builds a new
UpdateRouteResponse. |
UpdateRouteResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
UpdateRouteResponse.Builder |
destination(Destination element)
Adds one element to
destinations list. |
UpdateRouteResponse.Builder |
destinations(Destination... elements)
Adds elements to
destinations list. |
UpdateRouteResponse.Builder |
destinations(Iterable<? extends Destination> elements)
Sets or replaces all elements for
destinations list. |
UpdateRouteResponse.Builder |
from(org.cloudfoundry.client.v3.routes._UpdateRouteResponse instance)
Copy abstract value type
_UpdateRouteResponse instance into builder. |
UpdateRouteResponse.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
UpdateRouteResponse.Builder |
from(Route instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.routes.Route instance. |
UpdateRouteResponse.Builder |
from(UpdateRouteResponse instance)
Fill a builder with attribute values from the provided
UpdateRouteResponse instance. |
UpdateRouteResponse.Builder |
host(String host)
Initializes the value for the
host attribute. |
UpdateRouteResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
UpdateRouteResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
UpdateRouteResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
UpdateRouteResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
UpdateRouteResponse.Builder |
metadata(Metadata metadata)
Initializes the value for the
metadata attribute. |
UpdateRouteResponse.Builder |
path(String path)
Initializes the value for the
path attribute. |
UpdateRouteResponse.Builder |
port(Integer port)
Initializes the value for the
port attribute. |
UpdateRouteResponse.Builder |
protocol(Protocol protocol)
Initializes the value for the
protocol attribute. |
UpdateRouteResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
UpdateRouteResponse.Builder |
relationships(RouteRelationships relationships)
Initializes the value for the
relationships attribute. |
UpdateRouteResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
UpdateRouteResponse.Builder |
url(String url)
Initializes the value for the
url attribute. |
public final UpdateRouteResponse.Builder from(Route instance)
org.cloudfoundry.client.v3.routes.Route instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder from(Resource instance)
org.cloudfoundry.client.v3.Resource instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder from(UpdateRouteResponse instance)
UpdateRouteResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder from(org.cloudfoundry.client.v3.routes._UpdateRouteResponse instance)
_UpdateRouteResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final UpdateRouteResponse.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 UpdateRouteResponse.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 UpdateRouteResponse.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 UpdateRouteResponse.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 UpdateRouteResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final UpdateRouteResponse.Builder destination(Destination element)
destinations list.element - A destinations elementthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder destinations(Destination... elements)
destinations list.elements - An array of destinations elementsthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder destinations(Iterable<? extends Destination> elements)
destinations list.elements - An iterable of destinations elementsthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder addAllDestinations(Iterable<? extends Destination> elements)
destinations list.elements - An iterable of destinations elementsthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder host(String host)
host attribute.host - The value for hostthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder metadata(Metadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final UpdateRouteResponse.Builder path(String path)
path attribute.path - The value for paththis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder port(Integer port)
port attribute.port - The value for port (can be null)this builder for use in a chained invocationpublic final UpdateRouteResponse.Builder protocol(Protocol protocol)
protocol attribute.protocol - The value for protocol (can be null)this builder for use in a chained invocationpublic final UpdateRouteResponse.Builder relationships(RouteRelationships relationships)
relationships attribute.relationships - The value for relationshipsthis builder for use in a chained invocationpublic final UpdateRouteResponse.Builder url(String url)
url attribute.url - The value for urlthis builder for use in a chained invocationpublic UpdateRouteResponse build()
UpdateRouteResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.