public static final class UserProvidedServiceInstanceEntity.Builder extends Object
UserProvidedServiceInstanceEntity.
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 |
|---|---|
UserProvidedServiceInstanceEntity |
build()
Builds a new
UserProvidedServiceInstanceEntity. |
UserProvidedServiceInstanceEntity.Builder |
credential(Map.Entry<String,? extends Object> entry)
Put one entry to the
credentials map. |
UserProvidedServiceInstanceEntity.Builder |
credential(String key,
Object value)
Put one entry to the
credentials map. |
UserProvidedServiceInstanceEntity.Builder |
credentials(Map<String,? extends Object> credentials)
Sets or replaces all mappings from the specified map as entries for the
credentials map. |
UserProvidedServiceInstanceEntity.Builder |
from(BaseServiceInstanceEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v2.serviceinstances.BaseServiceInstanceEntity instance. |
UserProvidedServiceInstanceEntity.Builder |
from(UserProvidedServiceInstanceEntity instance)
Fill a builder with attribute values from the provided
UserProvidedServiceInstanceEntity instance. |
UserProvidedServiceInstanceEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
UserProvidedServiceInstanceEntity.Builder |
putAllCredentials(Map<String,? extends Object> credentials)
Put all mappings from the specified map as entries to
credentials map. |
UserProvidedServiceInstanceEntity.Builder |
routeServiceUrl(String routeServiceUrl)
Initializes the value for the
routeServiceUrl attribute. |
UserProvidedServiceInstanceEntity.Builder |
routesUrl(String routesUrl)
Initializes the value for the
routesUrl attribute. |
UserProvidedServiceInstanceEntity.Builder |
serviceBindingsUrl(String serviceBindingsUrl)
Initializes the value for the
serviceBindingsUrl attribute. |
UserProvidedServiceInstanceEntity.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
UserProvidedServiceInstanceEntity.Builder |
spaceUrl(String spaceUrl)
Initializes the value for the
spaceUrl attribute. |
UserProvidedServiceInstanceEntity.Builder |
syslogDrainUrl(String syslogDrainUrl)
Initializes the value for the
syslogDrainUrl attribute. |
UserProvidedServiceInstanceEntity.Builder |
type(String type)
Initializes the value for the
type attribute. |
public final UserProvidedServiceInstanceEntity.Builder from(UserProvidedServiceInstanceEntity instance)
UserProvidedServiceInstanceEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.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 UserProvidedServiceInstanceEntity.Builder routeServiceUrl(String routeServiceUrl)
routeServiceUrl attribute.routeServiceUrl - The value for routeServiceUrl (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.Builder syslogDrainUrl(String syslogDrainUrl)
syslogDrainUrl attribute.syslogDrainUrl - The value for syslogDrainUrl (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.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 UserProvidedServiceInstanceEntity.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 UserProvidedServiceInstanceEntity.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 UserProvidedServiceInstanceEntity.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 UserProvidedServiceInstanceEntity.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.Builder routesUrl(String routesUrl)
routesUrl attribute.routesUrl - The value for routesUrl (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.Builder serviceBindingsUrl(String serviceBindingsUrl)
serviceBindingsUrl attribute.serviceBindingsUrl - The value for serviceBindingsUrl (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.Builder spaceId(String spaceId)
spaceId attribute.spaceId - The value for spaceId (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.Builder spaceUrl(String spaceUrl)
spaceUrl attribute.spaceUrl - The value for spaceUrl (can be null)this builder for use in a chained invocationpublic final UserProvidedServiceInstanceEntity.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic UserProvidedServiceInstanceEntity build()
UserProvidedServiceInstanceEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.