public static final class UnionServiceInstanceEntity.Builder extends Object
UnionServiceInstanceEntity.
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 |
|---|---|
UnionServiceInstanceEntity.Builder |
addAllTags(Iterable<String> elements)
Adds elements to
tags list. |
UnionServiceInstanceEntity |
build()
Builds a new
UnionServiceInstanceEntity. |
UnionServiceInstanceEntity.Builder |
credential(Map.Entry<String,? extends Object> entry)
Put one entry to the
credentials map. |
UnionServiceInstanceEntity.Builder |
credential(String key,
Object value)
Put one entry to the
credentials map. |
UnionServiceInstanceEntity.Builder |
credentials(Map<String,? extends Object> credentials)
Sets or replaces all mappings from the specified map as entries for the
credentials map. |
UnionServiceInstanceEntity.Builder |
dashboardUrl(String dashboardUrl)
Initializes the value for the
dashboardUrl attribute. |
UnionServiceInstanceEntity.Builder |
from(BaseServiceInstanceEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v2.serviceinstances.BaseServiceInstanceEntity instance. |
UnionServiceInstanceEntity.Builder |
from(UnionServiceInstanceEntity instance)
Fill a builder with attribute values from the provided
UnionServiceInstanceEntity instance. |
UnionServiceInstanceEntity.Builder |
gatewayData(GatewayData gatewayData)
Deprecated.
|
UnionServiceInstanceEntity.Builder |
lastOperation(LastOperation lastOperation)
Initializes the value for the
lastOperation attribute. |
UnionServiceInstanceEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
UnionServiceInstanceEntity.Builder |
putAllCredentials(Map<String,? extends Object> credentials)
Put all mappings from the specified map as entries to
credentials map. |
UnionServiceInstanceEntity.Builder |
routeServiceUrl(String routeServiceUrl)
Initializes the value for the
routeServiceUrl attribute. |
UnionServiceInstanceEntity.Builder |
routesUrl(String routesUrl)
Initializes the value for the
routesUrl attribute. |
UnionServiceInstanceEntity.Builder |
serviceBindingsUrl(String serviceBindingsUrl)
Initializes the value for the
serviceBindingsUrl attribute. |
UnionServiceInstanceEntity.Builder |
serviceId(String serviceId)
Initializes the value for the
serviceId attribute. |
UnionServiceInstanceEntity.Builder |
serviceKeysUrl(String serviceKeysUrl)
Initializes the value for the
serviceKeysUrl attribute. |
UnionServiceInstanceEntity.Builder |
servicePlanId(String servicePlanId)
Initializes the value for the
servicePlanId attribute. |
UnionServiceInstanceEntity.Builder |
servicePlanUrl(String servicePlanUrl)
Initializes the value for the
servicePlanUrl attribute. |
UnionServiceInstanceEntity.Builder |
serviceUrl(String serviceUrl)
Initializes the value for the
serviceUrl attribute. |
UnionServiceInstanceEntity.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
UnionServiceInstanceEntity.Builder |
spaceUrl(String spaceUrl)
Initializes the value for the
spaceUrl attribute. |
UnionServiceInstanceEntity.Builder |
syslogDrainUrl(String syslogDrainUrl)
Initializes the value for the
syslogDrainUrl attribute. |
UnionServiceInstanceEntity.Builder |
tag(String... elements)
Adds elements to
tags list. |
UnionServiceInstanceEntity.Builder |
tag(String element)
Adds one element to
tags list. |
UnionServiceInstanceEntity.Builder |
tags(Iterable<String> elements)
Sets or replaces all elements for
tags list. |
UnionServiceInstanceEntity.Builder |
type(String type)
Initializes the value for the
type attribute. |
public final UnionServiceInstanceEntity.Builder from(UnionServiceInstanceEntity instance)
UnionServiceInstanceEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder from(BaseServiceInstanceEntity instance)
org.cloudfoundry.client.v2.serviceinstances.BaseServiceInstanceEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder dashboardUrl(String dashboardUrl)
dashboardUrl attribute.dashboardUrl - The value for dashboardUrl (can be null)this builder for use in a chained invocation@Deprecated public final UnionServiceInstanceEntity.Builder gatewayData(GatewayData gatewayData)
gatewayData attribute.gatewayData - The value for gatewayData (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder lastOperation(LastOperation lastOperation)
lastOperation attribute.lastOperation - The value for lastOperation (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder routeServiceUrl(String routeServiceUrl)
routeServiceUrl attribute.routeServiceUrl - The value for routeServiceUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder serviceId(String serviceId)
serviceId attribute.serviceId - The value for serviceId (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder serviceKeysUrl(String serviceKeysUrl)
serviceKeysUrl attribute.serviceKeysUrl - The value for serviceKeysUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder servicePlanId(String servicePlanId)
servicePlanId attribute.servicePlanId - The value for servicePlanId (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder servicePlanUrl(String servicePlanUrl)
servicePlanUrl attribute.servicePlanUrl - The value for servicePlanUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder serviceUrl(String serviceUrl)
serviceUrl attribute.serviceUrl - The value for serviceUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder syslogDrainUrl(String syslogDrainUrl)
syslogDrainUrl attribute.syslogDrainUrl - The value for syslogDrainUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder tag(String element)
tags list.element - A tags elementthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder tag(String... elements)
tags list.elements - An array of tags elementsthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder tags(Iterable<String> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder addAllTags(Iterable<String> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder credential(String key, Object value)
credentials map.key - The key in the credentials mapvalue - The associated value in the credentials mapthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder credential(Map.Entry<String,? extends Object> entry)
credentials map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder credentials(Map<String,? extends Object> credentials)
credentials map. Nulls are not permitted as keys or values, but parameter itself can be nullcredentials - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder putAllCredentials(Map<String,? extends Object> credentials)
credentials map. Nulls are not permittedcredentials - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder routesUrl(String routesUrl)
routesUrl attribute.routesUrl - The value for routesUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder serviceBindingsUrl(String serviceBindingsUrl)
serviceBindingsUrl attribute.serviceBindingsUrl - The value for serviceBindingsUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder spaceId(String spaceId)
spaceId attribute.spaceId - The value for spaceId (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder spaceUrl(String spaceUrl)
spaceUrl attribute.spaceUrl - The value for spaceUrl (can be null)this builder for use in a chained invocationpublic final UnionServiceInstanceEntity.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic UnionServiceInstanceEntity build()
UnionServiceInstanceEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.