public static final class RouteEntity.Builder extends Object
RouteEntity.
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 |
|---|---|
RouteEntity.Builder |
applicationsUrl(String applicationsUrl)
Initializes the value for the
applicationsUrl attribute. |
RouteEntity |
build()
Builds a new
RouteEntity. |
RouteEntity.Builder |
domainId(String domainId)
Initializes the value for the
domainId attribute. |
RouteEntity.Builder |
domainUrl(String domainUrl)
Initializes the value for the
domainUrl attribute. |
RouteEntity.Builder |
from(RouteEntity instance)
Fill a builder with attribute values from the provided
RouteEntity instance. |
RouteEntity.Builder |
host(String host)
Initializes the value for the
host attribute. |
RouteEntity.Builder |
path(String path)
Initializes the value for the
path attribute. |
RouteEntity.Builder |
port(Integer port)
Initializes the value for the
port attribute. |
RouteEntity.Builder |
routeMappingsUrl(String routeMappingsUrl)
Initializes the value for the
routeMappingsUrl attribute. |
RouteEntity.Builder |
serviceInstanceId(String serviceInstanceId)
Initializes the value for the
serviceInstanceId attribute. |
RouteEntity.Builder |
serviceInstanceUrl(String serviceInstanceUrl)
Initializes the value for the
serviceInstanceUrl attribute. |
RouteEntity.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
RouteEntity.Builder |
spaceUrl(String spaceUrl)
Initializes the value for the
spaceUrl attribute. |
public final RouteEntity.Builder from(RouteEntity instance)
RouteEntity instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final RouteEntity.Builder applicationsUrl(String applicationsUrl)
applicationsUrl attribute.applicationsUrl - The value for applicationsUrl (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder domainId(String domainId)
domainId attribute.domainId - The value for domainId (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder domainUrl(String domainUrl)
domainUrl attribute.domainUrl - The value for domainUrl (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder host(String host)
host attribute.host - The value for host (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder path(String path)
path attribute.path - The value for path (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder port(Integer port)
port attribute.port - The value for port (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder routeMappingsUrl(String routeMappingsUrl)
routeMappingsUrl attribute.routeMappingsUrl - The value for routeMappingsUrl (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder serviceInstanceId(String serviceInstanceId)
serviceInstanceId attribute.serviceInstanceId - The value for serviceInstanceId (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder serviceInstanceUrl(String serviceInstanceUrl)
serviceInstanceUrl attribute.serviceInstanceUrl - The value for serviceInstanceUrl (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder spaceId(String spaceId)
spaceId attribute.spaceId - The value for spaceId (can be null)this builder for use in a chained invocationpublic final RouteEntity.Builder spaceUrl(String spaceUrl)
spaceUrl attribute.spaceUrl - The value for spaceUrl (can be null)this builder for use in a chained invocationpublic RouteEntity build()
RouteEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.